15,000 USDC
View results
Submission Details
Severity: gas
Valid

Incorrect visibility function

Summary

The visibilty of the burn() function in is public is pure and shouldn't be.

Vulnerability Details

The visibility of the burn function is public. However, the function isn't called within the contract, so there's almost no need for it to be public. The visibility is better set as external. It saves gas costs and is also consistent with the mint function.

Impact

The impact isn't very much.

Tools Used

Code analysis

Recommendations

Change visibility from public to external

Support

FAQs

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