Documentation ¶
Index ¶
- Variables
- func DenomsFromPoolName(pool string) (denoms []string)
- func PoolNameFromDenoms(denoms []string) string
- func RawPoolNameFromDenoms(denoms []string) string
- type AssetPair
- func (pair AssetPair) GetBaseTokenDenom() string
- func (pair AssetPair) GetQuoteTokenDenom() string
- func (pair AssetPair) Inverse() AssetPair
- func (pair AssetPair) IsProperOrder() bool
- func (pair AssetPair) Name() string
- func (pair AssetPair) PairID() string
- func (pair AssetPair) Proper() AssetPair
- func (pair AssetPair) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GovDenom = "unibi" CollDenom = "uust" StableDenom = "unusd" StakeTokenDenom = "stake" TestTokenDenom = "test" TreasuryPoolModuleAccount = "treasury_pool" PairSeparator = ":" WhitelistedColl = []string{CollDenom} GovStablePool = AssetPair{Token0: GovDenom, Token1: StableDenom} CollStablePool = AssetPair{Token0: CollDenom, Token1: StableDenom} TestStablePool = AssetPair{Token0: TestTokenDenom, Token1: StableDenom} ErrInvalidTokenPair = fmt.Errorf("invalid token pair") )
View Source
var ( PAIR_uBTC_uNUSD = AssetPair{Token0: "uBTC", Token1: "uNUSD"} PAIR_uETH_uNUSD = AssetPair{Token0: "uETH", Token1: "uNUSD"} )
Functions ¶
func DenomsFromPoolName ¶
func PoolNameFromDenoms ¶
PoolNameFromDenoms returns a sorted string representing a pool of assets
func RawPoolNameFromDenoms ¶
RawPoolNameFromDenoms returns a string representing a pool of assets in the exact order the denoms were given as args
Types ¶
type AssetPair ¶
func NewAssetPairFromStr ¶ added in v0.4.17
func (AssetPair) GetBaseTokenDenom ¶ added in v0.4.17
func (AssetPair) GetQuoteTokenDenom ¶ added in v0.4.17
func (AssetPair) IsProperOrder ¶
Click to show internal directories.
Click to hide internal directories.