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.
Observe the reference
The relay converts the external spot price to tUSDC atoms per whole WHYPE. Each observation carries its source block and timestamp.
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.
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- 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.
| Index | Factor | Midpoint | Deposit |
|---|---|---|---|
| 0 | 0.905× | 90.50 | tUSDC |
| 1 | 0.915× | 91.50 | tUSDC |
| 2 | 0.925× | 92.50 | tUSDC |
| 3 | 0.935× | 93.50 | tUSDC |
| 4 | 0.945× | 94.50 | tUSDC |
| 5 | 0.955× | 95.50 | tUSDC |
| 6 | 0.965× | 96.50 | tUSDC |
| 7 | 0.975× | 97.50 | tUSDC |
| 8 | 0.985× | 98.50 | tUSDC |
| 9 | 0.995× | 99.50 | tUSDC |
| 10 | 1.005× | 100.50 | WHYPE |
| 11 | 1.015× | 101.50 | WHYPE |
| 12 | 1.025× | 102.50 | WHYPE |
| 13 | 1.035× | 103.50 | WHYPE |
| 14 | 1.045× | 104.50 | WHYPE |
| 15 | 1.055× | 105.50 | WHYPE |
| 16 | 1.065× | 106.50 | WHYPE |
| 17 | 1.075× | 107.50 | WHYPE |
| 18 | 1.085× | 108.50 | WHYPE |
| 19 | 1.095× | 109.50 | WHYPE |
