DeFiLayer 1Layer 2
14,723 OP
Submission Details
Severity: high
Invalid

Vyper Contract Critical Logic Flaw: Overextended Loop Leading to Price Distortion

Author Revealed upon completion
Updates

Lead Judging Commences

0xnevi Lead Judge
about 1 month ago
0xnevi Lead Judge 12 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

[invalid] finding-incorrect-loop-bound

Invalid, `bound` here has a different meaning from Python's `range(a, b)`. It is a bound of maximum iterations, meaning the loop will only go to the bounded `MAX_V2_DURATION` when `number_of_periods >= MAX_V2_DURATION`

Support

FAQs

Can’t find an answer? Join our Discord or follow us on Twitter.

Cyfrin
Updraft
CodeHawks
Solodit
Resources