1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
Alex Coseru 2020-11-19 15:28:10 +02:00 committed by GitHub
parent 9bbb727d21
commit db446b6bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1201,7 +1201,7 @@ export class OceanPool extends Pool {
result = {
...result,
tokenIn: '0x' + data.topics[2].substring(data.topics[2].length - 40),
tokenOut: '0x' + data.topics[2].substring(data.topics[3].length - 40),
tokenOut: '0x' + data.topics[3].substring(data.topics[3].length - 40),
tokenAmountIn: this.web3.utils.fromWei(params[0]),
tokenAmountOut: this.web3.utils.fromWei(params[1])
}