1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

values in number, not Wei

This commit is contained in:
alexcos20 2020-09-30 05:08:08 -07:00
parent 8eaaaa3bac
commit 815668720b

View File

@ -520,8 +520,8 @@ export class OceanPool extends Pool {
...result,
tokenIn: data.returnValues[1],
tokenOut: data.returnValues[2],
tokenAmountIn: data.returnValues[3],
tokenAmountOut: data.returnValues[4]
tokenAmountIn: this.web3.utils.fromWei(data.returnValues[3]),
tokenAmountOut: this.web3.utils.fromWei(data.returnValues[4])
}
break
case 'join':