Merge pull request #260 from urbit/whole-gwei
Always suggest whole gwei amounts
commit4724d047a8cb1d997fe09ba2f2e80bd72c832d56
authorFang <Fang-@users.noreply.github.com>
dateTue 27 Aug 2019, 19:31 (7 years ago)
parent936eb0b54bf1d5
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);