40,000 USDC
View results
Submission Details
Severity: gas

Emitting storage values instead of the memory one.

Summary

Emitting storage values instead of the memory one.

Vulnerability Details

Caching of a state variable replaces each Gwarmaccess (100 gas) with a much cheaper stack read. We can avoid unecessary SLOADs by caching storage values that were previously accessed and emitting those cached values.

Support

FAQs

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