aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-21 11:57:08 +0800
committerJacob Evans <jacob@dekz.net>2017-11-21 11:57:08 +0800
commitd16f0508bdae9941a0eb5e042bbade5078da1c00 (patch)
tree683d393f70e6614f79f84f3b1287567ca7b7d88d /packages/0x.js/src
parentda03331015b810505cfaae1445424f61ce05c656 (diff)
downloaddexon-0x-contracts-d16f0508bdae9941a0eb5e042bbade5078da1c00.tar.gz
dexon-0x-contracts-d16f0508bdae9941a0eb5e042bbade5078da1c00.tar.zst
dexon-0x-contracts-d16f0508bdae9941a0eb5e042bbade5078da1c00.zip
totalZRXTransferAmount -> totalZRXTransferAmountRequired
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/order_watcher/remaining_fillable_calculator.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/order_watcher/remaining_fillable_calculator.ts b/packages/0x.js/src/order_watcher/remaining_fillable_calculator.ts
index 45f60ada3..8141dd73c 100644
--- a/packages/0x.js/src/order_watcher/remaining_fillable_calculator.ts
+++ b/packages/0x.js/src/order_watcher/remaining_fillable_calculator.ts
@@ -38,8 +38,8 @@ export class RemainingFillableCalculator {
}
private hasSufficientFundsForFeeAndTransferAmount(): boolean {
if (this._isMakerTokenZRX) {
- const totalZRXTransferAmount = this._remainingMakerTokenAmount.plus(this._remainingMakerFeeAmount);
- return this._transferrableMakerTokenAmount.gte(totalZRXTransferAmount);
+ const totalZRXTransferAmountRequired = this._remainingMakerTokenAmount.plus(this._remainingMakerFeeAmount);
+ return this._transferrableMakerTokenAmount.gte(totalZRXTransferAmountRequired);
} else {
const hasSufficientFundsForTransferAmount = this._transferrableMakerTokenAmount.gte(
this._remainingMakerTokenAmount);