Protocol overview

Obelisk is an oracle-referenced automated market maker. Liquidity providers allocate inventory across a discrete price grid, and traders execute against the inventory available at each level.

On this page
Canonical poolHYPE / USDCObelisk Testnet
Price bins
20
Grid spacing
1.00%
Swap fee
20 bps

How the pool works

Two ledgers play different roles. A Uniswap v4 pool on Elysium supplies the HYPE/USDC reference price. The Obelisk contract on its own testnet holds the assets, walks the price grid and settles each swap.

  1. Observe the reference

    The relay converts the external spot price to tUSDC atoms per whole WHYPE. Each observation carries its source block and timestamp.

  2. Price the inventory

    Each of the twenty bins has a fixed offset from the reference. A new observation reprices those bins while their token balances and LP share counts stay in place.

  3. Settle an exact input

    A buy consumes base inventory in ascending bin order. A sell consumes quote inventory in descending order. The pool commits the trade only when it can consume the full input and satisfy the trader’s minimum output.

Explore the price grid

Change the reference or select a bin to inspect its midpoint. At a reference of 100 tUSDC per WHYPE, the two central bins quote 99.50 and 100.50 before fees. The contract stores those midpoints as 99,500,000 and 100,500,000 quote atoms.

Bin midpoint explorer

Example reference · 100 tUSDC
Midpoint · tUSDC / WHYPE
110 100 90 0 9 10 19
Bin index
10
Midpoint price
100.50tUSDC
Deposit asset
WHYPE
Formula and price table

For index i and reference P in quote atoms per whole base token, the contract computes ⌊P × (181 + 2i) / 200⌋. Prices below are displayed in tUSDC per WHYPE.

IndexFactorMidpointDeposit
00.905×90.50tUSDC
10.915×91.50tUSDC
20.925×92.50tUSDC
30.935×93.50tUSDC
40.945×94.50tUSDC
50.955×95.50tUSDC
60.965×96.50tUSDC
70.975×97.50tUSDC
80.985×98.50tUSDC
90.995×99.50tUSDC
101.005×100.50WHYPE
111.015×101.50WHYPE
121.025×102.50WHYPE
131.035×103.50WHYPE
141.045×104.50WHYPE
151.055×105.50WHYPE
161.065×106.50WHYPE
171.075×107.50WHYPE
181.085×108.50WHYPE
191.095×109.50WHYPE

Where to start