v4

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyFee                 = []byte("Fee")
	KeyPoolCreationFee     = []byte("PoolCreationFee")
	KeyTaxRate             = []byte("TaxRate")
	UnilateralLiquidityFee = sdk.NewDecWithPrec(2, 3)
)

Functions

func Migrate

func Migrate(ctx sdk.Context, k CoinswapKeeper, paramSpace exported.Subspace) error

Types

type CoinswapKeeper

type CoinswapKeeper interface {
	GetParams(ctx sdk.Context) types.Params
	SetParams(ctx sdk.Context, params types.Params) error
}

type Params

type Params struct {
	Fee             sdk.Dec  `protobuf:"bytes,1,opt,name=fee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec"                   json:"fee"`
	PoolCreationFee sdk.Coin `` /* 131-byte string literal not displayed */
	TaxRate         sdk.Dec  `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"tax_rate"`
}

func GetLegacyParams

func GetLegacyParams(ctx sdk.Context, paramSpace exported.Subspace) Params

GetLegacyParams gets the parameters for the coinswap module.

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() exported.ParamSetPairs

ParamSetPairs implements paramtypes.KeyValuePairs

Jump to

Keyboard shortcuts

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