This happens due to the following block of code in the LendingPool::borrow
function:
Imagine the following scenario:
User deposit an NFT that is worth 80k to the LendingPool
contract.
Due to the check listed above, he is able to get 100k of crvUSD
This is extremely bad for the protocol since it creates bad debt and even if the user gets liquidated, he is on 20k crvUSD
profit for this exchange
User leaves the protocol with bad debt and receives profit from doing so
Manual review
Change the highlighted check as it follows:
This change will lead to users maintaining the proper collateral value
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.