Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?
[Certora] Handle overflows #105
Changes from 9 commits
6621340
2ebbdff
6ab5bad
2279357
c394113
f55c098
273104e
a73bda1
f6f5b89
f121755
fdbcc97
389f418
376c4fd
65567c2
06b6407
3fb5d42
01aca82
0874bf3
619435e
4de56d8
4961928
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
what is this spec useful for now that we have ERC20Reverts and ERC20Invariants?
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 is the spec from OZ, with some liveness and safety properties that are specific to functions and that are not invariants. For example there is a rule on transfer specifically
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.
could we avoid this pattern? (and have a rule for checking reverts, and one rule for checking the non revert case's effects)
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.
I think we are still following OZ's specs (and actually getting closer to it in this PR)
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.
Yes, we did mention the idea of a more generic framework on ERC20 at some point but we didn't find a clever way to make this happen to decided to continue this route, if I'm not mistaken.