_depositIntoVault()is part of _rebalanceLiquidity()function which Rebalances liquidity between the buffer and Curve vault to maintain a desired buffer ratio.
_rebalanceLiquidity() does following things
Point to note here currentBuffer is calculated based on Reserve Assets hold inside RToken address
and depending upon buffer, it decides whether to depositor `withdraw` from Curve vault
Now we are more intersted in _depositIntoVault()
So here allowance given to curveVault for amountfrom LendingPooland in next step curveVault.deposit()called
Here point is whole thing is problematic, cause Lending pool doesnot hold any ReserveToken at current moment, all deposited Reserve Token are transfered to RToken contract previously(in ReserveLibrary :: deposit()).
So _depositIntoVault()always going to failed.
_depositIntoVault() always goin to fail
manual review
should re-design this whole working process
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.