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.
feature/default_network_editable
Dan Finlay 7 years ago
parent ae56b865e8
commit 35ca7e83bd
  1. 1
      CHANGELOG.md
  2. 14
      ui/app/components/pending-tx.js
  3. 4491
      ui/app/css/output/index.css

@ -3,6 +3,7 @@
## Current Master ## Current Master
- Add support for alternative ENS TLDs (Ethereum Name Service Top-Level Domains). - Add support for alternative ENS TLDs (Ethereum Name Service Top-Level Domains).
- Lower minimum gas price to 0.1 GWEI, now shown as 100 MWEI.
## 3.11.2 2017-10-21 ## 3.11.2 2017-10-21

@ -15,9 +15,9 @@ const addressSummary = util.addressSummary
const nameForAddress = require('../../lib/contract-namer') const nameForAddress = require('../../lib/contract-namer')
const BNInput = require('./bn-as-decimal-input') const BNInput = require('./bn-as-decimal-input')
const MIN_GAS_PRICE_GWEI_BN = new BN(1) const MIN_GAS_PRICE_MWEI_BN = new BN('100')
const GWEI_FACTOR = new BN(1e9) const MWEI_FACTOR = new BN(1e6)
const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_GWEI_BN.mul(GWEI_FACTOR) const MIN_GAS_PRICE_BN = MIN_GAS_PRICE_MWEI_BN.mul(MWEI_FACTOR)
const MIN_GAS_LIMIT_BN = new BN(21000) const MIN_GAS_LIMIT_BN = new BN(21000)
module.exports = PendingTx module.exports = PendingTx
@ -197,10 +197,10 @@ PendingTx.prototype.render = function () {
h(BNInput, { h(BNInput, {
name: 'Gas Price', name: 'Gas Price',
value: gasPriceBn, value: gasPriceBn,
precision: 9, precision: 6,
scale: 9, scale: 6,
suffix: 'GWEI', suffix: 'MWEI',
min: MIN_GAS_PRICE_GWEI_BN.toString(10), min: MIN_GAS_PRICE_MWEI_BN.toString(10),
style: { style: {
position: 'relative', position: 'relative',
top: '5px', top: '5px',

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save