aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 07:54:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commita5876978838baa9a66c2dd9714dd2810839aa55b (patch)
tree75feeab84ffae934b5b8b471eeaa08a0a696ec69
parent3204c077d1f2095ceda3f2cd91735e3b7db66df2 (diff)
downloaddexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.tar
dexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.tar.gz
dexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.tar.bz2
dexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.tar.lz
dexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.tar.xz
dexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.tar.zst
dexon-sol-tools-a5876978838baa9a66c2dd9714dd2810839aa55b.zip
Remove duplicate operations
-rw-r--r--src/order_watcher/order_state_watcher.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index 3e8fd7e3a..3c09a2743 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -174,7 +174,6 @@ export class OrderStateWatcher {
// Invalidate cache
const args = decodedLog.args as LogFillContractEventArgs;
this._orderFilledCancelledLazyStore.deleteFilledTakerAmount(args.orderHash);
- this._orderFilledCancelledLazyStore.deleteFilledTakerAmount(args.orderHash);
// Revalidate orders
const orderHash = args.orderHash;
const isOrderWatched = !_.isUndefined(this._orderByOrderHash[orderHash]);
@@ -188,7 +187,6 @@ export class OrderStateWatcher {
// Invalidate cache
const args = decodedLog.args as LogCancelContractEventArgs;
this._orderFilledCancelledLazyStore.deleteCancelledTakerAmount(args.orderHash);
- this._orderFilledCancelledLazyStore.deleteCancelledTakerAmount(args.orderHash);
// Revalidate orders
const orderHash = args.orderHash;
const isOrderWatched = !_.isUndefined(this._orderByOrderHash[orderHash]);