Wrong logic in the rebalanceVaultsAssets
will cause the function to always revert.
In the rebalanceVaultsAssets we can see that the function will assume that a vault is in debt when its unsettledRealizedDebt
is negative. However this is actually wrong as a vault is in debt when the unsettled debt is positive. This will cause the following checks to always revert:
rebalanceVaultsAssets
can never be used
Manual Review
A vault is in debt when getUnsettledRealizedDebt
returns a positive value.
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.