mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix decimals issue
This commit is contained in:
parent
b44f1f802a
commit
a7c0cff63c
@ -247,8 +247,12 @@ describe('Pool unit test', () => {
|
|||||||
amountsInOutMaxFee
|
amountsInOutMaxFee
|
||||||
)
|
)
|
||||||
expect(await balance(web3, erc20Token, user1)).to.equal(
|
expect(await balance(web3, erc20Token, user1)).to.equal(
|
||||||
|
await unitsToAmount(
|
||||||
|
web3,
|
||||||
|
erc20Token,
|
||||||
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
||||||
)
|
)
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('#swapExactAmountOut - should swap', async () => {
|
it('#swapExactAmountOut - should swap', async () => {
|
||||||
@ -715,8 +719,12 @@ describe('Pool unit test', () => {
|
|||||||
amountsInOutMaxFee
|
amountsInOutMaxFee
|
||||||
)
|
)
|
||||||
expect(await balance(web3, erc20Token, user1)).to.equal(
|
expect(await balance(web3, erc20Token, user1)).to.equal(
|
||||||
|
await unitsToAmount(
|
||||||
|
web3,
|
||||||
|
erc20Token,
|
||||||
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
||||||
)
|
)
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('#swapExactAmountOut - should swap', async () => {
|
it('#swapExactAmountOut - should swap', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user