How a Pair token works
A Pair token's own Uniswap v4 pool sells and buys it for HYPE at the oracle price. One buy and one sell, followed through the pool.
A Pair token, such as pSOL, is an ERC-20 on Elysium. It has exactly one pool: a Uniswap v4 pool against HYPE whose hook contract owns all of its liquidity. The hook creates the token when it is deployed, with a fixed supply minted once (pSOL: worth about 2,000 HYPE at launch). The token has no owner and no mint or burn function. The unsold supply stays inside the pool, and the hook moves tokens between that stock and the buyers and sellers.
The two bands
The hook keeps two positions in its pool, each 10 ticks (0.1%) wide:
- Buy band, just below the oracle price: pSOL from the unsold supply, up to 10 HYPE worth at a time. A buyer's HYPE goes in here.
- Sell band, just above the oracle price: every wei of HYPE the pool holds. A seller's pSOL goes in here.
Between the two bands is the spread. Its width is the difference between the live oracle price and its 30 minute average, plus the price's confidence band (the spread between the exchanges behind it) (see Prices and safety). In calm markets the spread is a few ticks.
A buy
- A buyer swaps HYPE for pSOL through the Universal Router, usually as the first hop of a coin buy.
- Before the swap runs, the hook reads the oracle. If the price has moved, it lifts both bands, moves the pool to the new buy price, and puts them back around the new price. If the price is too old, the swap reverts and nothing moves.
- The swap runs through the buy band like any Uniswap swap. The buyer pays the 1.5% pool fee and receives pSOL at the buy price.
- The buyer's HYPE now sits in the pool and joins the reserve on the next move.
A sell
- A seller swaps pSOL for HYPE, usually as the last hop of a coin sale.
- The hook checks the oracle and moves the bands the same way.
- The swap runs through the sell band. The seller pays the 1.5% fee and receives HYPE at the sell price. The pSOL that came back returns to the unsold supply on the next move.
A buy bigger than the buy band fills up to the band and stops. The site adds a sweep to every HYPE buy, so the HYPE the swap did not use goes back to the buyer in the same transaction.
Who can change the pool
Nobody. The hook has no owner, and it rejects liquidity from any other address. Its HYPE leaves through sells and through treasury sweeps, which stop at 150% of what holders are owed (see Reserves). Anyone can call poke() to record a fresh oracle price and move the bands; it takes no input and moves no funds.
The limits are fixed at deployment:
| Limit | pSOL |
|---|---|
| Band width | 10 ticks (0.1%) |
| New pSOL offered per move | 10 HYPE worth |
| pSOL in circulation | 50 HYPE worth, plus 2 HYPE for every 1 HYPE the reserve holds above what it owes (see Reserves) |
| New pSOL per hour | up to 25 HYPE worth |
| Total supply | Fixed at deployment, the hard ceiling |
| Moving average | 30 minutes |
Why terminals see it
The bands are ordinary Uniswap v4 liquidity, so every swap emits Uniswap's standard Swap event with real amounts and price. Indexers price the pool the same way they price any Uniswap v4 pool.
Where the price comes from
Every Pair token reads the Duos price feed, one contract on Elysium that holds every coin's USD price and HYPE's own:
- Duos's price service reads the public spot prices of the major exchanges (Binance, Bybit, OKX, Coinbase, Kraken, Gate, MEXC, Bitget and KuCoin) every 5 seconds.
- A coin's price is the median of the exchanges that quote it. Quotes more than 2% from the others are dropped, and at least 3 exchanges must agree. The spread between them becomes the price's confidence band, which widens the pool's spread when exchanges disagree; with 5 or more exchanges the highest and lowest quote are left out of it, so one slow venue does not widen every trade.
- Coins that trade only on DEXes are priced from their deepest pools on their home chain, through DexScreener, with smaller limits.
- The service writes the price of a coin with a pool when it moves 2%, and every coin's price every 12 hours. Updates go out together in one transaction at most every 90 seconds, and at once when a pool's coin moves 4% or more. A round trip through a Pair token pool pays 3% in fees and a sale gets the lower of the live price and its 30-minute average, so a lag of that size cannot be traded against.
- Every write stamps a heartbeat, and an empty write goes out when nothing else has for 5 minutes. The feed serves a price only while that heartbeat is under 10 minutes old and the price under 24 hours old; if the service stops, every pool that reads it stops trading within 10 minutes.
The feed's owner adds coins and names the key that writes prices; that key can only write prices and cannot touch a pool or its reserve. The feed's live state shows every coin's price, the exchange quotes behind it and what is on chain.