diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-30 06:19:48 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-30 06:21:30 +0800 |
commit | 8ab8c279989114662d6dce4b5b998ad8fd88fc1a (patch) | |
tree | 1197a450703b938abf68f74c1b679b3c61ccf86e /packages/instant/src/components/zero_ex_instant.tsx | |
parent | 48ff13e3e22bf9f71bc1a367f86aaa0ae89989ae (diff) | |
download | dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.tar dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.tar.gz dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.tar.bz2 dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.tar.lz dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.tar.xz dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.tar.zst dexon-sol-tools-8ab8c279989114662d6dce4b5b998ad8fd88fc1a.zip |
gas price estimator
Diffstat (limited to 'packages/instant/src/components/zero_ex_instant.tsx')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant.tsx b/packages/instant/src/components/zero_ex_instant.tsx index 19a2d6b9b..6a5846963 100644 --- a/packages/instant/src/components/zero_ex_instant.tsx +++ b/packages/instant/src/components/zero_ex_instant.tsx @@ -13,6 +13,7 @@ import { AssetMetaData, Network } from '../types'; import { assetUtils } from '../util/asset'; import { BigNumberInput } from '../util/big_number_input'; import { errorFlasher } from '../util/error_flasher'; +import { gasPriceEstimator } from '../util/gas_price_estimator'; import { getProvider } from '../util/provider'; import { web3Wrapper } from '../util/web3_wrapper'; @@ -78,6 +79,7 @@ export class ZeroExInstant extends React.Component<ZeroExInstantProps> { public componentDidMount(): void { // tslint:disable-next-line:no-floating-promises asyncData.fetchAndDispatchToStore(this._store); + gasPriceEstimator.getFastAmountInWeiAsync(); // tslint:disable-next-line:no-floating-promises this._flashErrorIfWrongNetwork(); } |