This contract contains multiple enum values and variables that are not implemented, potentially reflecting unimplemented functionalities or redundant code.
The Status enum contains unused values:
The documentation stand that the SantoToken is intended to be used to buy NFT for NAUGHTY or UNKNOWN friends but UNKNOWN is not defined and NAUGHTY never used
These values appear intended for use, but the implementation is missing.
This is evident as two getters, which should return these values, never do:
Furthermore, a comment indicates that buyPresent should have a different cost for NAUGHTY people, but this is not implemented:
The NOT_CHECKED_TWICE status could be useful to ensure that Santa doesn't forget to set the status for users already checked once.
The PURCHASED_PRESENT_COST variable is also unused:
Optional:
Event could have been indexed
Unused variables can be misleading as they may suggest unimplemented functionalities or simply constitute dead code that should be removed.
Manualy review.
aderyn for events.
Either implement the missing functionalities or remove the unused variables. As the developer's intention with these variables is unclear, my suggestion is to remove the following:
And consider renaming the following methods for clarity:
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.