All protocol functions that deposit or withdraw underlying asset call _rebalanceLiqudiity()
. This is so the protocol can deposit on the CRV Vault the desired % of liquidity to gain extra yield.
However the finalizeLiquidation()
does alter the amount of underlying assets on the system, by adding more due to repayment of bad debt, yet it does not rebalance the liquidity. It moves assets in the underlying token asset here.
Liquidations won't and should deposit funds in the CRV Vault if needed, missing on extra yield until someone else executes a rebalancing action.
Add _rebalanceLiquditiy()
at the end of LendingPool::finalizeLiquidation()
.
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.