Documentation ¶
Index ¶
- func GetBaseFeeForCurrency(vmRunner vm.EVMRunner, currencyAddress *common.Address, baseFee *big.Int) (*big.Int, error)
- func GetGasPriceSuggestion(vmRunner vm.EVMRunner, currencyAddress *common.Address, baseFee *big.Int, ...) (*big.Int, error)
- func GetGasTipCapSuggestion(vmRunner vm.EVMRunner, currencyAddress *common.Address) (*big.Int, error)
- func GetRealBaseFeeForCurrency(vmRunner vm.EVMRunner, currencyAddress *common.Address, baseFee *big.Int) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseFeeForCurrency ¶
func GetGasPriceSuggestion ¶
func GetGasPriceSuggestion(vmRunner vm.EVMRunner, currencyAddress *common.Address, baseFee *big.Int, multiplier *big.Int) (*big.Int, error)
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 GetRealBaseFeeForCurrency ¶
func GetRealBaseFeeForCurrency(vmRunner vm.EVMRunner, currencyAddress *common.Address, baseFee *big.Int) (*big.Int, error)
GetRealBaseFeeForCurrency is similar to GetBaseFeeForCurrency 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.