aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-03-30 03:28:50 +0800
committerDan Finlay <dan@danfinlay.com>2018-03-30 03:28:50 +0800
commit4d2d3d443076e4b399c5e9266c62e3f09218d069 (patch)
tree5ffdb60860b5195dedaecd19756500494fd0209f /old-ui
parent650b716f55fcfa809b22708b9ad43c8a0716f9fc (diff)
downloadtangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.tar
tangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.tar.gz
tangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.tar.bz2
tangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.tar.lz
tangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.tar.xz
tangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.tar.zst
tangerine-wallet-browser-4d2d3d443076e4b399c5e9266c62e3f09218d069.zip
Increase permitted safe gas limit
Block gas limits have been incredibly stable lately: https://etherscan.io/chart/gaslimit And this validation has prevented Aragon's new beta from working: https://twitter.com/izqui9/status/979373309312815104 Fixes #3790
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/components/pending-tx.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/old-ui/app/components/pending-tx.js b/old-ui/app/components/pending-tx.js
index 720df2243..7f63d9fdf 100644
--- a/old-ui/app/components/pending-tx.js
+++ b/old-ui/app/components/pending-tx.js
@@ -62,8 +62,8 @@ PendingTx.prototype.render = function () {
const gasBn = hexToBn(gas)
// default to 8MM gas limit
const gasLimit = new BN(parseInt(blockGasLimit) || '8000000')
- const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 19, 20)
- const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 18, 20)
+ const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 99, 100)
+ const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 98, 100)
const safeGasLimit = safeGasLimitBN.toString(10)
// Gas Price
@@ -311,7 +311,7 @@ PendingTx.prototype.render = function () {
style: {
fontSize: '0.9em',
},
- }, 'Gas limit set dangerously high. Approving this transaction is likely to fail.')
+ }, 'Gas limit set dangerously high. Approving this transaction is liable to fail.')
: null,
]),