From 94ce7a54c3e352e671c0ccdde09535f85b05d353 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Mon, 20 Nov 2017 09:20:37 +1100 Subject: Incorrect amount when is zero or non-zrx fee --- packages/0x.js/src/utils/order_state_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/0x.js/src/utils/order_state_utils.ts b/packages/0x.js/src/utils/order_state_utils.ts index 4d8f90f62..1fe5e3ae4 100644 --- a/packages/0x.js/src/utils/order_state_utils.ts +++ b/packages/0x.js/src/utils/order_state_utils.ts @@ -88,7 +88,7 @@ export class OrderStateUtils { (transferrableFeeTokenAmount.greaterThanOrEqualTo(remainingFeeTokenAmount) && transferrableMakerTokenAmount.greaterThanOrEqualTo(remainingMakerTokenAmount) && signedOrder.makerTokenAddress !== zrxTokenAddress)) { - remainingFillableMakerTokenAmount = transferrableMakerTokenAmount; + remainingFillableMakerTokenAmount = remainingMakerTokenAmount; } else { remainingFillableMakerTokenAmount = this.calculatePartiallyFillableMakerTokenAmount( transferrableMakerTokenAmount, transferrableFeeTokenAmount, remainingMakerTokenAmount, -- cgit v1.2.3