Closed codehawks-bot closed 1 year ago
Gas Optimization / Informational
https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/tree/main/src/DecentralizedStableCoin.sol
Functions not used internally could be marked external
Instances (1):
File: src/DecentralizedStableCoin.sol 46: function burn(uint256 _amount) public override onlyOwner {
Link to code - https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/tree/main/src/DecentralizedStableCoin.sol
Code Review using VSCode
Mark the method as external that are not used internally
We'd have to change OZ imports to change visibility, I'm ok with not fixing this.
Functions not used internally could be marked external
Severity
Gas Optimization / Informational
Relevant GitHub Links
https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/tree/main/src/DecentralizedStableCoin.sol
Summary
Functions not used internally could be marked external
Vulnerability Details
Instances (1):
Link to code - https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/tree/main/src/DecentralizedStableCoin.sol
Tools Used
Code Review using VSCode
Recommendations
Mark the method as external that are not used internally