gasprice

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseFeeForCurrency

func GetBaseFeeForCurrency(vmRunner vm.EVMRunner, currencyAddress *common.Address, baseFee *big.Int) (*big.Int, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL