Without no specification if sharing metadata is intended to do so, SpookySwap:trickOrTreat ties a Treat along with tokenId then attaches a metadata as tokenURI, each call to trickOrTreat with the same _name will use same Treat to tie another tokenId which contradicts the expected uniqueness of NFT's.
Although it does not affect protocol funds, it assigns same metadata to multiple tokenIds, leading to user confusion, as buyers expect to buy unique Treats, as they aren't unique they are devaluated.
Manual Review
Foundry testing tool
Enforce treat minting, is assiged with unique metadata
The function `addTreat` is called by the owner. The owner is trusted. There will be no duplicates.
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.