Skip to content

Conversation

@bhargavbh
Copy link
Collaborator

Includes minimal example where Certora assigns bytes32 to a bytes4 variable.

Comment on lines +214 to +216
require shares + balanceOf(to) <= MAX_UINT256(); // To avoid overflow in the balanceOf check.
require shares <= balanceOf(from); // To avoid underflow in the balanceOf check.
require e.msg.sender != from => (shares <= allowance(from, e.msg.sender)); // To avoid underflow in the allowance check.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be in the assert? to have a consistent style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants