Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) GetCommunityPoolRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetPoolMint(ctx sdk.Context, ratio sdk.Dec, mintedCoin sdk.Coin) sdk.Coin
- func (k Keeper) GetShieldRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) SendToCommunityPool(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) SendToShieldRewards(ctx sdk.Context, amount sdk.Coins) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct { mintkeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper, distributionKeeper types.DistributionKeeper, shieldKeeper types.ShieldKeeper, feeCollectorName string) Keeper
NewKeeper implements the wrapper newkeeper on top of the original newkeeper with distribution, supply and staking keeper.
func (Keeper) GetCommunityPoolRatio ¶
GetCommunityPoolRatio returns the current ratio of the community pool compared to the total supply.
func (Keeper) GetPoolMint ¶
GetPoolMint returns Coins that are about to be minted towards the community pool.
func (Keeper) GetShieldRatio ¶
GetShieldRatio returns the current ratio of shield staking pool compared to the total supply.
func (Keeper) SendToCommunityPool ¶
SendToCommunityPool sends coins to the community pool using FundCommunityPool.
Click to show internal directories.
Click to hide internal directories.