when buyPresent() in SantasList calls i_santaToken.burn(), the burn function only burns 1e18. When a user buys a present the present costs 2e18 so 2e18 should be burned when this function is called.
Allows user to get an NFT for cheaper by only paying 1e18
Users could manipulate this to be able to buy presents for more people because its cheaper
Manual Review
adapt the code for burn() in SantaToken
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.