01Overview
Nyx is a dark pool for perpetuals and spot that runs on Elysium and borrows its liquidity from Hyperliquid. You trade at the HyperCore mid price without your order ever sitting on a public book, so nobody watching the chain can react to it before it fills.
There are 31 perpetual markets, two spot pairs, and one pool that stands on the other side of every perp. The pool nets traders against each other and hedges only what is left over.
02Order lifecycle
An order goes through five stages. Only the last one is public.
- 01SealYour browser signs the order, splits it into slices and encrypts each slice to the matcher’s enclave key.
- 02CrossSlices are crossed against each other at the HyperCore mid inside the enclave.
- 03NetOpposite flow cancels inside Nyx. On a typical batch more than half the volume never leaves.
- 04HedgeThe remainder goes to Hyperliquid as one net order from the Nyx account.
- 05SettleThe batch state root and its validity proof are posted onchain every two seconds.
// what you sign{ market: "BTC-PERP", side: "long", size: "0.0125",limit: "60120.0", leverage: 5, nonce: 18 }// what is sentslice[0] 9f3a 0c11 b7e4 52d0 a1c9 e3f7 …slice[1] 41be 77a2 0d9c e815 6f03 2b4a …slice[2] c6d0 13fe 8a57 90b2 e44c 7d18 …// what the chain storescommitment 0x7b1e…c40a margin 75.00 USDC
03What stays private
Private here means two specific things: an order before it fills, and the side and size of a position while it is open. Everything else behaves like any onchain venue.
Sealed
- Orders before they fill
- Side and size of open positions
- Your limit price
Public
- Deposits and withdrawals
- Margin posted per position
- Fill prices and settled closes
Hyperliquid only sees the Nyx account’s net position in each market. If you are the only one trading a thin market, that net can point to your side and roughly your size.
04Fees and limits
- Perp trading fee
- 0.05% per side, to the pool
- Spot trading fee
- 0% at launch
- Max leverage
- 10x on BTC, ETH, SOL, HYPE · 5x elsewhere
- Fill price
- HyperCore mid at batch close
- Oracle band
- ±0.05%
- Batch interval
- 2 seconds
05The pool
Depositors receive nyxLP shares. The pool takes the other side of every perp, earns the trading fee and funding, and keeps its net exposure inside a ±3% band by hedging on Hyperliquid. Up to 40% of the pool can sit as hedge margin there. Withdrawals need 24 hours notice so hedges can be unwound in order.
06Contracts
- $NYX token
- 0x4e7a…19f4
- Vault
- 0x2259…a1e6
- Perps engine
- 0x7782…2c8b
- Settlement
- 0xb03d…7e11
- Timelock
- 24 h, 0x51c9…08aa
Elysium testnet, chain 99901. Mainnet addresses will be listed here at launch.
07Risks
Enclave trust
Sealed orders are decrypted inside a hardware enclave. A broken enclave would expose orders, though it still could not move funds.
Hedge venue
If Hyperliquid halts, the pool can be left unhedged until it resumes. New trades pause; closes and withdrawals do not.
Thin markets
With few traders, the public net hedge can reveal your direction.
Smart contracts
Contracts are audited but not formally verified. Use amounts you can afford to lose.
08FAQ
Is the practice mode real trading?+
No. Prices come live from Hyperliquid, but balances, fills and receipts live in your browser.
Why is there no order book?+
A visible book is exactly what lets others trade ahead of you. Nyx crosses everything at the mid instead.
Can the operator freeze my funds?+
No. Withdraw, cancel and close all work without the matcher, even while trading is paused.