keeper

package
v2.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 8 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, storeService storetypes.KVStoreService,
	sk types.StakingKeeper, ak types.AccountKeeper, bk types.BankKeeper, distributionKeeper types.DistributionKeeper,
	feeCollectorName string, authority 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 context.Context) (math.LegacyDec, error)

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

func (Keeper) GetPoolMint

func (k Keeper) GetPoolMint(ctx context.Context, ratio math.LegacyDec, mintedCoin sdk.Coin) (sdk.Coin, error)

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

func (Keeper) SendToCommunityPool

func (k Keeper) SendToCommunityPool(ctx context.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