Risk Oracle Layer
The Risk Oracle Layer is Layer 1 of Aegis. Its job is to detect stablecoin panic, compute risk, and publish a machine-readable risk feed that the Circuit Breaker Layer consumes.
The live monitor reads the same JSON contract the operator dashboard uses: stress score, liquidity health, depeg probability, protection mode, active protections, and secondary signals (velocity, imbalance, whale exits, oracle divergence, bridge outflows).
Components
- Data Ingestion LayerCollects raw Solana and oracle data from RPC, DEX pools, stablecoin accounts, price feeds, bridge flows, and whale activity.
- Market State BuilderConverts raw events into current stablecoin market state, such as price, liquidity depth, pool imbalance, slippage, volume, and flow direction.
- Signal EngineComputes normalized risk signals from market state. Examples include peg deviation, oracle divergence, pool imbalance, whale exit velocity, liquidity depth drop, and bridge outflow velocity.
- Stress Score EngineCombines risk signals into a single
0-100stress score for each supported stablecoin. - Liquidity Health EngineClassifies liquidity condition as
Healthy,Watch,Stressed,Critical, orSevere. - Depeg Probability EngineEstimates near-term peg instability risk using rule-based bands first, with room for historical and ML-based models later.
- Panic Classification EngineLabels the type of panic event, such as liquidity panic, oracle dislocation, whale exit event, bridge outflow event, or systemic market stress.
- Alert EngineCreates risk alerts for protocols, dashboards, SDK clients, and off-chain notification channels.
- Oracle PublisherTakes the computed risk output and submits it to the on-chain Risk Oracle Program.
- Risk Oracle ProgramStores the latest canonical risk state on Solana so integrated protocols can read it directly.
Production Flow
Data Ingestion
-> Market State Builder
-> Signal Engine
-> Stress Score / Liquidity Health / Depeg Probability
-> Panic Classification
-> Oracle Publisher
-> On-Chain Risk Oracle Program
-> Circuit Breaker Layer / Protocol Integrations