keeper

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func (k Keeper) GetCommunityPoolRatio(ctx sdk.Context) sdk.Dec

GetCommunityPoolRatio returns the current ratio of the community pool compared to the total supply.

func (Keeper) GetPoolMint

func (k Keeper) GetPoolMint(ctx sdk.Context, ratio sdk.Dec, mintedCoin sdk.Coin) sdk.Coin

GetPoolMint returns Coins that are about to be minted towards the community pool.

func (Keeper) GetShieldRatio added in v2.4.0

func (k Keeper) GetShieldRatio(ctx sdk.Context) sdk.Dec

GetShieldRatio returns the current ratio of shield staking pool compared to the total supply.

func (Keeper) SendToCommunityPool

func (k Keeper) SendToCommunityPool(ctx sdk.Context, amount sdk.Coins) error

SendToCommunityPool sends coins to the community pool using FundCommunityPool.

func (Keeper) SendToShieldRewards

func (k Keeper) SendToShieldRewards(ctx sdk.Context, amount sdk.Coins) error

SendToShieldRewards sends coins to the shield rewards using FundShieldBlockRewards.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL