Merge pull request #2688 from MetaMask/AddPriceBump

Add 10% price bump minimum to retry attempts.
feature/default_network_editable
Kevin Serrano 7 years ago committed by GitHub
commit 35be563fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/components/pending-tx.js

@ -43,7 +43,9 @@ PendingTx.prototype.render = function () {
let forceGasMin let forceGasMin
if (lastGasPrice) { if (lastGasPrice) {
const stripped = ethUtil.stripHexPrefix(lastGasPrice) const stripped = ethUtil.stripHexPrefix(lastGasPrice)
forceGasMin = new BN(stripped, 16).add(MIN_GAS_PRICE_BN) const lastGas = new BN(stripped, 16)
const priceBump = lastGas.divn('10')
forceGasMin = lastGas.add(priceBump)
} }
// Account Details // Account Details

Loading…
Cancel
Save