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

Implement a configurable cap on the total amount staked #106

Open
5 tasks
apbendi opened this issue Jan 28, 2025 · 2 comments · May be fixed by #110
Open
5 tasks

Implement a configurable cap on the total amount staked #106

apbendi opened this issue Jan 28, 2025 · 2 comments · May be fixed by #110
Assignees
Labels
enhancement New feature or request

Comments

@apbendi
Copy link
Collaborator

apbendi commented Jan 28, 2025

Implement a Staker extension which:

  • Adds a parameter totalStakeCap
    • The parameter is set in the constructor
    • The parameter is configurable by governance
  • Customize stake and stakeMore such that if a call to these methods would result in a totalStaked amount that is greater than the totalStakedCap, the methods revert
  • Leaves all other staker operations unchanged
@apbendi apbendi added the enhancement New feature or request label Jan 28, 2025
@apbendi apbendi self-assigned this Jan 28, 2025
@rsolari
Copy link
Contributor

rsolari commented Jan 28, 2025

Yes, sounds good!

@rsolari
Copy link
Contributor

rsolari commented Jan 28, 2025

Also, can you emit an event whenever the cap changes?

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
2 participants