diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 07:53:21 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-13 09:06:13 +0800 |
commit | 3204c077d1f2095ceda3f2cd91735e3b7db66df2 (patch) | |
tree | 2d2cb5162b87d5938cf3771653200c550feb015b /src | |
parent | d52825a5b18b0ac7591ca2f32a5062e949e4a65a (diff) | |
download | dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.tar dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.tar.gz dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.tar.bz2 dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.tar.lz dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.tar.xz dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.tar.zst dexon-sol-tools-3204c077d1f2095ceda3f2cd91735e3b7db66df2.zip |
Remove redundant instance variables
Diffstat (limited to 'src')
-rw-r--r-- | src/order_watcher/order_state_watcher.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts index c40131bcb..3e8fd7e3a 100644 --- a/src/order_watcher/order_state_watcher.ts +++ b/src/order_watcher/order_state_watcher.ts @@ -55,8 +55,6 @@ export class OrderStateWatcher { private _callbackIfExistsAsync?: OnOrderStateChangeCallback; private _eventWatcher: EventWatcher; private _web3Wrapper: Web3Wrapper; - private _token: TokenWrapper; - private _exchange: ExchangeWrapper; private _abiDecoder: AbiDecoder; private _orderStateUtils: OrderStateUtils; private _orderFilledCancelledLazyStore: OrderFilledCancelledLazyStore; @@ -67,17 +65,13 @@ export class OrderStateWatcher { ) { this._orderByOrderHash = {}; this._abiDecoder = abiDecoder; - this._token = token; - this._exchange = exchange; this._web3Wrapper = web3Wrapper; this._dependentOrderHashes = {}; const eventPollingIntervalMs = _.isUndefined(config) ? undefined : config.eventPollingIntervalMs; const blockPollingIntervalMs = _.isUndefined(config) ? undefined : config.blockPollingIntervalMs; this._eventWatcher = new EventWatcher(web3Wrapper, eventPollingIntervalMs); - this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore( - this._token, - ); - this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(this._exchange); + this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(token); + this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(exchange); this._orderStateUtils = new OrderStateUtils( this._balanceAndProxyAllowanceLazyStore, this._orderFilledCancelledLazyStore, ); |