Skip to content

Add oracle feed validation with statistical checks #192

Description

@Kevin737866

Description

Implement statistical validation of oracle price feeds including rate-of-change limits, volume-weighted checks, and anomaly detection.

Acceptance Criteria

  • Max price change per update (configurable percentage)
  • Volume-weighted price validation
  • Z-score anomaly detection
  • Validated prices flagged with confidence level
  • Validation bypass for admin in emergencies

Files to Modify

  • src/contracts/price_feed_adapters.rs -- add validation
  • src/contracts/circuit_breaker.rs -- integrate validation
  • tests/ -- validation tests

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions