diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-08 00:33:42 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-08 00:33:42 +0800 |
commit | f5ad553be35bcc35fdac9620ae3d1e5546fd902c (patch) | |
tree | e73d6224df89089ec217c7a98b0d1a14cb2fef54 /packages/order-utils/src/order_state_utils.ts | |
parent | dee0fec9e9521712d11f1f040ae1264c41badaba (diff) | |
download | dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.tar dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.tar.gz dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.tar.bz2 dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.tar.lz dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.tar.xz dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.tar.zst dexon-0x-contracts-f5ad553be35bcc35fdac9620ae3d1e5546fd902c.zip |
Pass in fee and assetAmount rather then the whole signedOrder
Diffstat (limited to 'packages/order-utils/src/order_state_utils.ts')
-rw-r--r-- | packages/order-utils/src/order_state_utils.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/order-utils/src/order_state_utils.ts b/packages/order-utils/src/order_state_utils.ts index ef868e60f..ca18097c9 100644 --- a/packages/order-utils/src/order_state_utils.ts +++ b/packages/order-utils/src/order_state_utils.ts @@ -113,10 +113,9 @@ export class OrderStateUtils { const zrxAssetData = assetProxyUtils.encodeERC20ProxyData(zrxTokenAddress); const isMakerAssetZRX = signedOrder.makerAssetData === zrxAssetData; - const isTraderMaker = true; const remainingFillableCalculator = new RemainingFillableCalculator( - isTraderMaker, - signedOrder, + signedOrder.makerFee, + signedOrder.makerAssetAmount, isMakerAssetZRX, transferrableMakerAssetAmount, transferrableFeeAssetAmount, |