The LendingPool
contract allows users to deposit NFTs as collateral for borrowing reserve assets. However, there's no check to ensure that the value of the deposited NFTs exceeds a minimum threshold . This could lead to potential issues where a user can deposit low-value NFTs which may not provide sufficient collateral for the borrowed amount.
The depositNFT
function in the LendingPool
contract allows user's to deposit NFTs without checking if the value of the NFT exceeds a minimum threshold.
This code doesn't have a check to ensure that the value of the NFT being deposited exceeds the minimum threshhold. This can lead to users depositing low-value NFTs, which may not provide sufficient collateral for the borrowed amount.
If users are allowed to deposit low-value NFTs as collateral, this can cause the protocol to go underwater.
Users may deposit low-value NFTs which may not provide sufficient collateral for the borrowed amount.
This can increase the risk of potential losses for the protocol.
Manual review
Add a check to the depositNFT
function to ensure that the value of the NFT deposited exceeds a minimum threshold.
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.