Skip to main content
The RedStone policy compares a RedStone price feed against an onchain oracle and checks whether the divergence is acceptable. It is useful when vault operations depend on fresh and reliable market data.

Deployment

Secret

Data Inputs

The RedStone data oracle returns values such as:
  • redstone_feed_age_seconds
  • divergence_bp
  • prev_snapshot_present
  • prev_divergence_bp
  • sustained_seconds

Rego Checks

Use these exact Rego checks to enforce each guardrail.

Stale Feed

Hard Divergence Cap

Sustained Divergence

Final Allow Rule

Complete Policy