Documentation ¶
Index ¶
- Variables
- func CalculateTaxesAndPayableFee(gasPrices sdk.DecCoins, feeCoins sdk.Coins, taxGas sdkmath.Int, ...) (taxes, payableFees sdk.Coins, gasRemaining sdkmath.Int)
- func ComputeFeesOnGasConsumed(tx sdk.Tx, gasPrices sdk.DecCoins, gas sdkmath.Int) (sdk.Coins, error)
- func ComputeGas(gasPrices sdk.DecCoins, taxes sdk.Coins) (sdkmath.Int, error)
- func ComputeTax(burnTaxRate sdk.Dec, principal sdk.Coins) sdk.Coins
- func FilterMsgAndComputeTax(ctx sdk.Context, tk types.TreasuryKeeper, burnTaxRate sdk.Dec, msgs ...sdk.Msg) sdk.Coins
- func GetGasPriceByDenom(gasPrices sdk.DecCoins, denom string) (bool, sdk.Dec)
- func IsOracleTx(msgs []sdk.Msg) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var IBCRegexp = regexp.MustCompile("^ibc/[a-fA-F0-9]{64}$")
Functions ¶
func ComputeTax ¶
computes the stability tax according to tax-rate and tax-cap
func FilterMsgAndComputeTax ¶
func FilterMsgAndComputeTax(ctx sdk.Context, tk types.TreasuryKeeper, burnTaxRate sdk.Dec, msgs ...sdk.Msg) sdk.Coins
FilterMsgAndComputeTax computes the stability tax on messages.
func GetGasPriceByDenom ¶
Find returns true and Dec amount if the denom exists in gasPrices. Otherwise it returns false and a zero dec. Uses binary search. CONTRACT: gasPrices must be valid (sorted).
func IsOracleTx ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.