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 = {
|
||||||
...result,
|
...result,
|
||||||
tokenIn: data.returnValues[1],
|
tokenIn: data.returnValues[1],
|
||||||
tokenAmountIn: data.returnValues[2]
|
tokenAmountIn: this.web3.utils.fromWei(data.returnValues[2])
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'exit':
|
case 'exit':
|
||||||
result = {
|
result = {
|
||||||
...result,
|
...result,
|
||||||
tokenOut: data.returnValues[1],
|
tokenOut: data.returnValues[1],
|
||||||
tokenAmountOut: data.returnValues[2]
|
tokenAmountOut: this.web3.utils.fromWei(data.returnValues[2])
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user