Open code423n4 opened 3 years ago
pants
Tons of for loops with i++ instead ++i. And unchecked {++i} is better. This is relevant to every for loop in the code. We suggest to change to unchecked{++i} instead of the current code. You will never reach 2^256...
Agree with the finding although I can only imagine the readability of a bunch of unchecked in a for loop
Handle
pants
Vulnerability details
Tons of for loops with i++ instead ++i. And unchecked {++i} is better. This is relevant to every for loop in the code. We suggest to change to unchecked{++i} instead of the current code. You will never reach 2^256...