-
Notifications
You must be signed in to change notification settings - Fork 8
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] Handle overflows #105
base: main
Are you sure you want to change the base?
Conversation
I think it's even possible to actually require the invariants themselves. |
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.
Looks great, but it seems like there are more of the same to do in MintBurn
specification. For example:
toVotingPowerBefore + amount > max_uint256; |
Actually it isn't because the invriants require the munging setup which introduce new possible owerflows related to the zero virtual voting power.
Fixed in 6ab5bad. |
A couple more to fix :
|
@QGarchery, I haven't managed to get these ones do not go through because of the same reason as :
In particular, when votes are delegated to zero, |
Good point, but I think we can still frame it in terms of a "safe require". Here the invariant that we would want is that the balance of the sender is less that |
Just requiring the |
Replace absurd revert conditions with safe requirements that have been proven.
Fixes a very small typo in the
certora/README.md
.Closes #97.