As per the stated requirement, the buyPresent
function should facilitate the exchange of exactly 2e18 SantaToken for an NFT. However, upon reviewing the implementation of the buyPresent
function, it appears that it only invokes the i_santaToken.burn
function once, resulting in the burning of 1e18 tokens. This implementation does not align with the specified requirement.
User can burn only 1e18 santaTokens to mint nft.
Not align with the specified requirement, NFT value decrease.
Manual Review
Add another argument amount
in burn function
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.