aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-20 08:10:50 +0800
committerJacob Evans <jacob@dekz.net>2017-11-20 08:10:50 +0800
commitd6589004c7f7c4d1af28c3aae110995da4c63531 (patch)
tree032001867a4c6d030e8a8ed2dc2742997c896fe0 /packages/0x.js/src/utils
parent519f1318c67ca4e40426cc23cce10dbb45985d6a (diff)
downloaddexon-0x-contracts-d6589004c7f7c4d1af28c3aae110995da4c63531.tar.gz
dexon-0x-contracts-d6589004c7f7c4d1af28c3aae110995da4c63531.tar.zst
dexon-0x-contracts-d6589004c7f7c4d1af28c3aae110995da4c63531.zip
fix bug when fees and partial asymmetric
Diffstat (limited to 'packages/0x.js/src/utils')
-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 80ab0de63..4187c7139 100644
--- a/packages/0x.js/src/utils/order_state_utils.ts
+++ b/packages/0x.js/src/utils/order_state_utils.ts
@@ -131,7 +131,7 @@ export class OrderStateUtils {
return BigNumber.min(remainingMakerAmount, transferrableMakerTokenAmount);
} else if (transferrableMakerTokenAmount.gte(remainingMakerAmount) &&
transferrableMakerFeeTokenAmount.gte(remainingMakerFeeAmount)) {
- return transferrableMakerTokenAmount;
+ return remainingMakerAmount;
} else {
return this.calculatePartiallyFillableMakerTokenAmount(
transferrableMakerTokenAmount, transferrableMakerFeeTokenAmount, remainingMakerAmount,