We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patitonar
Gas optimization to store variables as immutable instead of storage similar to _decimals
_decimals
https://github.com/code-423n4/2021-09-bvecvx/blob/1d64bd58c7a4224cc330cef283561e90ae6a3cf5/veCVX/contracts/locker/CvxLocker.sol#L112-L114
Manual review
Declare as following: string private immutable _name; string private immutable _symbol;
The text was updated successfully, but these errors were encountered:
patitonar issue #14
0dc75b7
Agreed
Sorry, something went wrong.
No branches or pull requests
Handle
patitonar
Vulnerability details
Impact
Gas optimization to store variables as immutable instead of storage similar to
_decimals
Proof of Concept
https://github.com/code-423n4/2021-09-bvecvx/blob/1d64bd58c7a4224cc330cef283561e90ae6a3cf5/veCVX/contracts/locker/CvxLocker.sol#L112-L114
Tools Used
Manual review
Recommended Mitigation Steps
Declare as following:
string private immutable _name;
string private immutable _symbol;
The text was updated successfully, but these errors were encountered: