15,000 USDC
View results
Submission Details
Severity: gas

burn function

Summary

Instead of public, use external to save some gas.

Vulnerability Details

In DecentralizedStableCoin.sol =>
function burn(uint256 _amount) public override onlyOwner {} change to function burn(uint256 _amount) external override onlyOwner {}

Impact

The external functions are slightly more gas efficient than public functions. By using external instead of public, we can reduce the gas cost.

Tools Used

Manual Review

Recommendations

Support

FAQs

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