on master help sign in
constants: higher default gas price
398db56Fang
src/lib/constants.js+1−1
@@ -1,7 +1,7 @@
1import { isDevelopment } from './flags';
1import { isDevelopment } from './flags';
2
2
3const CHECK_BLOCK_EVERY_MS = isDevelopment ? 1000 : 10000;
3const CHECK_BLOCK_EVERY_MS = isDevelopment ? 1000 : 10000;
4−const DEFAULT_GAS_PRICE_GWEI = 20;
4+const DEFAULT_GAS_PRICE_GWEI = 40;
5
5
6const MIN_GALAXY = 0;
6const MIN_GALAXY = 0;
7const MAX_GALAXY = 255;
7const MAX_GALAXY = 255;
src/lib/getSuggestedGasPrice.js+1−1
@@ -24,7 +24,7 @@ export default async function getSuggestedGasPrice(networkType) {
24 // more than gwei. see: https://docs.ethgasstation.info
24 // more than gwei. see: https://docs.ethgasstation.info
25 const suggestedGasPrice = Math.ceil(json.fast / 10); // to gwei
25 const suggestedGasPrice = Math.ceil(json.fast / 10); // to gwei
26
26
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
28 return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);
28 return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);
29 } catch (e) {
29 } catch (e) {
30 return DEFAULT_GAS_PRICE_GWEI;
30 return DEFAULT_GAS_PRICE_GWEI;