context: Lending.sol
When a variable is not set or initialized explicitly, the default value is assumed based on its data type (e.g., 0 for
numbers, false for booleans, 0x0 for addresses). By avoiding unnecessary initialization, it is possible to save 8 gas
per instance, leading to reduced gas fees for users.
There is no vulnerability in the code; instead, it is a gas optimization recommendation.
Location of Affected Code:
In all contracts where there is a for loop like this.
-- for (uint256 i = 0; .....
++ for (uint256 i; .......
The current implementation of the code consumes more gas, resulting in higher gas fees for users.
Manual Insepection
Avoid initializing variables with their default values to save gas costs.
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.