Initializing variables to their default value cost more gas than not initializing them.
Explicitly initializing a variable to its default value costs more gas than uninitializing it. For example, uint256 i can be used instead of uint256 i = 0 in the following code:
for (uint256 i = 0; i < tokenAddresses.length; i++) {
for (uint256 i = 0; i < s_collateralTokens.length; i++) {
Not initializing variables to their default value saves gas.
Manual review and VS Code
Do not initialize variables to their default value.
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.