# Oracle 价格喂送

## 双层架构

### L2 Push: OracleHub

* 系统合约 slot `0x8016`
* 由 admin-set operator 推送 (price, confidence, timestamp)
* staleness check (默认 60s) + deviation check (5%) + minSourceCount (3)

### L1 Pull: L1OracleReader

* 通过 zkSync Mailbox proof 拉 L1 Chainlink/Pyth 价格
* 不依赖 sequencer 是否诚实（trustless）

## 关键参数

```solidity
stalenessThreshold: 60s
deviationThreshold: 5% (500 bps)
minSourceCount: 3
```

## 主网前必备

* 多 source aggregation (Chainlink + Pyth + Uniswap V3 TWAP) — 主网必备
* Operator 多签
* Circuit breaker on emergency

详见 [多源价格聚合算法](/algorithms/multi-source-price-aggregation.md)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yellowpaper.axblade.io/protocol-mechanics/oracle-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
