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

`burn()` and `staleCheckLatestRoundData()` and `getTimeout()` can be `external`

Summary

burn() can be external to save gas.

Vulnerability Details

burn() in DecentralizedStableCoin.sol and staleCheckLatestRoundData() and getTimeout() in OracleLib.sol aren't called inside the contract and thus can be set to external.

Impact

Useless gas consumption.

Tools Used

Manual review

Recommendations

Set the functions to external to save gas.

Support

FAQs

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