2. How Elev is built

One coin, one vault, books on HyperCore and the way back.

An engraved triumphal arch

The parts

PartWhereWhat it does
ElevLauncherElysiumLaunches the coin through Montra's factory, creates its vault, records the mode
ElevVaultElysium, one per coinReceives the coin's fees; can only burn, lock in the pool or cross to the coin's book
Montra fee splitterElysiumPays the creator side of every fee: vault, creator, Elev treasury
RelayElysium and HyperCoreMoves batches of HYPE to the book as USDC, and profit back as HYPE
BooksHyperCoreOne account per market (and one for funding) holding every coin's position on it
KeeperElev's serverPulls fees, starts crossings, applies each coin's rules, brings profit home
A tradeon Montraโ†’feeCoin's vaulton Elysiumโ†’RelayIts positionon HyperCoreโ†’profitBack in the vaultthrough Relayโ†’๐Ÿ”ฅBurnedLocked in the poolunder the price

A fee's path

  1. A trade on Montra. Someone buys or sells the coin. Montra's hook charges the coin's fee tier and Montra keeps its protocol share.
  2. The creator side is split. Montra's fee splitter credits the coin's vault, the creator and the Elev treasury with the shares fixed at launch.
  3. The vault collects. Anyone can call pull() on a vault to move its credited fees in. Elev's keeper does it when a batch is worth acting on.
  4. The batch crosses. For the three HyperCore modes, the keeper asks Relay for a quote whose recipient is the coin's book, checks that the transaction goes to the bridge address set on the launcher with exactly the vault's amount, and calls bridgeOut. About 26 seconds later the batch is USDC margin on HyperCore.
  5. The book trades. The batch is credited to the coin's ledger in its book, and the book's net position is adjusted through a trade-only agent.
  6. Profit comes home. When the coin's position takes profit, the keeper sends it back through Relay to the coin's vault, and the vault locks it in the pool or buys the coin back and burns it. See Coming home.

Books and ledgers

A HyperCore account per coin would not scale. Elev runs one book per market (for example bet:xyz:NVDA) and one carry book, and keeps a ledger per coin inside each: deposits, position size and entry price, margin, realised profit, what is waiting to go home and what has gone home.

Coin ALong 2x ยท margin $1,000+$2,000โ†’Coin BShort 1x ยท margin $500-$500โ†’Coin CLong 3x ยท margin $400+$1,200โ†’One NVDA bookon HyperCorenet long+$2,700one order, one fee

Coins on the same market net inside one book. Three coins long, short and long on NVDA make one net position, one order and one set of fees; each coin's own ledger still carries its full position and its own result.

Rules on every tick

Hyperliquid's mark prices arrive on one websocket, for the main perps and the builder markets. On every tick, the keeper re-marks each coin's ledger and applies its rules:

RuleValue
Take profitEach time the position is up 25% on its margin, a fifth of it is sold
What a slice sends homeThe profit plus the margin it frees
StopThe position closes when 15% of its margin is left, before liquidation
Sending homeFrom $25 waiting, in one Relay crossing

Only the net change of each book is sent to HyperCore.

Data and pushes

Elev's server holds one stream per source: Montra's public trade stream for every Montra trade, Hyperliquid's websocket for marks, and the launcher's events. Each update is computed once and pushed to every open page over Elev's websocket. Charts, volumes, fees, positions and vault actions on elev.trade all come from there. See the API.