@@ -1,5 +1,5 @@
11import { NETWORK_TYPES } from './network';
2−import { DEFAULT_GAS_PRICE_GWEI } from './constants';
2+import { DEFAULT_GAS_PRICE_GWEI, MAX_GAS_PRICE_GWEI } from './constants';
33
44export default async function getSuggestedGasPrice(networkType) {
55 switch (networkType) {
@@ -24,8 +24,8 @@ export default async function getSuggestedGasPrice(networkType) {
2424 // more than gwei. see: https://docs.ethgasstation.info
2525 const suggestedGasPrice = Math.ceil(json.fast / 10); // to gwei
2626
27− // we don't want to charge users more than our default gwei
28− return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);
27+ // we don't want to charge users more than the gas tank funds
28+ return Math.min(suggestedGasPrice, MAX_GAS_PRICE_GWEI);
2929 } catch (e) {
3030 return DEFAULT_GAS_PRICE_GWEI;
3131 }