v2

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FormatUniABSPrefix defines the prefix of liquidity token
	FormatUniABSPrefix = "swap"
	// FormatUniDenom defines the name of liquidity token
	FormatUniDenom = "swap%s"
)

Variables

This section is empty.

Functions

func GetCoinDenomFromUniDenom added in v1.8.0

func GetCoinDenomFromUniDenom(uniDenom string) (string, error)

GetCoinDenomFromUniDenom returns the token denom by uni denom

func GetReservePoolAddr added in v1.8.0

func GetReservePoolAddr(uniDenom string) sdk.AccAddress

GetReservePoolAddr returns the pool address for the provided liquidity denomination.

func GetUniDenomFromDenom added in v1.8.0

func GetUniDenomFromDenom(denom string) string

GetUniDenomFromDenom returns the uni denom for the provided denomination.

Types

type CoinswapKeeper

type CoinswapKeeper interface {
	GetStandardDenom(ctx sdk.Context) string
	CreatePool(ctx sdk.Context, counterpartyDenom string) coinswaptypes.Pool
}

Jump to

Keyboard shortcuts

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