refund

package
v0.0.0-...-f498596 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRefundFees

func CalculateRefundFees(gasUsed uint64, fees sdk.DecCoins, gasPrice *big.Int) sdk.Coins

CalculateRefundFees provides the way to calculate the refunded gas with gasUsed, fees and gasPrice, as refunded gas = fees - gasPrice * gasUsed

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (Handler) GasRefund

func (handler Handler) GasRefund(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, error)

Jump to

Keyboard shortcuts

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