-
Notifications
You must be signed in to change notification settings - Fork 4
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
Certora rules and migration fixes #47
Conversation
90048dd
to
93d88e6
Compare
modifier noMigration() { | ||
if (address(migration) != address(0)) { | ||
revert StakeManager__PendingMigration(); | ||
} | ||
_; | ||
} | ||
|
||
modifier onlyMigration() { | ||
if (address(migration) == address(0)) { | ||
revert StakeManager__NoPendingMigration(); | ||
} | ||
_; | ||
} | ||
|
||
modifier onlyOldManager() { | ||
if (msg.sender != address(oldManager)) { | ||
revert StakeManager__SenderIsNotPreviousStakeManager(); | ||
} | ||
_; | ||
} | ||
|
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.
Implement migration properly
*/ | ||
|
||
function increaseMPFromMigration(uint256 _increasedMP) external onlyOldManager { | ||
multiplierSupply += _increasedMP; |
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.
Implement migration properly
b018574
to
c547be7
Compare
c547be7
to
59101cd
Compare
Friendly ping that this needs to be reviewed (I've cleaned up the commits). Can update the PR once clarified |
59101cd
to
f433dcd
Compare
Closing this as this has already landed via #59 |
Description
Checklist
Ensure you completed all of the steps below before submitting your pull request:
forge snapshot
?pnpm lint
?forge test
?pnpm verify
?