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

Price Smoothing Mechanism Logic Bug

Description:

The _smoothed_price function in ScrvusdOracleV2.vy contains a critical logic flaw in how it limits price changes.

Root Cause:

The function uses unsafe_sub(raw_price + max_change, last_price) to check if price changes exceed allowed limits. When the price is falling significantly and raw_price + max_change < last_price, this operation will underflow, resulting in a very large positive number that will almost always be greater than 2 * max_change.

Impact:

This vulnerability could allow price manipulation beyond the intended rate limits. In downward price scenarios, the oracle may not properly restrict the rate of price decrease, allowing sharp price movements that the smoothing mechanism was specifically designed to prevent.

Updates

Lead Judging Commences

0xnevi Lead Judge
6 months ago
0xnevi Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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