DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: low
Invalid

No Burn or mint Functionalities

Summary

There's no built-in mechanism for burning tokens. The contract lacks access control mechanisms for minting or burning tokens.

Vulnerability Details

If your project requires a way to reduce the token supply, you'll need to add a burn function.

Impact

Tools Used

Recommendations

  1. Burning Mechanism: If you want to allow token burning (either by the token holder or an admin), consider adding a burn function:

function burn(uint256 amount) public {
_burn(msg.sender, amount);
}

2 Access Control for Minting: If future minting is anticipated, add a mint function with proper access control. For example:

function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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