aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/exchange_transfer_simulator.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-11 01:12:30 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:03:18 +0800
commit6edae865168dc86a5a3b39558158d22a4ff3bd99 (patch)
tree9a22715c9b5d060dbac6d79f6c595e834e59a41f /src/utils/exchange_transfer_simulator.ts
parentf163e6d8cc53dbbfd65168c977aa53c5ab9b3c08 (diff)
downloaddexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar
dexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.gz
dexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.bz2
dexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.lz
dexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.xz
dexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.tar.zst
dexon-sol-tools-6edae865168dc86a5a3b39558158d22a4ff3bd99.zip
Make store configurable by blockParam
Diffstat (limited to 'src/utils/exchange_transfer_simulator.ts')
-rw-r--r--src/utils/exchange_transfer_simulator.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/exchange_transfer_simulator.ts b/src/utils/exchange_transfer_simulator.ts
index ecdec0be0..56bd48f17 100644
--- a/src/utils/exchange_transfer_simulator.ts
+++ b/src/utils/exchange_transfer_simulator.ts
@@ -1,6 +1,6 @@
import * as _ from 'lodash';
import BigNumber from 'bignumber.js';
-import {ExchangeContractErrs, TradeSide, TransferType} from '../types';
+import {ExchangeContractErrs, TradeSide, TransferType, BlockParamLiteral} from '../types';
import {TokenWrapper} from '../contract_wrappers/token_wrapper';
import {BalanceAndProxyAllowanceLazyStore} from '../stores/balance_proxy_allowance_lazy_store';
@@ -36,7 +36,7 @@ export class ExchangeTransferSimulator {
private store: BalanceAndProxyAllowanceLazyStore;
private UNLIMITED_ALLOWANCE_IN_BASE_UNITS: BigNumber;
constructor(token: TokenWrapper) {
- this.store = new BalanceAndProxyAllowanceLazyStore(token);
+ this.store = new BalanceAndProxyAllowanceLazyStore(token, BlockParamLiteral.Latest);
this.UNLIMITED_ALLOWANCE_IN_BASE_UNITS = token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS;
}
/**