aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-10-25 07:43:03 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-10-25 07:43:03 +0800
commit98d8275743344826e81ee59ba7435ca75b43f2cd (patch)
treed6b38896445d52a81e5a72a917c4aeb2a90eda03 /ui/app/components/pending-tx.js
parentae56b865e8a4d3a6a82a97efeca34b8a592c985b (diff)
downloadtangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.tar
tangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.tar.gz
tangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.tar.bz2
tangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.tar.lz
tangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.tar.xz
tangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.tar.zst
tangerine-wallet-browser-98d8275743344826e81ee59ba7435ca75b43f2cd.zip
Fix for gas price to be lowered.
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r--ui/app/components/pending-tx.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index c3350fcc1..431a5a0cb 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -15,9 +15,9 @@ const addressSummary = util.addressSummary
const nameForAddress = require('../../lib/contract-namer')
const BNInput = require('./bn-as-decimal-input')
-const MIN_GAS_PRICE_GWEI_BN = new BN(1)
-const GWEI_FACTOR = new BN(1e9)
-const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_GWEI_BN.mul(GWEI_FACTOR)
+const MIN_GAS_PRICE_MWEI_BN = new BN(100)
+const MWEI_FACTOR = new BN(1e6)
+const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_MWEI_BN.mul(MWEI_FACTOR)
const MIN_GAS_LIMIT_BN = new BN(21000)
module.exports = PendingTx
@@ -57,7 +57,7 @@ PendingTx.prototype.render = function () {
const safeGasLimit = safeGasLimitBN.toString(10)
// Gas Price
- const gasPrice = txParams.gasPrice || MIN_GAS_PRICE_BN.toString(16)
+ const gasPrice = txParams.gasPrice || MIN_GAS_PRICE_BN.toString(10)
const gasPriceBn = hexToBn(gasPrice)
const txFeeBn = gasBn.mul(gasPriceBn)
@@ -200,7 +200,7 @@ PendingTx.prototype.render = function () {
precision: 9,
scale: 9,
suffix: 'GWEI',
- min: MIN_GAS_PRICE_GWEI_BN.toString(10),
+ min: MIN_GAS_PRICE_BN.toString(10),
style: {
position: 'relative',
top: '5px',