aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-20 06:20:37 +0800
committerJacob Evans <jacob@dekz.net>2017-11-20 06:20:37 +0800
commit94ce7a54c3e352e671c0ccdde09535f85b05d353 (patch)
treeca71a2801918b3fd3ab741868f49cb7f26ba3fa9
parent3bb6d8871b459c4f3975b600d391558188aa48b7 (diff)
downloaddexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.tar
dexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.tar.gz
dexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.tar.bz2
dexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.tar.lz
dexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.tar.xz
dexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.tar.zst
dexon-sol-tools-94ce7a54c3e352e671c0ccdde09535f85b05d353.zip
Incorrect amount when is zero or non-zrx fee
-rw-r--r--packages/0x.js/src/utils/order_state_utils.ts2
1 files changed, 1 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 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,