In design

Mark pools: design

Where the design of mark pools stands: the goals, the pieces we expect to build on, and the questions still open. This is a working design, published so integrators and providers can see the direction. Any part of it can change before launch.

Design goals

  • Quote at the market. The pool's price follows Hyperliquid's price for the asset, not its own last trade.
  • Keep arbitrage value with providers. Trades that profit from a stale or pushed pool price pay for it, into the pool.
  • No directional exposure for providers. The pool's net inventory in the asset is hedged on Hyperliquid.
  • Ordinary to trade against. Routers and wallets swap through it like any other pool on Elysium.
  • Bounded and checkable. Whatever the hedging side can do is limited by contracts, in the way the pTokens' custody accounts are.

A Uniswap v4 hook on Elysium

The plan is to build mark pools as a Uniswap v4 hook on Elysium, not as a separate exchange. A v4 pool can attach a hook contract that runs before and after each swap and can set the fee for that swap. That keeps the pool in the place where routers and aggregators already look for liquidity, and leaves the swap accounting to Uniswap's pool manager.

The hook is where the reference price comes in: before a swap it reads Hyperliquid's price for the asset, compares it with the pool's, and decides what the swap pays.

A fee relative to the reference price

The fee of each swap would depend on where the trade leaves the pool relative to the reference price:

The swapEffect on the poolFee
Moves the pool toward the referenceCorrects a stale priceLow: this is the trade the pool wants
Ordinary trade near the referenceSmall move either sideThe pool's base fee
Moves the pool away from the referenceTakes the price where the market is notHigher, growing with the distance
fee = base fee if the swap moves toward the reference fee = base fee + f(d) if it moves away, f growing with d
The shape, not the numbers: d is the distance between the pool's price after the swap and the reference.

The effect on the example on The idea: when gold moves on Hyperliquid, the reference moves first, and a swap that would buy the pool's gold at the old price is a swap away from the new reference, so it pays for the gap instead of pocketing it. How the charge is shaped, and how much of it goes to providers, is still open.

Hedging through Ported's custody

The pool's inventory changes with every swap. The hedge offsets the net position on Hyperliquid, through the same kind of contract-owned Hyperliquid accounts that back pTokens (see Custody and hedging):

  1. 1
    The pool fills up with the assetTraders have sold it pGOLD; the hedge adds a short of the same size on Hyperliquid.
  2. 2
    The pool runs short of the assetTraders have bought pGOLD; the hedge reduces the short, or goes long.
  3. 3
    Providers hold dollarsPool plus hedge is worth about the same whatever gold does, and the fees come on top.

The hedge does not need to follow every swap: it can work on the net position, in steps, within a tolerance. How tight that tolerance is, and who pays for the hedge's trading costs and funding, are part of the open questions below.

What Elysium must ship first

Native price reads
A way for a contract on Elysium to read Hyperliquid's prices at the current block, without a signature from anyone. Until then, prices on Elysium arrive as signed quotes, as they do for pTokens today, and a pool would depend on that signer for every swap.
Placing orders from Elysium
A way for a contract on Elysium to act on a Hyperliquid account, so the hedge follows the pool under contract rules instead of through a separate operator on another chain.

Neither is available on Elysium today. Mark pools are designed around both, and their timing follows Elysium's.

What providers would see

  • A position in a pool for one asset against USDC, such as pGOLD/USDC, whose value is meant to stay in dollars rather than follow the asset.
  • Fee income: the base fee on ordinary swaps and the higher fee on swaps that move the pool away from the reference.
  • The hedge's costs and returns, including funding on the hedge position, shown alongside the fees.
  • The same entry and exit as any v4 position, subject to whatever the hook requires to keep the hedge consistent.

Open questions

  • The exact fee curve: base fee, how fast the charge grows with distance from the reference, and whether it depends on volatility.
  • How the fee income is split between providers, the hedge's costs and the protocol. No split has been decided.
  • Whether a pool can start on signed reference prices before native reads exist, and with what limits, or must wait for them.
  • How tightly the hedge tracks the pool, and what happens to providers if Hyperliquid is unreachable for a while.
  • Liquidity ranges: full range only, or concentrated positions, which make the hedge harder to compute.
  • Which markets come first, and the size limits per pool while it is new.