Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Initialize i = 0

Summary

However, the use of a loop counter without initialization (for (uint256 i; ...) might lead to unexpected behavior https://github.com/Cyfrin/2023-08-sparkn/blob/0f139b2dc53905700dd29a01451b330f829653e9/src/Distributor.sol#L128

Vulnerability Details

It might lead to unexpected behavior.

Recommendations

If you see a statement like for (uint256 i; ...) in Solidity, it's considered incorrect syntax and should be corrected to for (uint256 i = 0; ...).

Support

FAQs

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