upgradev3

package
v6.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMinimumCommissionRateToValidators

func SetMinimumCommissionRateToValidators(ctx sdk.Context, keeper StakingKeeper, minCommissionRate sdk.Dec) error

SetMinimumCommissionRateToValidators is update the minimum commission rate to the validators rate whose commission rate is below the minimum commission rate.

func UpdateMinimumCommissionRateParam

func UpdateMinimumCommissionRateParam(ctx sdk.Context, keeper StakingKeeper) (sdk.Dec, error)

UpdateMinimumCommissionRateParam is update the minimum commission rate param of staking.

Types

type StakingKeeper

type StakingKeeper interface {
	GetParams(ctx sdk.Context) types.Params
	SetParams(ctx sdk.Context, params types.Params)
	GetAllValidators(ctx sdk.Context) (validators []types.Validator)
	BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) error
	SetValidator(ctx sdk.Context, validator types.Validator)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (types.Validator, bool)
}

Jump to

Keyboard shortcuts

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