We have liquidation threshold of 80%, means users can only borrow 80% of deposited collateral values. but the issue is if price of NFTs changes suddenly the lenders can suffer bad debt.
The price of NFTs is set by oracle in this function:
Consider this scenario:
Borrower deposit NFT with $100K value
Borrower borrows $80K from lending pool (80% threshold)
Oracle updates the price of borrower collateral and it drops to $70K
Now borrower have $80K debt, but $70K collateral
Lenders suffers $10K loss
Bad debt can occur.
Manual Review
Consider implementing TWAP mechanism to avoid this issue.
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.