Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Lack of token burning function

Summary

The contract produces tokens that have properties to renew or change, this requires a function to burn them.

Vulnerability Details

There is no burning function. It is mandatory when working with tokens and creating new tokens.

Impact

The lack of a burn function can cause the system to become overcrowded with unnecessary tokens. The owner can also use this function to adjust the number of tokens in the system.

Tools Used

Recommendations

Add a function burn

function burn(uint256 tokenId) external {
require(ownerOf(tokenId) == msg.sender, "Not owner");
_burn(tokenId);
totalSupply -= 1;
Updates

Lead Judging Commences

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
Assigned finding tags:

Trusted Owner

Owner is trusted and is not expected to interact in ways that would compromise security

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.