diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-15 00:03:01 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-15 00:03:01 +0800 |
commit | 61496d77a5d3d50d7b41a0732af375fd973fa384 (patch) | |
tree | 3062d89c67c72f3f137f9173cb9d638f4454e0dc /packages/0x.js | |
parent | 24493a4556ab4cae07dabf459e6a556d7a46d022 (diff) | |
download | dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.gz dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.tar.zst dexon-sol-tools-61496d77a5d3d50d7b41a0732af375fd973fa384.zip |
Fix namings
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/src/utils/order_state_utils.ts | 4 |
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 |