Documentation ¶
Index ¶
- Variables
- func GetGasPriceMinimum(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)
- func GetGasPriceMinimumFloor(vmRunner vm.EVMRunner) (*big.Int, error)
- func GetGasPriceSuggestion(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)
- func GetGasTipCapSuggestion(vmRunner vm.EVMRunner, currencyAddress *common.Address) (*big.Int, error)
- func GetRealGasPriceMinimum(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)
- func UpdateGasPriceMinimum(vmRunner vm.EVMRunner, lastUsedGas uint64) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FallbackGasPriceMinimum *big.Int = big.NewInt(0) // gas price minimum to return if unable to fetch from contract
)
Functions ¶
func GetGasPriceMinimum ¶
func GetGasPriceMinimumFloor ¶
func GetGasPriceSuggestion ¶
GetGasPriceSuggestion suggests a gas price the suggestionMultiplier times higher than the GPM in the appropriate currency. TODO: Switch to using a caching GPM manager under high load.
func GetGasTipCapSuggestion ¶
func GetGasTipCapSuggestion(vmRunner vm.EVMRunner, currencyAddress *common.Address) (*big.Int, error)
GetGasTipCapSuggestion suggests a max tip of 2GWei in the appropriate currency. TODO: Switch to using a caching currency manager under high load.
func GetRealGasPriceMinimum ¶
GetRealGasPriceMinimum is similar to GetRealGasPriceMinimum but if there is a problem retrieving the gas price minimum it will return the error and a nil gas price minimum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.