immutable
Variables that are assigned values only during the construction phase and remain unchanged thereafter should be designated as immutable. This adjustment bypasses the costly storage-writing activity during the constructor execution, which consumes about 20,000 gas per variable. Additionally, it replaces the high-priced storage-reading operations, costing around 2,100 gas per read, with a far more economical value reading operation that only expends 3 gas.
Before:
After:
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.