mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix addmax & removemax
This commit is contained in:
parent
e5c6797af9
commit
8d8be7c6a0
@ -477,7 +477,7 @@ export class OceanPool extends Pool {
|
|||||||
.multipliedBy(POOL_MAX_AMOUNT_IN_LIMIT)
|
.multipliedBy(POOL_MAX_AMOUNT_IN_LIMIT)
|
||||||
.integerValue(BigNumber.ROUND_DOWN)
|
.integerValue(BigNumber.ROUND_DOWN)
|
||||||
.minus(1)
|
.minus(1)
|
||||||
return this.web3.utils.fromWei(result.toString())
|
return this.web3.utils.fromWei(result.toString(10))
|
||||||
} else return '0'
|
} else return '0'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -496,7 +496,7 @@ export class OceanPool extends Pool {
|
|||||||
.multipliedBy(POOL_MAX_AMOUNT_OUT_LIMIT)
|
.multipliedBy(POOL_MAX_AMOUNT_OUT_LIMIT)
|
||||||
.integerValue(BigNumber.ROUND_DOWN)
|
.integerValue(BigNumber.ROUND_DOWN)
|
||||||
.minus(1)
|
.minus(1)
|
||||||
return this.web3.utils.fromWei(result.toString())
|
return this.web3.utils.fromWei(result.toString(10))
|
||||||
} else return '0'
|
} else return '0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user