MyCrypto/common/config/constants.ts
William O'Beirne c76d0b3fa5 Handle Gas / Estimates on a Per Network Basis (#1160)
* Give each network the ability to specify default estimates, and whether or not they should fetch estimates from API. Convert gas slider to always use estimates.

* Fix gas cache invalidation, invalid too high / low logic.

* Fix up tests.

* tscheck
2018-02-24 12:00:00 -06:00

9 lines
309 B
TypeScript

// Lower/upper ranges for gas limit
export const GAS_LIMIT_LOWER_BOUND = 21000;
export const GAS_LIMIT_UPPER_BOUND = 8000000;
// Lower/upper ranges for gas price in gwei
export const GAS_PRICE_GWEI_LOWER_BOUND = 0.01;
export const GAS_PRICE_GWEI_UPPER_BOUND = 3000;
export const GAS_PRICE_GWEI_DEFAULT = 20;