Skip to content

Module: Oracle - Price Feed and Data Integration #291

Description

@devIKargi

Purpose

Implement an oracle module to integrate external price feeds and data into the protocol, enabling accurate pricing for token swaps, collateral valuation, and liquidation mechanisms.

Direction / Tasks

  • Implement Chainlink price feed integration for primary oracle
  • Add fallback oracle mechanism using alternative data sources
  • Create price validation and staleness checks
  • Support multiple asset pairs with configurable update frequencies
  • Implement circuit breaker to halt operations on price anomalies
  • Add historical price tracking for TWAP calculations
  • Create price deviation alerts for monitoring
  • Integrate with AccessControl for feed administrator functions

Acceptance Criteria

  • Chainlink feeds properly integrated and queryable
  • Fallback oracle activates on primary feed failure
  • Staleness checks prevent outdated price usage
  • Price anomalies trigger circuit breaker protection
  • TWAP calculations accurate over specified windows
  • Multiple asset pairs supported simultaneously
  • All price updates emitted as events
  • 100% unit test coverage including failure scenarios
  • Gas-efficient price retrieval (batching support)

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions