The getUserCollateralValue function only considers NFT deposits and ignores CrvUSD deposits, despite protocol documentation stating that both NFTs and CrvUSD deposits should be counted as collateral. This mismatch can lead to the undervaluation of the user's collateral.
Per the documentation, the user's collateral comprises of both crvUsd and NFTs deposited.
However, the getUserCollateralValue checks only the NFTs deposited by the user and doesn't take into consideration the crvUsd deposited.
Users get lower borrowing capacity
Premature liquidations possible
Protocol doesn't function as documented
Manual
Fix the collateral calculation to include checks for crvUsd deposited.
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.