Smart Contracts Overview
The Trust & Settlement Layer consists of three core contracts that work together to receive, validate, and publish oracle data on-chain.
📋
Source Registry
→
⚡
Aggregator
→
📊
Risk Oracle
Data flows from approved sources → through validation → to consumer-facing output
📋 Source Registry
The gatekeeper of the system. Maintains the list of approved data sources, their types (CEX/DEX), reliability scores, and active status.
RegistrationMetadataGovernance-Ready
⚡ Aggregator
The validation engine. Receives signed data packages, verifies structure and authenticity, enforces quorum, and prevents replay attacks.
ValidationAnti-ReplayFreshness
📊 Risk Oracle
The consumer-facing output. Stores finalized prices, confidence scores, and risk levels. Provides gas-efficient read interfaces for DeFi protocols.
Price DataConfidenceRisk Level
Ready to integrate?
See practical code examples and safety patterns
