staker_parameters.gno

Configures parameters related to staking such as inflation or reward rates, via governance.

Init

func Init()

Initializes the default inflation rate.

SubmitProposalParameterStakingReward

func SubmitProposalParameterStakingReward(
	title string,
	summary string,
	metadata string,
	initialDeposit uint64,

	// gno does not support array of structs for parameters of external functions
	// implement it once that is supported
	newStakingReward1 uint8,
	newStakingReward2 uint8,
	newStakingReward3 uint8,
	newStakingReward4 uint8,
) uint64

Submits a proposal.

Parameters

NameTypeDescription

title

string

The title of the proposal.

summary

string

An executive summary of the proposal.

metadata

string

The detailed content of the proposal.

initialDeposit

uint64

The amount of tokens to initially deposit.

newStakingReward1

uint8

The new reward rate for tier 1 pools.

newStakingReward2

uint8

The new reward rate for tier 2 pools.

newStakingReward3

uint8

The new reward rate for tier 3 pools.

newStakingReward4

uint8

The new reward rate for tier 4 pools.

Return Values

NameTypeDescription

proposalID

uint64

The ID of the proposal.

Last updated