Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Apr(goCtx context.Context, req *types.QueryAprRequest) (*types.QueryAprResponse, error)
- func (k Keeper) Aprs(goCtx context.Context, req *types.QueryAprsRequest) (*types.QueryAprsResponse, error)
- func (k Keeper) CalculateApr(ctx sdk.Context, query *types.QueryAprRequest) (sdk.Dec, error)
- func (k Keeper) CalculateTVL(ctx sdk.Context) sdk.Dec
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetDailyRewardsAmountForPool(ctx sdk.Context, poolId uint64) (sdk.Dec, sdk.Coins)
- func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PoolRewards(goCtx context.Context, req *types.QueryPoolRewardsRequest) (*types.QueryPoolRewardsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, parameterKeeper types.ParameterKeeper, ck types.CommitmentKeeper, sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper, amm types.AmmKeeper, ok types.OracleKeeper, ap types.AssetProfileKeeper, accountedPoolKeeper types.AccountedPoolKeeper, stableKeeper types.StableStakeKeeper, tokenomicsKeeper types.TokenomicsKeeper, masterchef *masterchefkeeper.Keeper, estaking *estakingkeeper.Keeper, feeCollectorName string, authority string, ) *Keeper
func (Keeper) Apr ¶ added in v0.27.0
func (k Keeper) Apr(goCtx context.Context, req *types.QueryAprRequest) (*types.QueryAprResponse, error)
func (Keeper) Aprs ¶ added in v0.29.31
func (k Keeper) Aprs(goCtx context.Context, req *types.QueryAprsRequest) (*types.QueryAprsResponse, error)
func (Keeper) CalculateApr ¶ added in v0.17.0
func (Keeper) CalculateTVL ¶
Caculate total TVL
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the module's exported genesis
func (Keeper) GetDailyRewardsAmountForPool ¶ added in v0.29.27
Get total dex rewards amount from the specified pool
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
InitGenesis initializes the module's state from a provided genesis state.
func (Keeper) PoolRewards ¶ added in v0.29.27
func (k Keeper) PoolRewards(goCtx context.Context, req *types.QueryPoolRewardsRequest) (*types.QueryPoolRewardsResponse, error)
Click to show internal directories.
Click to hide internal directories.