diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 07:17:58 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 08:45:40 +0800 |
commit | 9bfe0c20902d2436c4bb2f82600343efe6515ec3 (patch) | |
tree | 717c325cd007bb30f2611a6c3214771278545f70 | |
parent | c522cd50208a7d033c544e9c2d7e8624d75ab773 (diff) | |
download | dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.tar dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.tar.gz dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.tar.bz2 dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.tar.lz dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.tar.xz dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.tar.zst dexon-sol-tools-9bfe0c20902d2436c4bb2f82600343efe6515ec3.zip |
Change arguments order at isRoundingError
-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; } |