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

Closed
apbendi opened this issue Sep 24, 2024 · 0 comments · Fixed by #119
Closed
Assignees
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

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

Successfully merging a pull request may close this issue.

2 participants