Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zealous Black Grasshopper - Ignoring Confidence Interval for Price Validation #894

Open
sherlock-admin2 opened this issue Dec 9, 2024 · 0 comments

Comments

@sherlock-admin2
Copy link

Zealous Black Grasshopper

High

Ignoring Confidence Interval for Price Validation

Summary

The currentValue function fetches the price from pythOracle but does not validate it using the confidence interval provided by Pyth Network. According to Pyth's best practices, the price-confidence interval should be used to account for potential price inaccuracies and volatility. For scenarios requiring conservative pricing, such as calculating minimum acceptable prices or completing orders, the protocol should use:

There is documentation present that explain this problem in detail

Root Cause

No response

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

No response

PoC

No response

Mitigation

Incorporate confidence intervals into the price validation process:
Use price.price - price.conf and price.price + price.conf based on the needs of price to always favor protocol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant