The protocol does not rebalance liquidity after repay and liquidate.
LendingPool.sol#_rebalanceLiquidity() function is as follows.
As we can see above, upper function rebalances liquidty with curve vault.
LendingPool.sol#deposit, withdraw, borrow functions rebalance liquidity.
But LendingPool.sol#_repay(), finalizeLiquidation() functions does not rebalance liquidity.
This is wrong.
This vulnerability will cause less yield.
Manual review
We have to modify LendingPool.sol#_repay(), finalizeLiquidation() so that they rebalance liquidity at the end.
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.