Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: low
Invalid

IERC20 token should be immutable - L1Vault

Summary

The initilazation of the token state variable is not immutable. There is no reason to keep it that way.

Vulnerability Details

This is only a gas optimization. There is not security vulnerability.

Impact

Higher gas fees

Tools Used

Slither + Manual Review

Recommendations

Simply define token in L1Vault like the following:

IERC20 public immutable token;
Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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