-
Notifications
You must be signed in to change notification settings - Fork 60
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
stake-contract: use StakeConfig for minimum_stake and slash warning #3233
Conversation
herr-seppia
commented
Dec 19, 2024
•
edited
Loading
edited
- Change stake contract to use configurable values instead of const
- Deprecate MINIMUM_STAKE (use DEFAULT_MINIMUM_STAKE instead)
- Reorganize imports for stake-contract
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.
LGTM, but I added some small nits
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.
also do we maybe wanna move the pub const MINIMUM_STAKE
to the top, where the other const are defined?
I tried to change as less as possible Anyway, for now using the CONST is still safe since we are not planning to change it |
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.
Aside the conf
vs config
name, LGTM
d1471fa
to
d8089a5
Compare
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.
LGTM