diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-11-10 08:02:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 08:02:09 +0800 |
commit | 26cbe7ae6646d97c286e58756c23a93de32ae37b (patch) | |
tree | 96943e8dd87f0e3ef8c994101bce5a16a47082ea /packages/instant/src/constants.ts | |
parent | 2c585bfbdc4940e3e6089ac1cf595dd009b141d2 (diff) | |
parent | fd83ca2cb893ab7cc027efd6829ba2eb07cdb539 (diff) | |
download | dexon-0x-contracts-26cbe7ae6646d97c286e58756c23a93de32ae37b.tar.gz dexon-0x-contracts-26cbe7ae6646d97c286e58756c23a93de32ae37b.tar.zst dexon-0x-contracts-26cbe7ae6646d97c286e58756c23a93de32ae37b.zip |
Merge pull request #1237 from 0xProject/feature/instant/buy-quote-heartbeat
[instant] Heartbeats for account info and buy quotes
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r-- | packages/instant/src/constants.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts index b5c4f96e4..6bfbc690e 100644 --- a/packages/instant/src/constants.ts +++ b/packages/instant/src/constants.ts @@ -11,6 +11,8 @@ export const WEB_3_WRAPPER_TRANSACTION_FAILED_ERROR_MSG_PREFIX = 'Transaction fa export const GWEI_IN_WEI = new BigNumber(1000000000); export const ONE_SECOND_MS = 1000; export const ONE_MINUTE_MS = ONE_SECOND_MS * 60; +export const ACCOUNT_UPDATE_INTERVAL_TIME_MS = ONE_SECOND_MS * 5; +export const BUY_QUOTE_UPDATE_INTERVAL_TIME_MS = ONE_SECOND_MS * 15; export const DEFAULT_GAS_PRICE = GWEI_IN_WEI.mul(6); export const DEFAULT_ESTIMATED_TRANSACTION_TIME_MS = ONE_MINUTE_MS * 2; export const ETH_GAS_STATION_API_BASE_URL = 'https://ethgasstation.info'; |