-
Notifications
You must be signed in to change notification settings - Fork 40
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
cpp mini example for demo #165
base: master
Are you sure you want to change the base?
Conversation
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.
nits and question about the foundry manual test
DEFI/CPP_mini/test/CPPMini.t.sol
Outdated
_actualB0 = token0.balanceOf(address(cpp)); | ||
_actualB1 = token0.balanceOf(address(cpp)); |
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.
both token0
?
where is the assertion?
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 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:
- show that the manual crafted one causes the violation to be violated
- show that the bug is critical
Co-authored-by: shellygr <[email protected]>
Co-authored-by: shellygr <[email protected]>
Co-authored-by: shellygr <[email protected]>
No description provided.