In _rebalanceLiquidity
it checks desiredBuffer
and currentBuffer
if currentBuffer < desiredBuffer , then it withdraw funds from curve vault. The issue is that it withdrew funds and sent it to the lendingPool
instead of the Rtoken
contract.
Here receiver address is set to address(this)
which is the LendingPool
, but instead , it should be Rtoken contract. Since its needed to fullfill the shortage on Rtoken contract with this rebalancing.
Rebalancing liquidity is not performed as expected.
Manual Review
Set receiver address as reserve.reserveRTokenAddress
contract. Also need to burn position from the Lending pool instead of caller
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.