Skip to content
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

Rewrite "sum of earning power" invariant for updated accounting/earning power system #16

Open
apbendi opened this issue Sep 24, 2024 · 0 comments
Labels
todo Issues that need to be tackled pre-audit

Comments

@apbendi
Copy link
Collaborator

apbendi commented Sep 24, 2024

This invariant related to earning power was removed during the conversion to per deposit accounting. Create an updated version of the invariant appropriate to the new per-deposit accounting and scaled earning power mechanic.

https://github.com/uniswapfoundation/UniStaker/blob/main/test/UniStaker.invariants.t.sol#L51-L53

@apbendi apbendi added the todo Issues that need to be tackled pre-audit label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo Issues that need to be tackled pre-audit
Projects
None yet
Development

No branches or pull requests

1 participant