Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + func CalculateTokenToBuy(swapTokenPair types.SwapTokenPair, sellToken sdk.SysCoin, buyTokenDenom string, ...) sdk.SysCoin + func GetInputPrice(inputAmount, inputReserve, outputReserve, feeRate sdk.Dec) sdk.Dec + func NewQuerier(k Keeper) sdk.Querier + type Keeper struct + ObserverKeeper []types.BackendKeeper + func NewKeeper(supplyKeeper types.SupplyKeeper, tokenKeeper types.TokenKeeper, ...) Keeper + func (k *Keeper) SetObserverKeeper(bk types.BackendKeeper) + func (k Keeper) BurnPoolCoinsFromUser(ctx sdk.Context, coins sdk.SysCoins, addr sdk.AccAddress) error + func (k Keeper) DeleteSwapTokenPair(ctx sdk.Context, tokenPairName string) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetPoolTokenAmount(ctx sdk.Context, poolTokenName string) sdk.Dec + func (k Keeper) GetPoolTokenInfo(ctx sdk.Context, symbol string) (tokentypes.Token, error) + func (k Keeper) GetRedeemableAssets(ctx sdk.Context, baseAmountName, quoteAmountName string, liquidity sdk.Dec) (baseAmount, quoteAmount sdk.SysCoin, err error) + func (k Keeper) GetSwapTokenPair(ctx sdk.Context, tokenPairName string) (types.SwapTokenPair, error) + func (k Keeper) GetSwapTokenPairs(ctx sdk.Context) []types.SwapTokenPair + func (k Keeper) GetSwapTokenPairsIterator(ctx sdk.Context) sdk.Iterator + func (k Keeper) GetTokenKeeper() types.TokenKeeper + func (k Keeper) IsTokenExist(ctx sdk.Context, token string) error + func (k Keeper) Logger(ctx sdk.Context) log.Logger + func (k Keeper) MintPoolCoinsToUser(ctx sdk.Context, coins sdk.SysCoins, addr sdk.AccAddress) error + func (k Keeper) NewPoolToken(ctx sdk.Context, symbol string) + func (k Keeper) OnCreateExchange(ctx sdk.Context, swapTokenPair types.SwapTokenPair) + func (k Keeper) OnSwapToken(ctx sdk.Context, address sdk.AccAddress, swapTokenPair types.SwapTokenPair, ...) + func (k Keeper) SendCoinsFromPoolToAccount(ctx sdk.Context, coins sdk.SysCoins, addr sdk.AccAddress) error + func (k Keeper) SendCoinsToPool(ctx sdk.Context, coins sdk.SysCoins, addr sdk.AccAddress) error + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetSwapTokenPair(ctx sdk.Context, tokenPairName string, swapTokenPair types.SwapTokenPair)