Skip to content

D3CC [ Crypto ] Fix PriceOracle missing staleness check and fallback mechanism#1494

Open
D3CC wants to merge 1 commit into
UnsafeLabs:mainfrom
D3CC:fix-915v1-1779026702
Open

D3CC [ Crypto ] Fix PriceOracle missing staleness check and fallback mechanism#1494
D3CC wants to merge 1 commit into
UnsafeLabs:mainfrom
D3CC:fix-915v1-1779026702

Conversation

@D3CC
Copy link
Copy Markdown

@D3CC D3CC commented May 17, 2026

/claim #915
/bounty $200

Demo Evidence

Demo

Changes

  • Added fallback oracle with setFallbackOracle()
  • Added staleness check: MAX_STALENESS (configurable, default 3600s)
  • Added require(price > 0) for zero/negative price rejection
  • Added round completeness validation: answeredInRound >= roundId
  • Added StalePrice event when primary oracle returns stale data
  • Falls back to secondary oracle; reverts if both stale
  • Internal _queryFeed() helper for DRY oracle queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant