diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-10-25 06:08:22 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-10-25 06:10:03 +0800 |
commit | 35ca7e83bdffe4dbf9efbcd161e9f80e5530c86a (patch) | |
tree | a802236330e385bd68bfdbbb1e60f03939d7529e /ui/app/components/pending-tx.js | |
parent | ae56b865e8a4d3a6a82a97efeca34b8a592c985b (diff) | |
download | tangerine-wallet-browser-35ca7e83bdffe4dbf9efbcd161e9f80e5530c86a.tar.gz tangerine-wallet-browser-35ca7e83bdffe4dbf9efbcd161e9f80e5530c86a.tar.zst tangerine-wallet-browser-35ca7e83bdffe4dbf9efbcd161e9f80e5530c86a.zip |
Reduce minimum gas price to 100 MWEI
Also now representing gas price in MWEI, because our current bn inputs actually aren't tolerant of minimums less than 1 unit.
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r-- | ui/app/components/pending-tx.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js index c3350fcc1..6a657d81e 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 @@ -197,10 +197,10 @@ PendingTx.prototype.render = function () { h(BNInput, { name: 'Gas Price', value: gasPriceBn, - precision: 9, - scale: 9, - suffix: 'GWEI', - min: MIN_GAS_PRICE_GWEI_BN.toString(10), + precision: 6, + scale: 6, + suffix: 'MWEI', + min: MIN_GAS_PRICE_MWEI_BN.toString(10), style: { position: 'relative', top: '5px', |