aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-constants.js
blob: a819a8c285e914ba5e711cff7e9c3aaedea732d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const Identicon = require('../identicon')
const { multiplyCurrencies } = require('../../conversion-util')

const MIN_GAS_PRICE_GWEI = '1'
const GWEI_FACTOR = '1e9'
const MIN_GAS_PRICE = multiplyCurrencies(GWEI_FACTOR, MIN_GAS_PRICE_GWEI, {
    multiplicandBase: 16,
    multiplierBase: 16,
})
const MIN_GAS_LIMIT = (21000).toString(16)
const MIN_GAS_TOTAL = multiplyCurrencies(MIN_GAS_LIMIT, MIN_GAS_PRICE, {
  toNumericBase: 'hex',
  multiplicandBase: 16,
  multiplierBase: 16,
})

module.exports = {
  MIN_GAS_PRICE_GWEI,
  GWEI_FACTOR,
  MIN_GAS_PRICE,
  MIN_GAS_LIMIT,
  MIN_GAS_TOTAL,
}