unlistNFT transfers the NFT back to the seller but only sets listing.listed = false. The rest of the listings[tokenId] struct (seller, minPrice, buyNowPrice, etc.) remains in storage, leaving stale data that can confuse other contract logic or off-chain indexers and wastes storage. The unlisted NFT token should either be removed from the listings state variable or listed flag must be marked as false in the state variable.
Likelihood:
Medium — likely to occur when seller attempts unlist after listing.
It occurs everytime when the owner tries to unlist the tokens
Impact:
High — token effectively locked inside marketplace; subsequent operations may fail or revert.
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.