Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce minimum delegation for a validator #271

Closed
shaolin-flow opened this issue Jul 2, 2023 · 2 comments · Fixed by #289
Closed

Enforce minimum delegation for a validator #271

shaolin-flow opened this issue Jul 2, 2023 · 2 comments · Fixed by #289
Assignees
Labels
enhancement New feature or request

Comments

@shaolin-flow
Copy link
Contributor

shaolin-flow commented Jul 2, 2023

Overview

Required for better control on who's allowed into the validator set

Suggested solution

Global variable can be set for increased DefaultPowerReduction which is used in staking module:

// PowerReduction - is the amount of staking tokens required for 1 unit of consensus-engine power.
// Currently, this returns a global variable that the app developer can tweak.
// TODO: we might turn this into an on-chain param:
// https://github.com/cosmos/cosmos-sdk/issues/8365
func (k Keeper) PowerReduction(ctx sdk.Context) math.Int {
	return sdk.DefaultPowerReduction
}

After off-line discussion with @yishay-dym @OrJah we're looking to increasing this amount for the froopyland testnet.

To-do

Set DefaultPowerReduction to 1000000000000 with the BondDenom as udym. This should be 1000000 million DYM.

Ref issues

@shaolin-flow shaolin-flow added the enhancement New feature or request label Jul 2, 2023
@mtsitrin
Copy link
Contributor

mtsitrin commented Jul 2, 2023

It's set to 10^18

Not sure what u try to achieve here

@omritoptix omritoptix changed the title Increase the DefaultPowerReduction for Froopyland Enforce minimum delegation for a validator Jul 31, 2023
@mtsitrin mtsitrin linked a pull request Aug 14, 2023 that will close this issue
12 tasks
@mtsitrin
Copy link
Contributor

to change to 100K DYM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants