Users eligible for token minting on call to SantasList::collectPresent
can mint an unlimited number of tokens ( both SantaList erc721 and occasionally SantaToken erc20 )
SantasList::collectPresent
expects that at the moment of execution, the caller has no SantaList ERC721 tokens. A user can skirt this rule by transfering all of their current SantaList ERC721 tokens to another user prior to the call to SantasList::collectPresent
and thus he can mint as many tokens as he wishes.
in the terminal run forge test --mt testCantCollectPresentMoreThanOnce
A user that is elligible to mint a SantasList ERC721 token or SantasList ERC721 token and SantaToken ERC20 token can mint as many of them as he wishes.
Manual review
Convert SantaList to an ERC721 snapshot token and only mint tokens to elligible users on execution of SantasList::collectPresent
as per the state of SantasList at a particular snapshotId. This snapshotId should be saved for this user at the end of the first execution of SantasList::collectPresent
for this user.
Relying on balanceOf > 0 in collectPresent() allows the msg.sender to send their present to another address and then collect again.
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.