aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 01:56:34 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 01:56:34 +0800
commitac2c723ec9044589ad6495f4fd915db1f9eda3a7 (patch)
tree441b43cdfd5965312a27f41e7f9c91823cc45e2e /packages/0x.js/src
parent3fc0eae4c0d66ff2cf9bffc8bc646b5aeb0c13b8 (diff)
downloaddexon-sol-tools-ac2c723ec9044589ad6495f4fd915db1f9eda3a7.tar.gz
dexon-sol-tools-ac2c723ec9044589ad6495f4fd915db1f9eda3a7.tar.zst
dexon-sol-tools-ac2c723ec9044589ad6495f4fd915db1f9eda3a7.zip
Last renames
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/order_watcher/expiration_watcher.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/0x.js/src/order_watcher/expiration_watcher.ts b/packages/0x.js/src/order_watcher/expiration_watcher.ts
index 862714cc5..717edaad7 100644
--- a/packages/0x.js/src/order_watcher/expiration_watcher.ts
+++ b/packages/0x.js/src/order_watcher/expiration_watcher.ts
@@ -55,16 +55,16 @@ export class ExpirationWatcher {
private async pruneExpiredOrdersAsync(callbackAsync: (orderHash: string) => Promise<void>): Promise<void> {
const currentUnixTimestampMs = utils.getCurrentUnixTimestampMs();
while (true) {
- const noOrdersLeft = this.orderHashByExpirationRBTree.size === 0;
- if (noOrdersLeft) {
+ const hasTrakedOrders = this.orderHashByExpirationRBTree.size === 0;
+ if (hasTrakedOrders) {
break;
}
const nextOrderHashToExpire = this.orderHashByExpirationRBTree.min();
- const noExpiredOrdersLeft = this.expiration[nextOrderHashToExpire].greaterThan(
+ const hasNoExpiredOrders = this.expiration[nextOrderHashToExpire].greaterThan(
currentUnixTimestampMs.plus(this.expirationMarginMs),
);
- const noActiveSubscription = _.isUndefined(this.orderExpirationCheckingIntervalIdIfExists);
- if (noExpiredOrdersLeft || noActiveSubscription) {
+ const isSubscriptionActive = _.isUndefined(this.orderExpirationCheckingIntervalIdIfExists);
+ if (hasNoExpiredOrders || isSubscriptionActive) {
break;
}
const orderHash = this.orderHashByExpirationRBTree.min();