keeper

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 5 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 {
	mint.Keeper
	// contains filtered or unexported fields
}

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

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.Coins

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

func (Keeper) GetShieldStakeForShieldPoolRatio

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

GetShieldStakeForShieldPoolRatio returns the current ratio of the community 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