-
Notifications
You must be signed in to change notification settings - Fork 153
Refactor rebase function parameters to separate positive and negative growth #297
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
Conversation
Refactor rebase function parameters to separate positive and negative growth
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
int256 public rebaseFunctionLowerPercentage; | ||
int256 public rebaseFunctionUpperPercentage; | ||
int256 public rebaseFunctionGrowth; | ||
int256 public rebaseFunctionNegativePercentageLimit; |
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.
Here we are basically renaming 3 storage variables and adding one more. Changes look upgrade safe. 👍
We can use the /// @custom:oz-renamed-from operator
natspec comment to keep track of pervious names. It helps the oz upgrade tooling keep track of the storage state ..
https://github.com/ampleforth/ampleforth-contracts/blob/master/.openzeppelin/mainnet.json#L155
https://forum.openzeppelin.com/t/rename-struct-property/38519/4
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.
Thanks!
No description provided.