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

Unnecessary public visibility in `getTimeout()`

Summary

The getTimeout() function in the OracleLib contract is currently marked as public, although it could be marked as external to optimize gas usage.

Tools Used

Manual review

Recommendations

Consider changing the visibility of the getTimeout() function to external to save gas when the function is called from outside the contract:

function getTimeout(AggregatorV3Interface /* chainlinkFeed */ ) external pure returns (uint256) {
return TIMEOUT;
}

Support

FAQs

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