Skip to content

Conversation

nd-certora
Copy link
Contributor

No description provided.

Copy link
Contributor

@shellygr shellygr left a comment

Choose a reason for hiding this comment

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

nits and question about the foundry manual test

Comment on lines 77 to 78
_actualB0 = token0.balanceOf(address(cpp));
_actualB1 = token0.balanceOf(address(cpp));
Copy link
Contributor

Choose a reason for hiding this comment

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

both token0?
where is the assertion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is actually not used, thanks.

the call to:
invariant_reserve(); has the assert but it is commented out to demonstrate the fact that the bug is critical. I think I will separate it to two tests:

  1. show that the manual crafted one causes the violation to be violated
  2. show that the bug is critical

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.

2 participants