You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Stale Price check in the PythOracle contract is inverted. This would lead to two things:
Transaction reverts if the latest price publishTime is >= block.timestamp - noOlderThan, which could happen very often if its a frequently updated price feed. Every contract that uses this price wouldn't be able to work.
Little Clay Parakeet
Medium
PythOracle Staleness check is inverted
Summary
The Stale Price check in the PythOracle contract is inverted. This would lead to two things:
block.timestamp - noOlderThan
, which could happen very often if its a frequently updated price feed. Every contract that uses this price wouldn't be able to work.Root Cause
The Stale price check is inverted.
Internal pre-conditions
No response
External pre-conditions
Price feed not updated in the last
PythOracle.noOlderThan
seconds.Attack Path
tokenIn
than the actual current value.Impact
No response
PoC
No response
Mitigation
Revert the Stale Price check
The text was updated successfully, but these errors were encountered: