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

Share price decrease on forced removal #20

Closed
wants to merge 1 commit into from

Conversation

adhusson
Copy link
Contributor

When a market is force-removed, share price is decreased and lost assets stay constant.

May need certora update.

@adhusson adhusson changed the title feat: share price decrease on forced removal Share price decrease on forced removal Aug 16, 2024
Copy link
Contributor

@QGarchery QGarchery left a comment

Choose a reason for hiding this comment

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

This has the drawback of making it possible for allocators to bypass the increase of the lostAssets variable: they can call updateWithdrawQueue to "realize the bad debt on the vault" (without actually changing the withdraw queue). Essentially, there is the vault short issue where allocators can make the share price go down atomically, which might be giving too much power to allocators

@MathisGD MathisGD closed this Aug 16, 2024
@MathisGD MathisGD reopened this Aug 16, 2024
Base automatically changed from feat/no-share-price-decrease-2 to dev August 18, 2024 17:21
@adhusson
Copy link
Contributor Author

adhusson commented Sep 4, 2024

Closing due to message above + less simple accounting.

@adhusson adhusson closed this Sep 4, 2024
@QGarchery QGarchery mentioned this pull request Jan 6, 2025
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