LendingPool
can't deposit assets in the curveVault
. This is due to the absence of reserveAssetAddress
supply in the LendingPool
The only possibility for depositing into the curveVault
is through the _rebalanceLiquidity
function being called. By taking a look into the _rebalanceLiquidity
function, we see the following block of code:
As seen in the highlighted line, we get the reserveAssetAddress
supply of the rToken
address. The is nothing wrong with that but when we try to deposit in the vault, it will always revert because the LendingPool
doesn't have reserveAssetAddress
balance on its own, leading to DoS for the LendingPool::deposit
function
If the vault is set, it will eventually lead to DoS for the deposit function
Manual review
right before calling the _depositIntoVault
function, transfer funds from the rToken
address to the LendingPool
, useing the rToken::transferAssets
function, like this:
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.