Incorrect update of variables in CreditDelegationBranch::settleVaultsDebt
.
In CreditDelegationBranch::settleVaultsDebt
, the if()
get executed when the vault is in debt(less USDC than vault asset),
that is, vault unsettled realized debt in USD is less than zero. This converts part of the vault assets to USDC to cover for
vault debts. However, the amount USDC(ctx.usdcOut
) gotten after the conversion is substracted from the vault's unsettled
debt instead of addition.
Increment in vault's unsettled debt
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.