Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type AmmHooks
- func (h AmmHooks) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool, ...) error
- func (h AmmHooks) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool, ...) error
- func (h AmmHooks) AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool) error
- func (h AmmHooks) AfterSwap(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool, input sdk.Coins, ...) error
- type Keeper
- func (k Keeper) AddEdenInfo(ctx sdk.Context, eden sdk.Dec)
- func (k Keeper) AddFeeInfo(ctx sdk.Context, lp, stakers, protocol sdk.Dec, gas bool)
- func (k Keeper) AddPoolRewardsAccum(ctx sdk.Context, poolId, timestamp uint64, height int64, ...)
- func (k Keeper) AfterDeposit(ctx sdk.Context, poolId uint64, user sdk.AccAddress, amount math.Int)
- func (k Keeper) AfterDepositPerReward(ctx sdk.Context, poolId uint64, rewardDenom string, user sdk.AccAddress, ...)
- func (k Keeper) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount math.Int, ...) error
- func (k Keeper) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, enterCoins sdk.Coins, ...) error
- func (k Keeper) AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64) error
- func (k Keeper) AfterSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, ...) error
- func (k Keeper) AfterWithdraw(ctx sdk.Context, poolId uint64, user sdk.AccAddress, amount math.Int)
- func (k Keeper) AfterWithdrawPerReward(ctx sdk.Context, poolId uint64, rewardDenom string, user sdk.AccAddress, ...)
- func (k Keeper) AmmHooks() AmmHooks
- 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) CalculatePoolAprs(ctx sdk.Context, ids []uint64) []types.PoolApr
- func (k Keeper) CalculateProxyTVL(ctx sdk.Context, baseCurrency string) (sdk.Dec, sdk.Dec)
- func (k Keeper) CalculateStableStakeApr(ctx sdk.Context, query *types.QueryStableStakeAprRequest) (sdk.Dec, error)
- func (k Keeper) CheckBlockedAddress(params types.Params) bool
- func (k Keeper) ClaimRewards(ctx sdk.Context, sender sdk.AccAddress, poolIds []uint64, ...) error
- func (k Keeper) CollectDEXRevenue(ctx sdk.Context) (sdk.Coins, sdk.DecCoins, map[uint64]sdk.Dec)
- func (k Keeper) CollectGasFees(ctx sdk.Context, baseCurrency string) sdk.DecCoins
- func (k Keeper) CollectPerpRevenue(ctx sdk.Context, baseCurrency string) sdk.DecCoins
- func (k Keeper) ConvertGasFeesToUsdc(ctx sdk.Context, baseCurrency string, address sdk.AccAddress) sdk.Coins
- func (k Keeper) DeleteFeeInfo(ctx sdk.Context)
- func (k Keeper) DeleteLegacyExternalIncentive(ctx sdk.Context, id uint64)
- func (k Keeper) DeleteLegacyPoolRewardInfo(ctx sdk.Context, poolId uint64, rewardDenom string)
- func (k Keeper) DeleteLegacyPoolRewardsAccum(ctx sdk.Context, accum types.PoolRewardsAccum)
- func (k Keeper) DeletePoolRewardsAccum(ctx sdk.Context, accum types.PoolRewardsAccum)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExternalIncentive(goCtx context.Context, req *types.QueryExternalIncentiveRequest) (*types.QueryExternalIncentiveResponse, error)
- func (k Keeper) FirstPoolRewardsAccum(ctx sdk.Context, poolId uint64) types.PoolRewardsAccum
- func (k Keeper) ForwardEdenCalc(ctx sdk.Context, poolId uint64) sdk.Dec
- func (k Keeper) GetAllExternalIncentives(ctx sdk.Context) (list []types.ExternalIncentive)
- func (k Keeper) GetAllFeeInfos(ctx sdk.Context) (list []types.FeeInfo)
- func (k Keeper) GetAllLegacyExternalIncentives(ctx sdk.Context) (list []types.ExternalIncentive)
- func (k Keeper) GetAllLegacyPoolInfos(ctx sdk.Context) (list []types.LegacyPoolInfo)
- func (k Keeper) GetAllLegacyPoolRewardInfos(ctx sdk.Context) (list []types.PoolRewardInfo)
- func (k Keeper) GetAllLegacyPoolRewardsAccum(ctx sdk.Context) (list []types.PoolRewardsAccum)
- func (k Keeper) GetAllPoolInfos(ctx sdk.Context) (list []types.PoolInfo)
- func (k Keeper) GetAllPoolRewardInfos(ctx sdk.Context) (list []types.PoolRewardInfo)
- func (k Keeper) GetAllPoolRewardsAccum(ctx sdk.Context) (list []types.PoolRewardsAccum)
- func (k Keeper) GetAllUserRewardInfos(ctx sdk.Context) (list []types.UserRewardInfo)
- func (k Keeper) GetBaseCurrencyDenom(ctx sdk.Context) string
- func (k Keeper) GetDailyRewardsAmountForPool(ctx sdk.Context, poolId uint64) (sdk.Dec, sdk.Coins)
- func (k Keeper) GetExternalIncentive(ctx sdk.Context, id uint64) (val types.ExternalIncentive, found bool)
- func (k Keeper) GetExternalIncentiveIndex(ctx sdk.Context) (index uint64)
- func (k Keeper) GetFeeInfo(ctx sdk.Context, timestamp string) (val types.FeeInfo)
- func (k Keeper) GetLegacyExternalIncentiveIndex(ctx sdk.Context) (index uint64)
- func (k Keeper) GetLegacyParams(ctx sdk.Context) (params types.LegacyParams)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPoolBalance(ctx sdk.Context, poolId uint64, user sdk.AccAddress) math.Int
- func (k Keeper) GetPoolInfo(ctx sdk.Context, poolId uint64) (val types.PoolInfo, found bool)
- func (k Keeper) GetPoolRewardInfo(ctx sdk.Context, poolId uint64, rewardDenom string) (val types.PoolRewardInfo, found bool)
- func (k Keeper) GetPoolRewardsAccum(ctx sdk.Context, poolId, timestamp uint64) (types.PoolRewardsAccum, error)
- func (k Keeper) GetPoolTVL(ctx sdk.Context, poolId uint64) math.LegacyDec
- func (k Keeper) GetPoolTotalCommit(ctx sdk.Context, poolId uint64) math.Int
- func (k Keeper) GetRewardDenoms(ctx sdk.Context, poolId uint64) []string
- func (k Keeper) GetUserRewardInfo(ctx sdk.Context, user sdk.AccAddress, poolId uint64, rewardDenom string) (val types.UserRewardInfo, found bool)
- func (k Keeper) InitPoolParams(ctx sdk.Context, poolId uint64) bool
- func (k Keeper) InitStableStakePoolParams(ctx sdk.Context, poolId uint64) bool
- func (k Keeper) IterateAllPoolRewardsAccum(ctx sdk.Context, handler func(accum types.PoolRewardsAccum) (stop bool))
- func (k Keeper) IteratePoolRewardsAccum(ctx sdk.Context, poolId uint64, ...)
- func (k Keeper) LastPoolRewardsAccum(ctx sdk.Context, poolId uint64) types.PoolRewardsAccum
- func (k Keeper) ListFeeInfo(goCtx context.Context, req *types.QueryListFeeInfoRequest) (*types.QueryListFeeInfoResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PoolAprs(goCtx context.Context, req *types.QueryPoolAprsRequest) (*types.QueryPoolAprsResponse, error)
- func (k Keeper) PoolInfo(goCtx context.Context, req *types.QueryPoolInfoRequest) (*types.QueryPoolInfoResponse, error)
- func (k Keeper) PoolRewardInfo(goCtx context.Context, req *types.QueryPoolRewardInfoRequest) (*types.QueryPoolRewardInfoResponse, error)
- func (k Keeper) PoolRewards(goCtx context.Context, req *types.QueryPoolRewardsRequest) (*types.QueryPoolRewardsResponse, error)
- func (k Keeper) ProcessExternalRewardsDistribution(ctx sdk.Context)
- func (k Keeper) ProcessLPRewardDistribution(ctx sdk.Context)
- func (k Keeper) ProcessUpdateIncentiveParams(ctx sdk.Context)
- func (k Keeper) RemoveExternalIncentive(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveFeeInfo(ctx sdk.Context, timestamp string)
- func (k Keeper) RemoveLegacyExternalIncentiveIndex(ctx sdk.Context)
- func (k Keeper) RemoveLegacyPoolInfo(ctx sdk.Context, poolId uint64)
- func (k Keeper) RemovePoolInfo(ctx sdk.Context, poolId uint64)
- func (k Keeper) RemovePoolRewardInfo(ctx sdk.Context, poolId uint64, rewardDenom string)
- func (k Keeper) RemoveUserRewardInfo(ctx sdk.Context, user sdk.AccAddress, poolId uint64, rewardDenom string)
- func (k Keeper) SetExternalIncentive(ctx sdk.Context, externalIncentive types.ExternalIncentive)
- func (k Keeper) SetExternalIncentiveIndex(ctx sdk.Context, index uint64)
- func (k Keeper) SetFeeInfo(ctx sdk.Context, info types.FeeInfo, timestamp string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPoolInfo(ctx sdk.Context, pool types.PoolInfo)
- func (k Keeper) SetPoolRewardInfo(ctx sdk.Context, poolReward types.PoolRewardInfo)
- func (k Keeper) SetPoolRewardsAccum(ctx sdk.Context, accum types.PoolRewardsAccum)
- func (k Keeper) SetUserRewardInfo(ctx sdk.Context, userReward types.UserRewardInfo)
- func (k Keeper) ShowFeeInfo(goCtx context.Context, req *types.QueryShowFeeInfoRequest) (*types.QueryShowFeeInfoResponse, error)
- func (k Keeper) StableStakeApr(goCtx context.Context, req *types.QueryStableStakeAprRequest) (*types.QueryStableStakeAprResponse, error)
- func (k Keeper) StableStakeHooks() StableStakeHooks
- func (k Keeper) UpdateAccPerShare(ctx sdk.Context, poolId uint64, rewardDenom string, amount math.Int)
- func (k Keeper) UpdateAmmPoolAPR(ctx sdk.Context, totalBlocksPerYear int64, totalProxyTVL sdk.Dec, ...)
- func (k Keeper) UpdateLPRewards(ctx sdk.Context) error
- func (k Keeper) UpdatePoolMultipliers(ctx sdk.Context, poolMultipliers []types.PoolMultiplier) bool
- func (k Keeper) UpdateUserRewardDebt(ctx sdk.Context, poolId uint64, rewardDenom string, user sdk.AccAddress)
- func (k Keeper) UpdateUserRewardPending(ctx sdk.Context, poolId uint64, rewardDenom string, user sdk.AccAddress, ...)
- func (k Keeper) UserPendingReward(goCtx context.Context, req *types.QueryUserPendingRewardRequest) (*types.QueryUserPendingRewardResponse, error)
- func (k Keeper) UserPoolPendingReward(ctx sdk.Context, user sdk.AccAddress, poolId uint64) sdk.Coins
- func (k Keeper) UserRewardInfo(goCtx context.Context, req *types.QueryUserRewardInfoRequest) (*types.QueryUserRewardInfoResponse, error)
- type StableStakeHooks
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 AmmHooks ¶
type AmmHooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for incentive keeper
func (AmmHooks) AfterExitPool ¶
func (h AmmHooks) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool, shareInAmount math.Int, exitCoins sdk.Coins) error
AfterExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut
func (AmmHooks) AfterJoinPool ¶
func (h AmmHooks) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool, enterCoins sdk.Coins, shareOutAmount math.Int) error
AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
func (AmmHooks) AfterPoolCreated ¶
func (h AmmHooks) AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, pool ammtypes.Pool) error
AfterPoolCreated is called after CreatePool
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, parameterKeeper types.ParameterKeeper, ck types.CommitmentKeeper, amm types.AmmKeeper, ok types.OracleKeeper, ap types.AssetProfileKeeper, accountedPoolKeeper types.AccountedPoolKeeper, stableKeeper types.StableStakeKeeper, tokenomicsKeeper types.TokenomicsKeeper, ak types.AccountKeeper, bk types.BankKeeper, perpetualKeeper types.PeperpetualKeeper, estakingKeeper *estakingkeeper.Keeper, authority string, ) *Keeper
func (Keeper) AddEdenInfo ¶ added in v0.44.0
func (Keeper) AddFeeInfo ¶ added in v0.44.0
func (Keeper) AddPoolRewardsAccum ¶ added in v0.33.0
func (Keeper) AfterDeposit ¶
func (Keeper) AfterDepositPerReward ¶
func (Keeper) AfterExitPool ¶
func (k Keeper) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount math.Int, exitCoins sdk.Coins) error
AfterExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut
func (Keeper) AfterJoinPool ¶
func (k Keeper) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, enterCoins sdk.Coins, shareOutAmount math.Int) error
AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
func (Keeper) AfterPoolCreated ¶
AfterPoolCreated is called after CreatePool
func (Keeper) AfterSwap ¶
func (k Keeper) AfterSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, output sdk.Coins) error
AfterSwap is called after SwapExactAmountIn and SwapExactAmountOut
func (Keeper) AfterWithdraw ¶
func (Keeper) AfterWithdrawPerReward ¶
func (Keeper) Apr ¶ added in v0.49.0
func (k Keeper) Apr(goCtx context.Context, req *types.QueryAprRequest) (*types.QueryAprResponse, error)
func (Keeper) Aprs ¶ added in v0.49.0
func (k Keeper) Aprs(goCtx context.Context, req *types.QueryAprsRequest) (*types.QueryAprsResponse, error)
func (Keeper) CalculateApr ¶ added in v0.49.0
func (Keeper) CalculatePoolAprs ¶
func (Keeper) CalculateProxyTVL ¶
Calculate Proxy TVL
func (Keeper) CalculateStableStakeApr ¶
func (Keeper) CheckBlockedAddress ¶ added in v0.45.0
func (Keeper) ClaimRewards ¶ added in v0.33.0
func (k Keeper) ClaimRewards(ctx sdk.Context, sender sdk.AccAddress, poolIds []uint64, recipient sdk.AccAddress) error
func (Keeper) CollectDEXRevenue ¶
Collect all DEX revenues to DEX revenue wallet, while tracking the 60% of it for LPs reward distribution transfer collected fees from different wallets(liquidity pool, perpetual module etc) to the distribution module account Assume this is already in USDC.
func (Keeper) CollectGasFees ¶
func (Keeper) CollectPerpRevenue ¶ added in v0.47.0
Collect all Perpetual module revenues to Perpetual revenue wallet, transfer collected fees from perpetual moduleto the distribution module account Coins are not in usdc, so convert them to usdc
func (Keeper) ConvertGasFeesToUsdc ¶
func (k Keeper) ConvertGasFeesToUsdc(ctx sdk.Context, baseCurrency string, address sdk.AccAddress) sdk.Coins
Move gas fees collected to dex revenue wallet Convert it into USDC
func (Keeper) DeleteFeeInfo ¶ added in v0.44.0
Deletes fee info that is older than 8 days
func (Keeper) DeleteLegacyExternalIncentive ¶ added in v0.42.0
func (Keeper) DeleteLegacyPoolRewardInfo ¶ added in v0.42.0
func (Keeper) DeleteLegacyPoolRewardsAccum ¶ added in v0.42.0
func (k Keeper) DeleteLegacyPoolRewardsAccum(ctx sdk.Context, accum types.PoolRewardsAccum)
func (Keeper) DeletePoolRewardsAccum ¶ added in v0.33.0
func (k Keeper) DeletePoolRewardsAccum(ctx sdk.Context, accum types.PoolRewardsAccum)
func (Keeper) ExternalIncentive ¶
func (k Keeper) ExternalIncentive(goCtx context.Context, req *types.QueryExternalIncentiveRequest) (*types.QueryExternalIncentiveResponse, error)
func (Keeper) FirstPoolRewardsAccum ¶ added in v0.33.0
func (Keeper) ForwardEdenCalc ¶ added in v0.44.0
Returns eden rewards using forward calc for 24 hours
func (Keeper) GetAllExternalIncentives ¶
func (k Keeper) GetAllExternalIncentives(ctx sdk.Context) (list []types.ExternalIncentive)
func (Keeper) GetAllFeeInfos ¶ added in v0.44.0
func (Keeper) GetAllLegacyExternalIncentives ¶ added in v0.42.0
func (k Keeper) GetAllLegacyExternalIncentives(ctx sdk.Context) (list []types.ExternalIncentive)
func (Keeper) GetAllLegacyPoolInfos ¶ added in v0.42.0
func (k Keeper) GetAllLegacyPoolInfos(ctx sdk.Context) (list []types.LegacyPoolInfo)
func (Keeper) GetAllLegacyPoolRewardInfos ¶ added in v0.42.0
func (k Keeper) GetAllLegacyPoolRewardInfos(ctx sdk.Context) (list []types.PoolRewardInfo)
func (Keeper) GetAllLegacyPoolRewardsAccum ¶ added in v0.42.0
func (k Keeper) GetAllLegacyPoolRewardsAccum(ctx sdk.Context) (list []types.PoolRewardsAccum)
func (Keeper) GetAllPoolInfos ¶ added in v0.42.0
func (Keeper) GetAllPoolRewardInfos ¶
func (k Keeper) GetAllPoolRewardInfos(ctx sdk.Context) (list []types.PoolRewardInfo)
func (Keeper) GetAllPoolRewardsAccum ¶ added in v0.33.0
func (k Keeper) GetAllPoolRewardsAccum(ctx sdk.Context) (list []types.PoolRewardsAccum)
func (Keeper) GetAllUserRewardInfos ¶
func (k Keeper) GetAllUserRewardInfos(ctx sdk.Context) (list []types.UserRewardInfo)
func (Keeper) GetDailyRewardsAmountForPool ¶ added in v0.49.0
Get total dex rewards amount from the specified pool
func (Keeper) GetExternalIncentive ¶
func (Keeper) GetExternalIncentiveIndex ¶
func (Keeper) GetFeeInfo ¶ added in v0.44.0
func (Keeper) GetLegacyExternalIncentiveIndex ¶ added in v0.42.0
remove after migration
func (Keeper) GetLegacyParams ¶ added in v0.33.0
func (k Keeper) GetLegacyParams(ctx sdk.Context) (params types.LegacyParams)
func (Keeper) GetPoolBalance ¶
func (Keeper) GetPoolInfo ¶ added in v0.42.0
func (Keeper) GetPoolRewardInfo ¶
func (Keeper) GetPoolRewardsAccum ¶ added in v0.33.0
func (Keeper) GetPoolTVL ¶
func (Keeper) GetPoolTotalCommit ¶
func (Keeper) GetRewardDenoms ¶
func (Keeper) GetUserRewardInfo ¶
func (k Keeper) GetUserRewardInfo(ctx sdk.Context, user sdk.AccAddress, poolId uint64, rewardDenom string) (val types.UserRewardInfo, found bool)
func (Keeper) InitPoolParams ¶
InitPoolParams: creates a poolInfo at the time of pool creation.
func (Keeper) InitStableStakePoolParams ¶
InitStableStakePoolMultiplier: create a stable stake pool information responding to the pool creation.
func (Keeper) IterateAllPoolRewardsAccum ¶ added in v0.33.0
func (Keeper) IteratePoolRewardsAccum ¶ added in v0.33.0
func (Keeper) LastPoolRewardsAccum ¶ added in v0.33.0
func (Keeper) ListFeeInfo ¶ added in v0.44.0
func (k Keeper) ListFeeInfo(goCtx context.Context, req *types.QueryListFeeInfoRequest) (*types.QueryListFeeInfoResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PoolAprs ¶
func (k Keeper) PoolAprs(goCtx context.Context, req *types.QueryPoolAprsRequest) (*types.QueryPoolAprsResponse, error)
func (Keeper) PoolInfo ¶
func (k Keeper) PoolInfo(goCtx context.Context, req *types.QueryPoolInfoRequest) (*types.QueryPoolInfoResponse, error)
func (Keeper) PoolRewardInfo ¶
func (k Keeper) PoolRewardInfo(goCtx context.Context, req *types.QueryPoolRewardInfoRequest) (*types.QueryPoolRewardInfoResponse, error)
func (Keeper) PoolRewards ¶ added in v0.49.0
func (k Keeper) PoolRewards(goCtx context.Context, req *types.QueryPoolRewardsRequest) (*types.QueryPoolRewardsResponse, error)
func (Keeper) ProcessExternalRewardsDistribution ¶
func (Keeper) ProcessLPRewardDistribution ¶
func (Keeper) ProcessUpdateIncentiveParams ¶
func (Keeper) RemoveExternalIncentive ¶
func (Keeper) RemoveFeeInfo ¶ added in v0.44.0
func (Keeper) RemoveLegacyExternalIncentiveIndex ¶ added in v0.42.0
remove after migration
func (Keeper) RemoveLegacyPoolInfo ¶ added in v0.42.0
func (Keeper) RemovePoolInfo ¶ added in v0.42.0
func (Keeper) RemovePoolRewardInfo ¶
func (Keeper) RemoveUserRewardInfo ¶
func (Keeper) SetExternalIncentive ¶
func (k Keeper) SetExternalIncentive(ctx sdk.Context, externalIncentive types.ExternalIncentive)
func (Keeper) SetExternalIncentiveIndex ¶
func (Keeper) SetFeeInfo ¶ added in v0.44.0
func (Keeper) SetPoolInfo ¶ added in v0.42.0
func (Keeper) SetPoolRewardInfo ¶
func (k Keeper) SetPoolRewardInfo(ctx sdk.Context, poolReward types.PoolRewardInfo)
func (Keeper) SetPoolRewardsAccum ¶ added in v0.33.0
func (k Keeper) SetPoolRewardsAccum(ctx sdk.Context, accum types.PoolRewardsAccum)
func (Keeper) SetUserRewardInfo ¶
func (k Keeper) SetUserRewardInfo(ctx sdk.Context, userReward types.UserRewardInfo)
func (Keeper) ShowFeeInfo ¶ added in v0.44.0
func (k Keeper) ShowFeeInfo(goCtx context.Context, req *types.QueryShowFeeInfoRequest) (*types.QueryShowFeeInfoResponse, error)
func (Keeper) StableStakeApr ¶
func (k Keeper) StableStakeApr(goCtx context.Context, req *types.QueryStableStakeAprRequest) (*types.QueryStableStakeAprResponse, error)
func (Keeper) StableStakeHooks ¶
func (k Keeper) StableStakeHooks() StableStakeHooks
Return the wrapper struct
func (Keeper) UpdateAccPerShare ¶
func (Keeper) UpdateAmmPoolAPR ¶
func (k Keeper) UpdateAmmPoolAPR(ctx sdk.Context, totalBlocksPerYear int64, totalProxyTVL sdk.Dec, edenDenomPrice sdk.Dec)
Update APR for AMM pool
func (Keeper) UpdatePoolMultipliers ¶
func (Keeper) UpdateUserRewardDebt ¶
func (Keeper) UpdateUserRewardPending ¶
func (Keeper) UserPendingReward ¶
func (k Keeper) UserPendingReward(goCtx context.Context, req *types.QueryUserPendingRewardRequest) (*types.QueryUserPendingRewardResponse, error)
func (Keeper) UserPoolPendingReward ¶ added in v0.33.0
func (Keeper) UserRewardInfo ¶
func (k Keeper) UserRewardInfo(goCtx context.Context, req *types.QueryUserRewardInfoRequest) (*types.QueryUserRewardInfoResponse, error)
type StableStakeHooks ¶
type StableStakeHooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for incentive keeper
func (StableStakeHooks) AfterBond ¶
func (h StableStakeHooks) AfterBond(ctx sdk.Context, sender sdk.AccAddress, shareAmount math.Int) error
func (StableStakeHooks) AfterUnbond ¶
func (h StableStakeHooks) AfterUnbond(ctx sdk.Context, sender sdk.AccAddress, shareAmount math.Int) error
Source Files ¶
- abci.go
- apr_denom.go
- apr_pool.go
- apr_stable_stake.go
- external_incentive.go
- fee_info.go
- hooks_amm.go
- hooks_masterchef.go
- hooks_stablestake.go
- hooks_user_actions.go
- keeper.go
- msg_server.go
- msg_server_toggle_pool_eden_rewards.go
- params.go
- pool.go
- pool_reward_info.go
- pool_rewards_accum.go
- query.go
- query_apr.go
- query_aprs.go
- query_list_fee_info.go
- query_params.go
- query_pool_rewards.go
- query_show_fee_info.go
- user_reward_info.go