keeper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 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,
	feeCollectorName string) Keeper

NewKeeper implements the wrapper newkeeper on top of the original newkeeper with distribution, supply and staking keeper.

func (Keeper) GetCommunityPoolMint

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

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

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) SendToCommunityPool

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

SendToCommunityPool sends coins to the community pool using FundCommunityPool.

Jump to

Keyboard shortcuts

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