aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-12-07 22:57:02 +0800
committerGitHub <noreply@github.com>2017-12-07 22:57:02 +0800
commit35be563fbdc74974f54b3e90b2eba319b0619754 (patch)
tree4054ef7b266199742fb20b0054569c1227fdbedc
parenta2057a8d295f0c21bf3d459eaba6d205271c1753 (diff)
parentc82fd990aafd72ede0c08d2820c0c1f1db6bfa81 (diff)
downloadtangerine-wallet-browser-35be563fbdc74974f54b3e90b2eba319b0619754.tar.gz
tangerine-wallet-browser-35be563fbdc74974f54b3e90b2eba319b0619754.tar.zst
tangerine-wallet-browser-35be563fbdc74974f54b3e90b2eba319b0619754.zip
Merge pull request #2688 from MetaMask/AddPriceBumpv3.13.0
Add 10% price bump minimum to retry attempts.
-rw-r--r--ui/app/components/pending-tx.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 51e57dcd2..32d54902e 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -43,7 +43,9 @@ PendingTx.prototype.render = function () {
let forceGasMin
if (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