[ Uniswap v4 hook for stock tokens ]
One fair price for every open.
While a stock's price is dark, large orders wait in a queue. When it returns, the whole queue clears at one fair price and the surplus goes to LPs.
| Side | Size | Limit | Status |
|---|---|---|---|
| Buy | 3,000 USDG | $215.00 | In queue |
| Sell | 15 TSLA | $205.00 | In queue |
| Buy | 1,200 USDG | $214.00 | In queue |
| Sell | 4.2 TSLA | $208.00 | In queue |
| Buy | 800 USDG | $209.00 | In queue |
| Buy | 2,500 USDG | $216.00 | In queue |
[ The problem ]
The market opens. The first bot to arrive takes the gap.
Stock tokens trade all weekend against Friday's price. Monday's news lands in one jump, and liquidity providers pay for it.
[ How it works ]
How a cross works
Four steps, from the close on Friday to the first trade after the open.
Market closes
Friday closeTrades inside the 2% band still fill. Bigger ones wait.
Orders queue
Saturday and SundayLarge trades become claims in the queue. Nothing fills at Friday's price.
One cross
Monday openFour checks pass. Buys match sells at one reference price, and only the left-over trades against the pool.
Surplus and gap auction
Minutes after the openThe surplus goes to LPs with donate(). What is left of the gap closes through a fee that starts at 5% and falls every block.
- 1
Queue
10 buys and 6 sells wait
Nothing fills at Friday's price
- 2
Match
6 buys meet 6 sells
At p*, with no pool and no fee
- 3
Uniswap v4 pool
The 4 left over swap
With a price limit of p*
- 4
LPs
The surplus is donated
A falling fee closes the gap
[ Replay ]
Watch a whole weekend play out.
Friday close. The last price is recorded.
Large orders hit Friday's price in an open pool, one bot trade at a time. In Corvex they wait and clear once.
LP PnL in USDG on a 400,000 USDG pool, marked at the reopen price. The numbers follow the graph.
[ Connected ]
One hook, every chain you need.
Chainlink brings the price and checks each print. CCIP carries it to Arbitrum and Base.
What happens to my trade while the market is closed?
A trade that keeps the pool price within 2% of Friday's close fills straight away. A bigger one is held as a claim in the queue and clears at the open.
How is the cross price decided?
It is the price from the reference feed once the market is back. Orders whose limit price allows it fill at that price, and the rest are refunded in full.
Who gets the surplus?
The pool leg of the cross usually costs less than what traders paid at the cross price. That difference is donated to the pool's LPs with donate().
What if the stock splits?
The cross will not run until the oracle is unpaused and the token's multiplier matches the announced split, so a split day never shows a fake 50% move.
Is this running live?
It runs on Robinhood Chain Testnet, Arbitrum Sepolia and Base Sepolia with mock tokens and a mock price feed. Every step in the demo weekend is a real transaction.
Open source
Every open gets a price other chains can settle on.
Each cross records a Session Print. Chainlink CRE checks it against the official open, and CCIP carries it to Arbitrum and Base.