User can not bring loan above water
In the LendingPool contract, users can borrow RToken by depositing an NFT as collateral. If the NFT price falls below the liquidation threshold, anyone can call initiateLiquidation(), and the borrower is given a limited time to repay their loan.
Currently, borrowers have two options to avoid liquidation:
Repay the borrowed loan.
Deposit another NFT to increase collateral value and bring the loan above water.
However, there is no functionality to allow users to increase their collateral value by depositing asset tokens (e.g., crvUSD). Even though deposit() allows users to deposit asset tokens, these deposits do not count towards the total collateral value.
This forces users to either repay the loan in full or deposit additional NFTs, limiting their flexibility and increasing liquidation risks.
Borrowers might get liquidated even if they have sufficient asset tokens deposited.
Modify collateral calculation to include deposited asset tokens (crvUSD) when determining the total 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.