mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Get and set average gas price button estimation as default
This commit is contained in:
parent
4e29fb97d6
commit
302c815309
@ -13,7 +13,7 @@ const {
|
|||||||
calcGasTotal,
|
calcGasTotal,
|
||||||
} = require('./send.utils')
|
} = require('./send.utils')
|
||||||
import {
|
import {
|
||||||
getFastPriceEstimateInHexWEI,
|
getAveragePriceEstimateInHexWEI,
|
||||||
} from '../../selectors/custom-gas'
|
} from '../../selectors/custom-gas'
|
||||||
|
|
||||||
const selectors = {
|
const selectors = {
|
||||||
@ -120,7 +120,7 @@ function getGasLimit (state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getGasPrice (state) {
|
function getGasPrice (state) {
|
||||||
return state.metamask.send.gasPrice || getFastPriceEstimateInHexWEI(state)
|
return state.metamask.send.gasPrice || getAveragePriceEstimateInHexWEI(state)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGasPriceFromRecentBlocks (state) {
|
function getGasPriceFromRecentBlocks (state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user