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 ¶
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) }
Click to show internal directories.
Click to hide internal directories.