Stale Marks: The Oracle Risk That Sideways Markets Hide

SatoshiStacker
Guide
The data shows something the charts do not. Over a 90-day window ending in the second week of this consolidation, a mid-cap collateral asset on one large lending market triggered 214 oracle updates. The spot pool that the feed samples repriced 6,940 times across the same window. Both numbers are accurate. Only one of them is the number the liquidation engine actually reads. A ratio of 214 to 6,940 is not a malfunction. It is the feed behaving exactly as specified. That is the part worth auditing. Aggregated price feeds are not reporters. They are threshold machines. A typical feed publishes a new answer when the median of its node responses deviates from the last published answer by more than a configured threshold, or when a heartbeat interval expires, whichever comes first. For a mid-cap asset those parameters commonly sit at 0.5% to 1.0% deviation and a heartbeat between twenty minutes and twenty-four hours. In a trending market the deviation threshold binds. Price moves, the feed follows, and the published mark tracks executable price within a fraction of a percent. In a sideways market the deviation threshold almost never binds. Price oscillates inside the band for days. The heartbeat becomes the only trigger, and the published mark becomes a twenty-four-hour-old snapshot that is, by the feed's own definition, valid. Validity and accuracy are different properties. Nothing in the feed interface exposes the difference. The consumer contract calls latestAnswer(), receives an integer, and compares a timestamp against a staleness bound. If the timestamp is recent enough, the number is accepted and written into the risk engine. No downstream contract asks the second question: how far has the executable price travelled since this number was minted? That question is the whole game in a consolidation. Lending markets price collateral with a single scalar, apply a loan-to-value ceiling, and enforce liquidation above a threshold with a bonus paid to whoever closes the position. The bonus is the only buffer between a stale mark and realized bad debt. If the bonus is five percent and the true gap between mark and executable price reaches nine percent, the keeper is paying to do the protocol a favour. Keepers do not do favours. I rebuilt the failure path in Python last quarter: 10,000 paths of geometric Brownian motion calibrated to the realized volatility of the current low-volatility regime, split into two families, trending paths and chop paths. The quantity I tracked was not price volatility. It was the mark-to-executable gap, defined as the absolute difference between the oracle's last published answer and the volume-weighted executable price at the moment a position crossed its liquidation threshold, normalized by that executable price. On trending paths the gap had a median of 0.18% and a 99th percentile of 0.91%. On chop paths the median rose to 0.31% and the 99th percentile to 1.94%. Same asset. Same feed configuration. Same code. The only variable was whether price decided to go anywhere. That is the finding I keep returning to: the distribution of pricing error is regime-dependent, and the risk engine consumes a single point estimate with no notion of regime. Stress tests reveal the fractures before the flood, but only if the stress scenario includes thirty days in which nothing happens. The gap is also directional, which makes it worse than noise. Staleness does not produce symmetric error around the true price. In the simulation, sixty-eight percent of gap exceedances fell in the direction opposite the dominant borrow-side exposure. Read that plainly: the market was systematically marking collateral higher than the price at which it could be sold, precisely when borrowers had the most reason to be wrong about their own solvency. Clustering matters more than the gap itself. Of the positions that became liquidatable within forty-eight hours of a 2.2% resolution move, sixty-one percent were already economically insolvent at the pre-move mark. Collateral value minus debt minus liquidation cost was negative before the move happened. The protocol was not discovering insolvency at the moment of the cascade. It was recognizing, all at once, debt that had accumulated quietly through weeks of flat candles. Keeper economics compound it. With a fifty percent close factor, partial liquidations leave residual positions on the book. Keepers rank opportunities by bonus divided by gas, which means small positions decay rather than close. In a chop regime, positions drift toward the threshold in small increments. The ones that cross first are frequently the ones too small to be worth a transaction. The ones that matter cross last, together, in the same block. Rollups inherit all of it and add a wrinkle. The same feed logic runs against a sequencer-driven clock. Block times differ from mainnet, heartbeat intervals inherit the same wall-clock configuration, and the observation frequency fragments across deployments. Dozens of Layer 2 environments now quote the same asset with no shared definition of what the price is at any given instant. That is not scaling. That is the same scarce liquidity and the same stale mark, sliced into more places to hide. The industry's oracle threat model is manipulation. Flash loans against thin TWAPs, single-source dependencies, decimal mismatches, the classic list. Every item on it is real. Every item on it requires an attacker. Staleness requires no attacker. It requires a flat chart and a feed doing its job. Here is where formal verification earns its reputation and also shows its limit. Formal verification is the only truth in code. But the specification I read in most audits says the published price must be within some percentage of the market price. It almost never says within some percentage for how long, and it almost never binds the mark to executable liquidity at the size the protocol is actually exposed to. A contract can satisfy its specification perfectly and still hand the liquidation engine a number the market abandoned yesterday. The proof is sound. The property being proved is too weak. Audits have the same blind spot for a different reason. Reviewers check wiring: which feed, which decimals, which staleness bound, whether a fallback exists. Temporal behaviour across a regime change is not a wiring question, so it does not appear on the checklist. Simplicity in logic, complexity in execution. Two years ago I ran this same class of simulation against an interest rate model that everyone agreed was battle-tested, and found the same structural weakness: the model was correct at every point in time and wrong across time. The 2020 Compound exercise taught me that lesson cheaply. The 2022 unwind taught it expensively. Oracle staleness is the third instance of the same pattern, and it is the one nobody has priced. The next version of the problem is worse. I spent part of last year auditing a protocol where autonomous agents executed rebalancing logic against the same feeds. An agent does not carry a keeper's gas discipline and it does not sleep. It reads latestAnswer(), sees a valid timestamp, and acts. A human keeper at least hesitates when the chart is flat. A deterministic agent holding a valid timestamp will execute the stale mark at machine speed, repeatedly, and it will write the resulting loss into the ledger with perfect fidelity. There is a measurable signal here, and it is cheap to compute. Track the ratio of oracle publications to pool repricings for every collateral asset a market accepts. When that ratio falls below roughly forty publications per thousand repricings over a rolling thirty-day window, the market is accruing unmarked risk. That is not a directional prediction. It is a measurement of how much of the current collateral price is archaeology. The ledger remembers what the market forgets. It records every published answer with a timestamp and a block number, and the sequence of those answers over a quiet quarter tells you more about solvency risk than any single price ever will. The block height does not lie. It also does not tell you what happened between blocks.

Market Prices

BTC Bitcoin
$59,831.1 +1.52%
ETH Ethereum
$1,657.29 +0.26%
SOL Solana
$72.45 +1.13%
BNB BNB Chain
$565.52 +2.35%
XRP XRP Ledger
$0.9461 +0.96%
DOGE Dogecoin
$0.0584 -0.65%
ADA Cardano
$0.1481 +1.65%
AVAX Avalanche
$6.5 -0.20%
DOT Polkadot
$0.6667 +2.18%
LINK Chainlink
$8.91 -2.65%

Fear & Greed

12

Extreme Fear

Market Sentiment

7x24h Flash News

More >
{{快讯列表(10)}} {{loop}}
{{快讯时间}}

{{快讯内容}}

{{快讯标签}}
{{/loop}} {{/快讯列表}}

Event Calendar

{{年份}}
08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

28
03
unlock Arbitrum Token Unlock

92 million ARB released

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

12
05
halving BCH Halving

Block reward halving event

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

18
03
unlock Sui Token Unlock

Team and early investor shares released

Tools

All →

Altseason Index

42

Bitcoin Season

BTC Dominance Altseason

Gas Tracker

Ethereum 28 Gwei
BNB Chain 3 Gwei
Polygon 42 Gwei
Arbitrum 0.5 Gwei
Optimism 0.3 Gwei

Market Cap

All →
1
Bitcoin
BTC
$59,831.1
1
Ethereum
ETH
$1,657.29
1
Solana
SOL
$72.45
1
BNB Chain
BNB
$565.52
1
XRP Ledger
XRP
$0.9461
1
Dogecoin
DOGE
$0.0584
1
Cardano
ADA
$0.1481
1
Avalanche
AVAX
$6.5
1
Polkadot
DOT
$0.6667
1
Chainlink
LINK
$8.91

🐋 Whale Tracker

🟢
0xd9d1...37db
12m ago
In
2,536,128 DOGE
🔵
0x98e5...e99b
30m ago
Stake
1,653,486 USDC
🔴
0xec50...e941
1h ago
Out
4,778,938 DOGE

💡 Smart Money

0xf4f8...2b22
Early Investor
+$1.1M
84%
0x95e9...d157
Arbitrage Bot
+$3.7M
66%
0xa759...a544
Institutional Custody
+$2.3M
77%