Always suggest whole gwei amounts
commit54bf1d55c2bc340f868922a83abaf0721924a3ad
authorFang <Fang-@users.noreply.github.com>
dateTue 27 Aug 2019, 19:20 (7 years ago)
parent936eb0b
src/lib/getSuggestedGasPrice.js+1−1
@@ -22,7 +22,7 @@ export default async function getSuggestedGasPrice(networkType) {
2222
2323 // ethgasstation returns values in floating point, one order of magitude
2424 // more than gwei. see: https://docs.ethgasstation.info
25− const suggestedGasPrice = json.fast / 10; // to gwei
25+ const suggestedGasPrice = Math.ceil(json.fast / 10); // to gwei
2626
2727 // we don't want to charge users more than our default 20 gwei
2828 return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);