When the curveVault goes into emergency shutdown, only the withdraw operations are active. The deposit functions are blocked. And thus the _depositIntoVault function will revert every time a user tries to deposit into the lendingPool.
The root cause of this issue are 2:
There is no function to withdraw all the funds from the vault without users withdrawing from the LendingPool
There is no way to make the curveVault address back to addess(0)
When the curveVault goes into emergency shutdown (or gets a deposit limit/withdraw limit etc) the depositfromVault function (and in some cases withdrawFromVault function) stop working. This makes the deposit function (and in some cases withdraw() function) of the lending Pool unavailable.
Dos of deposit function when emergency shutdown of curveVault occurs. Or dos of withdraw function too if withdraw limit is imposed.
manual review
add functions to withdraw from the curve vault without withdrawing from the lending Pool. Allow the curveVault address to be set to address(0)
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.