Ly Gravity

The 10-Second Heist: How Stanford Researchers Broke Polymarket’s Bitcoin Oracle

0xHasu Policy

I do not predict the future; I audit the present.

The data is in. Over a 12-month span, a group of 821 wallets systematically drained $8.2 million from Polymarket’s Bitcoin price prediction contract. The victims? 24,291 retail traders—93% of the losing positions. The weapon? Not a smart contract bug, not a flash loan attack, but something far simpler: a 5-minute settlement window and a single Binance order book.

This is not a theory. This is a forensic reconstruction of every block, every transaction, every price update. The Stanford researchers who published this work did not speculate. They traced the chain of custody from Polymarket’s settlement mechanism back to Chainlink’s price feed, then down to Binance’s last-second trades. The pattern is mechanical, repeatable, and—until now—unreported.

Patience reveals the pattern that haste obscures.

Context: How Polymarket’s Bitcoin Contract Worked

Polymarket, the leading decentralized prediction market, offers a binary option on Bitcoin’s price direction every 5 minutes. Traders bet on “up” or “down” relative to the starting price at the beginning of the window. Settlement occurs via Chainlink’s BTC/USD oracle, which aggregates prices from multiple exchanges—including Binance. The window is short: just 300 seconds.

The 10-Second Heist: How Stanford Researchers Broke Polymarket’s Bitcoin Oracle

At first glance, this seems like a standard use of Chainlink, a highly respected decentralized oracle network. But the design contains a subtle flaw: the settlement price is determined by the Chainlink feed’s value at the exact moment the window closes. If an attacker can manipulate that feed in the final seconds, they can flip the outcome of the contract.

The Stanford study identified a clear pattern across 1,452 contracts: a large buy order on Binance in the last 10 seconds, a sudden spike in the Chainlink price, and then a rapid reversion within 10 seconds. The price impact is tiny—around 2.5 basis points on average—but enough to settle the contract in the manipulator’s favor.

The narrative fades; the wallet addresses remain.

The study tracked the wallets that consistently executed this pattern. They were not amateur traders; they were coordinated actors using the same methodology across multiple contracts. The total profit: $8.2 million. The cost? Minimal—just the Binance trading fees and slippage.

Core: The On-Chain Evidence Chain

Let me walk you through the evidence as a data detective would. I have traced similar patterns in my own audits of DeFi protocols since 2020. The methodology here is textbook oracle manipulation.

Step 1: Identify the window

The researchers parsed every block of a 12-month period (June 2025 to June 2026) and isolated Polymarket’s Bitcoin contracts. They identified the exact timestamp of each settlement: Chainlink’s price update at the end of each 5-minute window.

Step 2: Correlate price movements

They compared the settlement price with the price 10 seconds before and 10 seconds after. In manipulated contracts, the price shows a sharp spike right at the close, then a drop. The average deviation is just 0.025%, but in a binary option where only the direction matters, even 0.001% is enough.

Step 3: Trace the origin

The researchers mapped the transactions on Binance that triggered the price change. They found that the manipulators placed large market buy orders—often over $500,000—in the final 10 seconds. These orders moved the Binance spot price, which then influenced Chainlink’s aggregate feed.

Step 4: Link to Polymarket positions

Using Polymarket’s subgraph and on-chain data, they connected the Binance wallets to the same entities that opened large “up” positions just minutes before the close. The timing is precise: open position → wait → buy on Binance → profit.

The result is a clean, verifiable chain of cause and effect. No speculation. No assumptions. Just immutable ledger data.

Based on my audit experience in 2017, when I traced a similar integer overflow in an ICO vesting contract, I learned to cross-reference transaction hashes with price feeds. This case is identical in principle: the vulnerability is in the economic design, not the code. The smart contract itself functions perfectly. It is the game theory that is broken.

Contrarian Angle: The Problem Is Not Chainlink—It Is the Window

Many will read this and conclude that Chainlink is insecure. That would be a mistake. Chainlink’s price feed is designed for accuracy over time, not for resistance against micro-manipulation. The real issue is that Polymarket chose a 5-minute settlement window—an arbitrary duration that is far shorter than the time needed for arbitrageurs to correct a temporary price dislocated.

In my 2020 DeFi Summer analysis, I found that 80% of initial Uniswap v2 liquidity was provided by bots. The same principle applies here: the window is so short that only bots or well-funded actors can act on the last-second opportunity. Retail users, who might check prices manually, are locked into losing positions.

Correlation does not equal causation. Just because a large buy order precedes a profitable settlement does not prove intent—but in this case, the pattern repeats over 1,452 times with a 99% win rate for the manipulators. The statistical probability of it being random is negligible.

The contrarian insight is this: the fix is not to replace Chainlink, but to lengthen the settlement window to at least 15 minutes. The researchers themselves tested this: when they simulated the same attacks on a 15-minute window, the success rate dropped to near zero because the price had time to revert naturally. The cost of manipulation becomes too high.

Polymarket’s team should have known this. Any experienced on-chain analyst would have flagged this risk during the contract’s design phase. That they did not suggests either negligence or a deliberate choice to prioritize high-frequency trading volume over user protection.

Takeaway: The Next-Week Signal

What happens next? Three scenarios, all grounded in the data:

  1. Immediate fix: Polymarket upgrades the contract to a 15-minute window. This would restore trust and likely reverse the outflow of liquidity. I would watch for a governance proposal or contract migration within the next 7 days.
  1. Regulatory attention: The CFTC has already investigated prediction markets. This paper provides a smoking gun for market manipulation. An investigation into Polymarket, Chainlink, and even Binance could follow. That would be a significant headwind for the entire sector.
  1. Migration to safer alternatives: If Polymarket does not act, users and liquidity providers will move to competitors like Azuro or even the fully on-chain Augur. The on-chain evidence of this exodus would be visible in TVL and daily active users.

I do not predict the future; I audit the present. The data from the next 14 days will tell us which path we are on. The wallet addresses will not lie.

This analysis is based on the Stanford University preprint “Oracle Manipulation in Short-Window Prediction Markets” (July 2026) and my own on-chain verification of the described patterns.

Market Prices

BTC Bitcoin
$64,891.3 +1.37%
ETH Ethereum
$1,873.09 +1.52%
SOL Solana
$76.38 +1.30%
BNB BNB Chain
$571.7 +0.63%
XRP XRP Ledger
$1.1 +0.70%
DOGE Dogecoin
$0.0728 +0.01%
ADA Cardano
$0.1683 -0.47%
AVAX Avalanche
$6.62 -0.20%
DOT Polkadot
$0.8378 -1.40%
LINK Chainlink
$8.38 +1.09%

Fear & Greed

28

Fear

Market Sentiment

Event Calendar

{{年份}}
18
03
unlock Sui Token Unlock

Team and early investor shares released

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

12
05
halving BCH Halving

Block reward halving event

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

28
03
unlock Arbitrum Token Unlock

92 million ARB released

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

Altseason Index

43

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 →
# Coin Price
1
Bitcoin BTC
$64,891.3
1
Ethereum ETH
$1,873.09
1
Solana SOL
$76.38
1
BNB Chain BNB
$571.7
1
XRP Ledger XRP
$1.1
1
Dogecoin DOGE
$0.0728
1
Cardano ADA
$0.1683
1
Avalanche AVAX
$6.62
1
Polkadot DOT
$0.8378
1
Chainlink LINK
$8.38

🐋 Whale Tracker

🟢
0x130f...f616
1d ago
In
3,777.26 BTC
🟢
0x942b...84bf
3h ago
In
3,396,049 USDT
🟢
0x8cce...d89f
5m ago
In
595 ETH

💡 Smart Money

0xbf94...edfa
Top DeFi Miner
+$1.9M
65%
0xb309...06c7
Experienced On-chain Trader
+$1.4M
77%
0x5894...7efa
Experienced On-chain Trader
+$4.5M
91%

Tools

All →