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:
parent
e7c140ef14
commit
8eaaaa3bac
@ -528,14 +528,14 @@ export class OceanPool extends Pool {
|
||||
result = {
|
||||
...result,
|
||||
tokenIn: data.returnValues[1],
|
||||
tokenAmountIn: data.returnValues[2]
|
||||
tokenAmountIn: this.web3.utils.fromWei(data.returnValues[2])
|
||||
}
|
||||
break
|
||||
case 'exit':
|
||||
result = {
|
||||
...result,
|
||||
tokenOut: data.returnValues[1],
|
||||
tokenAmountOut: data.returnValues[2]
|
||||
tokenAmountOut: this.web3.utils.fromWei(data.returnValues[2])
|
||||
}
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user