mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 05:12:18 +01:00
24 lines
586 B
JavaScript
24 lines
586 B
JavaScript
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,
|
|
}
|