The doc say buyPresent: A function that trades 2e18 of SantaToken for an NFT. This function can be called by anyone.
but in reality it will be possible to call it with only 1e18
the function call i_santaToken.burn(presentReceiver);
which is
so it will allow a user to mint an NFT for 1e18
I can screw up the tokenomic of the projet, so it needs to be fixed
read the code
make this change
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.