BTC$80,429-1.35% ETH$2,358-1.57% USDT$0.9991+0.02% BNB$730.69-1.86% XRP$1.27-3.35% USDC$0.9997+0.01% SOL$101.10-2.89% TRX$0.3295+0.09% FIGR_HELOC$1.02— ZEC$1,143-6.38% HYPE$75.14-3.76% DOGE$0.0769-3.83% XMR$584.14-4.04% USDS$1.00+0.00% WBT$78.05-1.37% LINK$11.52-4.63% LEO$9.01-0.28% ADA$0.2065-4.26% XLM$0.1687-4.43% NEAR$4.44-9.69% RAIN$0.008067-4.66% BCH$274.36-3.77% USDE$0.9995+0.03% DAI$1.00+0.01% LTC$56.17-5.11% UNI$6.80-5.23% CC$0.1025+0.07% USD1$0.9989+0.01% AVAX$8.82-4.19% SUI$0.9396-5.10% GRAM$1.24-5.66% HBAR$0.0762-3.87%
Menu
Trang chủ
Tài sản
Phạm vi
Tất cả tài sảnEvery research file, largest firstLĩnh vựcWhat each category holds and weighsXếp hạngFourteen leaderboards and what they missHeat mapThe market sized by value, shaded by changeThị trường toàn cầuTotal capitalization, dominance and volume
Công cụ
ScreenerFilter by fundamentals, supply and riskSo sánh tài sảnResearch files side by sideĐã lưuThe assets you have starred
Các chỉ số cơ bản
Economics
Fees & revenueWhat users pay, and who keeps itGiá trị bị khóaCapital deposited in each networkExchange volumeTrading on decentralized exchanges
Networks
Hoạt động mạng lướiAddresses, transactions and throughputStablecoinsDollar tokens, where they live and what backs themStaking & yieldWhat securing a network pays, after issuance
Định giá
Standardized measures
Tỷ số định giáPrice against fees and revenue, limits statedSupply & issuanceCirculating, maximum and the dilution aheadĐịnh nghĩa các chỉ sốEvery figure: definition, period, limitation
Tổ chức
Truy cập có giám sát
Sản phẩm giao dịch trên sànEvery US-listed fund, with a page eachQuỹ ngân quỹ doanh nghiệpListed companies holding digital assets
Nghiên cứu
Analysis
Ghi chú nghiên cứuShort notes written from stored figuresLịch sự kiệnUpgrades, halvings and policy dates
Rủi ro
Khung đánh giá rủi roFifty factors in seven familiesSự cố bảo mậtExploits and failures, with the losses
Tìm hiểu
Giáo dục
Learn libraryEleven tracks, from first principlesBảng thuật ngữEvery term in plain EnglishCông cụ tínhFee drag, dilution and conversion
How this site works
Phương pháp luậnHow every figure is measuredNguồn dữ liệuWho publishes what we showĐộ mới của dữ liệuWhen each feed last ranAI agentsPrompts that keep an assistant on our dataAPI công khaiThe same figures, as JSON
Tin tức Hỏi dữ liệu Giới thiệu
Tùy chọn đọc
Chế độ hướng dẫn

Mới với thị trường — giá, lợi suất, market cap? Chúng tôi giải thích từng thuật ngữ khi bạn duyệt, bằng ngôn ngữ dễ hiểu. Cùng dữ liệu, có kèm hỗ trợ.

Góc nhìn chuyên gia

Bạn đã quen với thị trường. Chỉ có dữ liệu — rõ ràng, nhanh và gọn, không có giải thích thêm. Đây là chế độ xem mặc định.

View
Sáng hoặc tối
Ngôn ngữ
Nhiếp ảnh Nhiếp ảnhStill lifeCryptoStudio
API công khai

Mọi số liệu trên site này đều có dạng JSON, kèm theo kỳ và nguồn.

Đọc tài liệu API
DeFi Advanced 8 min

Oracles: the most common single point of failure in DeFi

A contract cannot see a price; it can only read one that somebody wrote down, and almost every protocol inherits the failure modes of that process.

A smart contract has no access to anything outside its own chain. It cannot see an exchange, a bank balance or the time of day on another network, so any protocol that needs an external fact depends on a process that writes that fact into on-chain state. That process is an oracle, and because lending, derivatives, stablecoins and structured products all read prices the same way, an oracle is the dependency most likely to be shared by everything that fails at once.

The designs, and what each one trades away

  • Push feeds. A set of reporters signs prices and writes them on chain on a heartbeat, or whenever the price has moved by more than a deviation threshold. Everything downstream reads a stored value for free. The stored value is by construction stale between updates, and the deviation threshold defines exactly how stale it may be.
  • Pull feeds. Reporters sign prices continuously off chain, and a user submits the signed price along with the transaction that needs it. Updates cost nothing when unused and the price is fresh at the point of use, but whoever chooses which signed price to submit has a degree of selection over the number the protocol will act on.
  • Time-weighted averages from an on-chain pool. The price is derived from a decentralized exchange pool's own history, so it requires no external reporter at all. Manipulating a longer average requires holding a distorted price across many blocks, which is expensive, and the same averaging makes the feed lag badly in a fast move.
  • Aggregated indices. A median or volume-weighted composite across venues resists a single venue's outage or manipulation, and provides no protection when the venues are correlated because they are all quoting from the same underlying market.

No design removes the tradeoff between freshness and manipulability. A feed that updates instantly reflects whatever just happened, including something an attacker caused. A feed that averages is harder to move and reports the past.

The manipulation arithmetic

The cost of moving an on-chain price is a function of pool depth. Under a constant product curve, pushing the price up by a factor of r requires buying into the pool until the reserve ratio matches, and the trader is left holding the asset at an inflated price; most of the outlay is recovered when the price is pushed back, so the true cost is the round trip's fees and slippage, not the notional deployed.

The payoff is bounded by something else entirely: the size of the position that can be opened against the distorted price. If a lending market will lend against a thinly traded collateral token, the attacker's profit is set by that market's depth, while the attacker's cost is set by the pool's. When those two numbers are far apart, the trade is a matter of execution rather than of capital, and a flash loan removes the capital requirement altogether by borrowing and repaying within one transaction. This is the shape of a large share of the losses in the sector: not a broken cryptographic primitive, but a correct contract reading a price that was true for one block.

Mitigations follow from the same arithmetic. Caps on how much can be borrowed against thin collateral bound the payoff directly. Isolated markets stop the loss from reaching unrelated deposits. Pricing collateral at the lower of several independent feeds removes the single manipulable source. And requiring a price to persist across blocks makes an atomic attack impossible, at the cost of slower liquidations.

A taxonomy of oracle failure

Manipulation is only one branch. The others recur often enough to be worth naming.

  • Stale. The reporters stop, or the deviation threshold is never crossed on a low-volatility asset, and the contract keeps using an old number that no longer describes the market. Oracle failure of this kind is silent, because a stored value looks identical whether it is one minute or one week old unless the timestamp is checked.
  • Correct but late. In a fast decline the feed is accurate at every update and behind the market between them, so liquidations happen at prices that no longer exist and liquidators refuse to act.
  • Right price, wrong asset. A wrapped or receipt token is priced using the underlying's feed on the assumption that they are equivalent. When the wrapper trades at a discount, that assumption is the error, and it typically shows up as a depeg that the protocol cannot see.
  • Unit errors. Decimals, denomination in the wrong quote currency, or an inverted pair. These are mundane, and they have caused total losses.
  • Governance. The address a protocol reads from is a parameter. Whoever can change it can change every price in the system at once, which makes admin key risk and upgradeability risk oracle questions as much as contract questions.
  • Ordering. Because an update and the transactions reacting to it sit in the same block, the right to act first on a new price is valuable, which places MEV and front-running inside the oracle's design rather than outside it.

What can be checked before it matters

Useful questions are specific: how many independent reporters sign a feed and who they are; what the heartbeat and deviation threshold are; whether the price is a broad index or a single venue; whether the contract validates the timestamp and rejects stale data; whether a circuit breaker exists and who can trigger a pause; and whether collateral caps bound the payoff from a successful manipulation. For assets whose price is supposed to be fixed, peg deviation is the direct measure of whether a feed and reality still agree, and the depth behind a price matters more than the price itself, which is why volume relative to value locked is worth reading next to any pool used as a price source.

The incident record classifies past failures by mechanism, including the oracle-driven ones, the risk section lists the feeds protocols depend on, and the data sources page sets out where the prices on this site come from and how they are reconciled, which is the same problem seen from the outside.

01

Điều cần ghi nhớ

Every oracle design trades freshness against manipulability, and no design escapes that tradeoff.
The cost of manipulating an on-chain price is set by pool depth, while the payoff is set by how much can be borrowed against the distorted price.
Flash loans remove the capital requirement for manipulation, leaving only the round-trip trading cost.
Stale prices are silent failures, because a stored value looks the same whether it is a minute or a week old unless the timestamp is validated.
The oracle address is a governance parameter, so whoever can change it can change every price in the system at once.
Digital Asset DatabaseDigital asset research & education

Tài sản

Tất cả tài sảnLĩnh vựcXếp hạngHeat mapScreenerSo sánhĐã lưu

Các chỉ số cơ bản

Fees & revenueGiá trị bị khóaExchange volumeHoạt động mạng lướiStablecoinsStaking & yield

Valuation & risk

Tỷ số định giáSupply & issuanceĐịnh nghĩa các chỉ sốKhung đánh giá rủi roSự cố bảo mật

Tổ chức

Sản phẩm giao dịch trên sànQuỹ ngân quỹ doanh nghiệpEventsGhi chú nghiên cứuTin tức

Tìm hiểu

Learn libraryBảng thuật ngữCông cụ tínhHỏi dữ liệuAI agentsAPI công khai

Giới thiệu

Giới thiệuLiên hệPhương pháp luậnNguồn dữ liệuChính sách biên tậpĐộ mới của dữ liệu

Pháp lý

Tuyên bố miễn tráchĐiều khoản sử dụngPrivacy policy