Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CalculateBumpedFee ¶ added in v2.5.0
func CalculateBumpedFee( lggr logger.SugaredLogger, currentfeePrice, originalfeePrice, maxFeePriceInput, maxBumpPrice, bumpMin *big.Int, bumpPercent uint16, toChainUnit feeUnitToChainUnit, ) (*big.Int, error)
CalculateBumpedFee computes the next fee price to attempt as the largest of: - A configured percentage bump (bumpPercent) on top of the baseline price. - A configured fixed amount of Unit (bumpMin) on top of the baseline price. The baseline price is the maximum of the previous fee price attempt and the node's current fee price.
func CalculateFee ¶ added in v2.5.0
CalculateFee computes the fee price for a transaction. The fee price is the minimum of: - max fee price specified, default fee price and max fee price for the node.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.