If the lending pool withdraw from the curve vault the call will always revert because the lending pool withdraw the tokens of the msg.sender and not the tokens of the lending pool.
the function _rebalanceLiquidity
L-789 withdraw from the vault if the current buffer is smaller than the desired buffer.
The call will revert because the argument used as owner is the msg.sender
not the lending pool moreover the beneficiary is set as the lending pool but it should be the Rtoken address since it serves as reserve.
We can see here in the CrvUSDVault
interface
and here from the function _withdrawFromVault
L-809
The call will revert since the lending pool should be the owner.
manual review
Change the function _withdrawFromVault
to withdraw from 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.