The protocol grants to users with a EXTRA_NICE
status with a NFT and 1e18
SantaToken as presents. The SantaToken can used to buy a NFT for a friend using the SantasList::buyPresent
function but according to the docs:
buyPresent
: A function that trades 2e18 of SantaToken for an NFT. This function can be called by anyone
Currently users only need to pay half the price to buy the present and if the protocol implements the intended price, they would not be able to do so.
Users does not pay the correct price.
Manual verification
Update SantasList::buyPresent
and SantasList::collectPresent
as such:
In SantaToken update _mint
and _burn
as such:
This line indicates that the intended cost of presents for naughty people should be 2e18: https://github.com/Cyfrin/2023-11-Santas-List/blob/6627a6387adab89ae2ba2e82b38296723261c08a/src/SantasList.sol#L87 PURCHASE_PRESENT_COST should be implemented to enforce the cost of presents.
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.