v1

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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

func GetCoinDenomFromUniDenom(uniDenom string) (string, error)

GetCoinDenomFromUniDenom returns the token denom by uni denom

func GetReservePoolAddr

func GetReservePoolAddr(uniDenom string) sdk.AccAddress

GetReservePoolAddr returns the pool address for the provided liquidity denomination.

func GetUniDenomFromDenom

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