diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 07:17:58 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-07-11 15:30:14 +0800 |
commit | 23ca4047f337fad505fccf1a91e0699fe34e1406 (patch) | |
tree | e13dc5e2c69fbebe38818d67bc33a471ac62b14e /src/contract_wrappers/exchange_wrapper.ts | |
parent | a8c9945a0fd85cbb95741b5fed385455786700ce (diff) | |
download | dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.tar dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.tar.gz dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.tar.bz2 dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.tar.lz dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.tar.xz dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.tar.zst dexon-sol-tools-23ca4047f337fad505fccf1a91e0699fe34e1406.zip |
Change arguments order at isRoundingError
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a930135a4..a2674f344 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -773,14 +773,14 @@ export class ExchangeWrapper extends ContractWrapper { throw new Error(errMessage); } } - private async _isRoundingErrorAsync(takerTokenAmount: BigNumber.BigNumber, - fillTakerAmount: BigNumber.BigNumber, + private async _isRoundingErrorAsync(numerator: BigNumber.BigNumber, + demoninator: BigNumber.BigNumber, makerTokenAmount: BigNumber.BigNumber, exchangeContractAddress: string): Promise<boolean> { await assert.isUserAddressAvailableAsync(this._web3Wrapper); const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress); const isRoundingError = await exchangeInstance.isRoundingError.call( - takerTokenAmount, fillTakerAmount, makerTokenAmount, + demoninator, numerator, makerTokenAmount, ); return isRoundingError; } |