Skip to content

Add oracle deviation monitoring and circuit breaker reports#400

Open
TUPM96 wants to merge 1 commit into
Smartdevs17:mainfrom
TUPM96:codex/oracle-circuit-breaker-381
Open

Add oracle deviation monitoring and circuit breaker reports#400
TUPM96 wants to merge 1 commit into
Smartdevs17:mainfrom
TUPM96:codex/oracle-circuit-breaker-381

Conversation

@TUPM96
Copy link
Copy Markdown

@TUPM96 TUPM96 commented May 25, 2026

Summary

  • add per-asset oracle incident reports and oracle_incident events for source divergence, stale feeds, volatility trips, and stabilization
  • pause oracle reads automatically when fresh sources diverge by >10% or a price moves >20% within 10 minutes; >2% source divergence records an alert without pausing
  • require post-cooldown stable observations before clearing the circuit breaker, and expose breaker/report query methods on the contract
  • add focused regression tests for source alerts, source-triggered pause, volatility pause, and gradual unpause

Closes #381

Verification

  • git diff --check
  • cargo check -p hello-world currently fails on existing baseline issues unrelated to this patch, including duplicate cross_asset_borrow, duplicate DataKey, duplicate generated get_reserve_balance, and non-test builds importing soroban_sdk::testutils from src/tests.
  • cargo test -p hello-world oracle_circuit_breaker_test -- --nocapture is blocked by the same existing hello-world baseline compile errors before the focused oracle tests can run.

Copilot AI review requested due to automatic review settings May 25, 2026 11:24
@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

@TUPM96 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

Successfully merging this pull request may close these issues.

Add oracle price deviation monitoring and circuit breaker

2 participants