gas

[I-10] Functions not used internally could be marked external

Reward

Total

17.35 USDC

Selected
4.50 USDC
3.21 USDC
3.21 USDC
3.21 USDC
3.21 USDC
Selected Submission

[I-10] Functions not used internally could be marked external

Severity

Gas Optimization / Informational

Relevant GitHub Links

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol

Summary

Vulnerability Details

Instances (3):

File: src/DecentralizedStableCoin.sol

46:     function burn(uint256 _amount) public override onlyOwner {

File: src/libraries/OracleLib.sol

21:     function staleCheckLatestRoundData(AggregatorV3Interface priceFeed)

35:     function getTimeout(AggregatorV3Interface /* chainlinkFeed */ ) public pure returns (uint256) {

Impact

Tools Used

Recommendations