Wrong price set for buying presents using 'buyPresent' function.
Acording to contest details buying ERC721 token using Santa ERC20 token should cost 2e18. After SantaList contract calls burn function in SantaTokencontract only 1e18 is burned.
Users mints ERC721 tokens for half of the price.
foundry
Change amount input in '_burn' function call to 2e18.
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.