Open code423n4 opened 2 years ago
0x1f8b
Gas saving.
The variables yetiToken and unlockTime inside the ShortLockupContract contract are never modified, so it's better to use immutable to avoid storage access.
yetiToken
unlockTime
ShortLockupContract
Gas saving
Use immutable
@LilYeti: #132 is very similar, these could have been reported together as they were from same warden.
Handle
0x1f8b
Vulnerability details
Impact
Gas saving.
Proof of Concept
The variables
yetiToken
andunlockTime
inside theShortLockupContract
contract are never modified, so it's better to use immutable to avoid storage access.Tools Used
Gas saving
Recommended Mitigation Steps
Use immutable