Algo Ssstablecoinsss

First Flight #30
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Arithmetic Overflow/Underflow in oracle_lib

Summary:

Warning of underflow on the calculation : seconds_since: uint256 = block.timestamp - updated_at

Vulnerability Details:

Although block.timestamp is always greater than or equal to updated_at, there is no explicit check to ensure this. A misconfigured oracle could set updated_at to a future timestamp, leading to an underflow and incorrect behavior.

Tools Used

None

Recommendations

Adding explicit checks block.timestamp >= updated_at,

Updates

Lead Judging Commences

bube Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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