Deploy a market

One createMarket transaction lists a market. You choose its price source, leverage, fees, your share and its caps; the factory enforces the bounds.

Steps

  1. Pick the price source. For a coin listed on HyperCore, use the HyperCore mark with its perp index as the feed (HYPE is 159). For an Elysium-only coin, use its Uniswap v4 pool against HYPE; the pool must be registered in the TWAP oracle and sampled.
  2. Make sure the mark is fresh. The factory refuses a feed whose mark is older than one hour. A HyperCore mark is refreshed by anyone paying for a delivery on HyperEVM; a TWAP is refreshed by anyone calling poke.
  3. Set the parameters on the deploy page, read the preview, and send the transaction with the stake as value.
  4. The transaction emits MarketDeployed(id, ...). The engine opens a book for the new id.

Bounds

ParameterBoundNote
Max leverage2x to 50xInitial margin = notional / leverage, maintenance = half
Taker fee1 to 20 bps (0.01% to 0.20%)
Maker fee0 up to the taker fee
Deployer share0 to 50% of every fee20% goes to the market's insurance buffer, the rest is protocol
Open-interest capup to 5,000,000 USDLong open interest notional
Depth cap (TWAP only)1% to 20% of pool depthLong open interest notional against the pool's in-range depth
Symbol1 to 16 bytes
StakeminStakePerp(), read live100,000 $PERP, set once on chain

The factory derives the margin from your leverage: imrBps = 10000 / maxLeverage, mmrBps = imrBps / 2. HyperCore markets have no depth cap; TWAP markets use the one you set.

Stake and slashing

Every new market stakes $PERP: 100,000 $PERP, a contract value, minStakePerp(), set once and read live by the deploy page. The deploy page asks for the approval and the market in two signatures. The first markets were staked in HYPE before $PERP launched; each stake stays in the token it was posted in.

Slashing is objective and open to anyone:

  • slashStale(id): the market has open interest and its mark has not updated for 24 hours.
  • slashTripped(id): the market's TWAP feed reports three clamped samples in a row.

The slasher receives 20% of the stake. The rest is held by the factory for insurance. The market closes to new risk; orders that reduce positions still settle.

Retire

A deployer calls retire(id) on a market with no open interest. The market closes and the stake is returned. Fees earned so far stay claimable with claimDeployerFees(id, to) on the exchange.