aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-14 03:22:08 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-14 03:22:08 +0800
commit6e725b123b878da12494904b121237ee41af7f76 (patch)
tree056bda27552af5bc58d976571a1c1f0926ec4ba4 /ui/app
parent06153dd47d16c2e3c6eed7470501d7534c29cbd4 (diff)
downloadtangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.tar
tangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.tar.gz
tangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.tar.bz2
tangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.tar.lz
tangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.tar.xz
tangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.tar.zst
tangerine-wallet-browser-6e725b123b878da12494904b121237ee41af7f76.zip
Lower warning threshold for high tx fee to account for fluctuating blockGasLimits
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/pending-tx.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 37b242728..ec2b15de4 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -53,6 +53,7 @@ PendingTx.prototype.render = function () {
const gasBn = hexToBn(gas)
const gasLimit = new BN(parseInt(blockGasLimit))
const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 19, 20)
+ const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 18, 20)
const safeGasLimit = safeGasLimitBN.toString(10)
// Gas Price
@@ -67,7 +68,7 @@ PendingTx.prototype.render = function () {
const balanceBn = hexToBn(balance)
const insufficientBalance = balanceBn.lt(maxCost)
- const dangerousGasLimit = gasBn.gte(safeGasLimitBN)
+ const dangerousGasLimit = gasBn.gte(saferGasLimitBN)
const gasLimitSpecified = txMeta.gasLimitSpecified
const buyDisabled = insufficientBalance || !this.state.valid || !isValidAddress || this.state.submitting
const showRejectAll = props.unconfTxListLength > 1