gasprice_minimum

package
v0.0.0-...-697f13e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 GetGasPriceMinimum(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)

func GetGasPriceMinimumFloor

func GetGasPriceMinimumFloor(vmRunner vm.EVMRunner) (*big.Int, error)

func GetGasPriceSuggestion

func GetGasPriceSuggestion(vmRunner vm.EVMRunner, currency *common.Address) (*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 GetRealGasPriceMinimum

func GetRealGasPriceMinimum(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)

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.

func UpdateGasPriceMinimum

func UpdateGasPriceMinimum(vmRunner vm.EVMRunner, lastUsedGas uint64) (*big.Int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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