VaultRouterBranch::redeem aims to check if the credit capacity delta exceeds locked credit capacity before the transition. However, it does the opposite, causing an unintended permanent revert condition. No user can redeem assets from the vault, making it impossible to withdraw funds.
Incorrect Conditional Check Causes Permanent Revert:
If creditCapacityBefore - creditCapacityAfter is less than or equal to lockedCreditCapacityBefore, it reverts.
This condition always holds (since withdrawing reduces credit capacity), leading to permanent failure, unless a user redeems a lot of tokens, in that case the vault will become insolvent and violate credit locked capacity
Since all redeems will revert, users cannot withdraw assets
Change the condition check to do opposite of what it is currently doing:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.