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 repay()
does alter the amount of underlying assets on the system, by adding more, yet it does not rebalance the liquidity. It moves assets as borrowers transfer back the debt in the underlying token asset, see here.
Repayments won't and should deposit funds in the CRV Vault if needed, missing on extra yield until someone else executes a non-repayment action.
Add _rebalanceLiquditiy()
at the end of LendingPool::_repay()
.
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.