15,000 USDC
View results
Submission Details
Severity: gas

Remove nonReentrant modifier when CEI pattern to save gas

Summary

When the function follows the CEI pattern, nonReentrant modifier is not needed since reeantrancy is impossible.

Vulnerability Details

Can save gas by removing nonReentrant modifier when the function is following the CEI Pattern.

Impact

Add gas useless gas consumption

Tools Used

Manual Review

Recommendations

Remove nonReentrant modifier when the function follows the CEI pattern.

Support

FAQs

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