[L-2] Inefficient Gas Usage in _preventDelegateCall Function
Description:
The _preventDelegateCall function uses a private view function to check for delegate calls. While this reduces contract size, it still introduces gas overhead due to the additional function call.
Impact:
The gas usage for each call to functions using the noDelegateCall modifier is slightly increased, impacting overall gas efficiency, especially in high-frequency scenarios.
Proof of Concept:
Deploy and interact with the NoDelegateCall contract, measuring the gas usage for functions using the noDelegateCall modifier.
Recommended Mitigation:
Inline the logic within the modifier to avoid the function call overhead.
Mitigation Code:
https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.