on master help sign in
constants: higher default gas price
commit398db562034e7c7d04e52993900492e5b162e5ea authorFang <git@fang.io> dateThu 21 May 2020, 20:13 (6 years ago) parentbaaceb6
2 files changed+2−2
src/lib/constants.js+1−1 src/lib/getSuggestedGasPrice.js+1−1
src/lib/constants.js+1−1
@@ -1,7 +1,7 @@
11import { isDevelopment } from './flags';
22
33const CHECK_BLOCK_EVERY_MS = isDevelopment ? 1000 : 10000;
4−const DEFAULT_GAS_PRICE_GWEI = 20;
4+const DEFAULT_GAS_PRICE_GWEI = 40;
55
66const MIN_GALAXY = 0;
77const MAX_GALAXY = 255;
src/lib/getSuggestedGasPrice.js+1−1
@@ -24,7 +24,7 @@ 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 20 gwei
27+ // we don't want to charge users more than our default gwei
2828 return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);
2929 } catch (e) {
3030 return DEFAULT_GAS_PRICE_GWEI;