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.Coins
- func (k Keeper) GetShieldStakeForShieldPoolRatio(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 ¶
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace, sk types.StakingKeeper, supplyKeeper types.SupplyKeeper, 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) GetShieldStakeForShieldPoolRatio ¶
GetShieldStakeForShieldPoolRatio returns the current ratio of the community 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.