aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-15 00:03:01 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-15 00:03:01 +0800
commit61496d77a5d3d50d7b41a0732af375fd973fa384 (patch)
tree3062d89c67c72f3f137f9173cb9d638f4454e0dc /packages/0x.js/src
parent24493a4556ab4cae07dabf459e6a556d7a46d022 (diff)
downloaddexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar
dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.gz
dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.bz2
dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.lz
dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.xz
dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.zst
dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.zip
Fix namings
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/utils/order_state_utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/utils/order_state_utils.ts b/packages/0x.js/src/utils/order_state_utils.ts
index 21d842a77..8f5c379cd 100644
--- a/packages/0x.js/src/utils/order_state_utils.ts
+++ b/packages/0x.js/src/utils/order_state_utils.ts
@@ -117,11 +117,11 @@ export class OrderStateUtils {
throw new Error(ExchangeContractErrs.InsufficientMakerFeeAllowance);
}
}
- const minimumFillableTakerTokenAmountWithingNoRoundingErrorRange = signedOrder.takerTokenAmount
+ const minFillableTakerTokenAmountWithinNoRoundingErrorRange = signedOrder.takerTokenAmount
.times(1000)
.dividedBy(signedOrder.makerTokenAmount);
if (orderRelevantState.remainingFillableTakerTokenAmount
- .lessThan(minimumFillableTakerTokenAmountWithingNoRoundingErrorRange)) {
+ .lessThan(minFillableTakerTokenAmountWithinNoRoundingErrorRange)) {
throw new Error(ExchangeContractErrs.OrderFillRoundingError);
}
// TODO Add linear function solver when maker token is ZRX #badass