LendingPool.sol : withdraw() contains ensureLiquidity() subcall, which will triager _withdrawFromVault(). Meanwhile it confusing the adrress to where it should withraw. Leading to unexpected reverts due withdraw proccess.
LendingPool.sol : withdraw() contains *ensureLiquidity() subcall, which will triager *withdrawFromVault(). Meanwhile it confusing the adrress to where it should withrdaw. Leading to unexpected reverts due withdraw proccess.
While withdraw tokens should happens from RToken contract address withdrawFromVault() send funds to LendingPool address. This will lead to situation when if it's not enough tokens on a balance of RToken contract we won't be able to proccess tx due to lack of funds on RToken ( the funds from curve vault contract went to LendingPool instead)\
Dos of withdraw functionality
Manual review
Change 2nd argument(reciever) to RToken contract address
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.