15,000 USDC
View results
Submission Details
Severity: gas

Modifier used only once should be inlined

Summary

Modifiers used only once and not inherited can be inlined to save gas.

File: src/DSCEngine.sol
102: modifier isAllowedToken(address token) {
103: if (s_priceFeeds[token] == address(0)) {
104: revert DSCEngine__NotAllowedToken();
105: }
106: _;
107: }

The above modifier is only being called on Line 152

Support

FAQs

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