Deposit don't work with crv pools are we send the assets to the wrong address.
Inside _rebalanceLiquidity we calculate the desired balance that should be kept inside this contract and send the rest to crv.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/pools/LendingPool/LendingPool.sol#L772
However the issue we face is that during deposits when we call ReserveLibrary.deposit(reserve, rateData, amount, msg.sender); right before _rebalanceLiquidity:
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/pools/LendingPool/LendingPool.sol#L225
We actually send the tokens to reserve.reserveRTokenAddress which is the rToken and not the lending pool.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/libraries/pools/ReserveLibrary.sol#L330-L334
We are not able to deposit if we ave set a crv pool, since the contract will not have any balances and will try to send them to crv.
We send the assets to the wrong contracts.
Manual review.
Send the assets to the lending pool.
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.