aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/exchange_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 06:06:07 +0800
committerFabio Berger <me@fabioberger.com>2017-07-11 15:30:14 +0800
commit00c1198b34423ff4f999bc5998d61ab3c07a168e (patch)
tree31eb99c3f9dd0b48140c3e54611a0f85abd4a116 /src/contract_wrappers/exchange_wrapper.ts
parent15f68f9b5476993e7bbcdc09f325e4c3834e4b02 (diff)
downloaddexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.tar
dexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.tar.gz
dexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.tar.bz2
dexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.tar.lz
dexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.tar.xz
dexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.tar.zst
dexon-sol-tools-00c1198b34423ff4f999bc5998d61ab3c07a168e.zip
Revert "Migrate isRoundingError parameter changes"
This reverts commit 9a200c67210599faf5eb735893abae99f72a4d1f.
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index f66e91534..fa4b5904b 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -662,7 +662,7 @@ export class ExchangeWrapper extends ContractWrapper {
senderAddress, zrxTokenAddress);
const wouldRoundingErrorOccur = await this._isRoundingErrorAsync(
- fillTakerAmount, signedOrder.takerTokenAmount, signedOrder.makerTokenAmount,
+ signedOrder.takerTokenAmount, fillTakerAmount, signedOrder.makerTokenAmount,
signedOrder.exchangeContractAddress,
);
if (wouldRoundingErrorOccur) {
@@ -764,14 +764,14 @@ export class ExchangeWrapper extends ContractWrapper {
throw new Error(errMessage);
}
}
- private async _isRoundingErrorAsync(numerator: BigNumber.BigNumber,
- denominator: BigNumber.BigNumber,
- target: BigNumber.BigNumber,
+ private async _isRoundingErrorAsync(takerTokenAmount: BigNumber.BigNumber,
+ fillTakerAmount: 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(
- numerator, denominator, target,
+ takerTokenAmount, fillTakerAmount, makerTokenAmount,
);
return isRoundingError;
}