-
Notifications
You must be signed in to change notification settings - Fork 0
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
124 add functions in the contracts that allow minstake and mindelegation to be changeable by the governor #11
Conversation
SamBorisov
commented
Apr 30, 2024
- Add an external function in RewardPool changeMinDelegation, that is callable only by the default_admin_role (governance)
- A private function that handles the logic for changing minDelegation and is used on initializing
- Add new custom error - InvalidMinDelegation
- Add an external function in RewardPool changeMinStake, that is callable only by the owner (governance)
- A private function that handles the logic for changing minStake and is used on initializing
- Apply needed updates on Interfaces
- Add tests to see if functions work
- Fix RewardPool initializing with system address, not governance on tests. Apply needed changes so it all works well.
@@ -8,5 +8,5 @@ error InvalidSignature(address signer); | |||
error ZeroAddress(); | |||
error SendFailed(); | |||
error InvalidCommission(uint256 commission); | |||
error InvalidMinStake(uint256 minStake); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is used for common errors that are resued in more than one module. Declare module specific errors in the module itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved errors for minStake/minDelegetion and commission
4af14fb
to
068e07b
Compare