diff options
author | Jacob Evans <jacob@dekz.net> | 2017-11-21 11:51:19 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2017-11-21 11:51:19 +0800 |
commit | da03331015b810505cfaae1445424f61ce05c656 (patch) | |
tree | cd8cb4796882b5a76da176f2419a30cf3037cafa /packages/0x.js/src/utils | |
parent | 43128234bbb9715094c24c99b6a001a5290fcefd (diff) | |
download | dexon-0x-contracts-da03331015b810505cfaae1445424f61ce05c656.tar.gz dexon-0x-contracts-da03331015b810505cfaae1445424f61ce05c656.tar.zst dexon-0x-contracts-da03331015b810505cfaae1445424f61ce05c656.zip |
Unit test edge case for ZRX and ZRX partial fill
Diffstat (limited to 'packages/0x.js/src/utils')
-rw-r--r-- | packages/0x.js/src/utils/order_state_utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/0x.js/src/utils/order_state_utils.ts b/packages/0x.js/src/utils/order_state_utils.ts index 9ff26a7f1..1d8f02a18 100644 --- a/packages/0x.js/src/utils/order_state_utils.ts +++ b/packages/0x.js/src/utils/order_state_utils.ts @@ -82,8 +82,9 @@ export class OrderStateUtils { const transferrableMakerTokenAmount = BigNumber.min([makerProxyAllowance, makerBalance]); const transferrableFeeTokenAmount = BigNumber.min([makerFeeProxyAllowance, makerFeeBalance]); + const isMakerTokenZRX = signedOrder.makerTokenAddress === zrxTokenAddress; const remainingFillableCalculator = new RemainingFillableCalculator(signedOrder, - zrxTokenAddress, + isMakerTokenZRX, transferrableMakerTokenAmount, transferrableFeeTokenAmount, remainingMakerTokenAmount); |