aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-15 07:46:38 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-15 07:46:38 +0800
commita7924cef0416563ebcf5c681aa0303265dc98b21 (patch)
treefe147e2e0851be0b92886106c9f13f47aa7d508f /src/contract_wrappers
parent23e35460739dd9c144b00c04369398d97bbc28ed (diff)
downloaddexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.tar
dexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.tar.gz
dexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.tar.bz2
dexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.tar.lz
dexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.tar.xz
dexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.tar.zst
dexon-sol-tools-a7924cef0416563ebcf5c681aa0303265dc98b21.zip
Update Exchange artifacts and adjust ExchangeWrapper
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 2ddd63422..d601b5155 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -669,7 +669,7 @@ export class ExchangeWrapper extends ContractWrapper {
);
const wouldRoundingErrorOccur = await this._isRoundingErrorAsync(
- signedOrder.takerTokenAmount, fillTakerAmount, signedOrder.makerTokenAmount,
+ fillTakerAmount, signedOrder.takerTokenAmount, signedOrder.makerTokenAmount,
);
if (wouldRoundingErrorOccur) {
throw new Error(ExchangeContractErrs.OrderFillRoundingError);
@@ -714,7 +714,7 @@ export class ExchangeWrapper extends ContractWrapper {
await assert.isUserAddressAvailableAsync(this._web3Wrapper);
const exchangeInstance = await this._getExchangeContractAsync();
const isRoundingError = await exchangeInstance.isRoundingError.call(
- demoninator, numerator, makerTokenAmount,
+ numerator, demoninator, makerTokenAmount,
);
return isRoundingError;
}