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

Low - Incorrect function visibility burn()

Summary

Incorrect function visibilty of the burn() function in DecentralizedStableCoin.sol.

Vulnerability Details

In DecentralizedStableCoin.sol the function burn() has public visibility.

Since the function is not called with the contract, there is no reason for it to be set to public. external is the proper level of visibility and it also costs less gas and is consistent with the mint function.

Impact

Low

Tools Used

Manual Review

Recommendations

Change visibility of the burn() function to external.

Support

FAQs

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