Skip to content

Check vaults cannot get into deadlock#179

Merged
carlosgj94 merged 4 commits into
mainfrom
fix/vaults-deadlock
Dec 3, 2025
Merged

Check vaults cannot get into deadlock#179
carlosgj94 merged 4 commits into
mainfrom
fix/vaults-deadlock

Conversation

@ashhanai
Copy link
Copy Markdown
Collaborator

@ashhanai ashhanai commented Dec 2, 2025

Check that sum of any two max proportionality limits is greater than or equal to 100% after adding, removing, and updating vault settings.

@ashhanai ashhanai requested a review from carlosgj94 December 2, 2025 17:19
Copy link
Copy Markdown
Contributor

@carlosgj94 carlosgj94 left a comment

Choose a reason for hiding this comment

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

Wouldn't this change still allow for a setting in which two vaults each at 50% hit a deadlock?
I very much like the direction of this PR, always bet on our own stupidity, and this makes it easier not to fuck it up.

Comment thread src/controller/VaultManager.sol Outdated
@ashhanai ashhanai requested a review from carlosgj94 December 2, 2025 19:43
@carlosgj94 carlosgj94 merged commit a5008ae into main Dec 3, 2025
2 checks passed
@ashhanai ashhanai deleted the fix/vaults-deadlock branch December 3, 2025 11:36
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