Market lifecycle

How a Hyperliquid market becomes a pToken, how it is run and adjusted while it is live, who can stop what, and how it winds down if Hyperliquid delists it, so that every holder can still redeem.

Every market is launched the same way: an account on Hyperliquid on one side, a token on Elysium on the other, and its limits set before the first mint.

Listing a market

A market is listed on both chains. The order matters: the hedge has to be able to exist before anyone can mint.

  1. 1
    Allow the dexFor a HIP-3 market, the owner of the CoreAccountFactory first marks its perp dex as USDC-margined with setUsdcDex, after checking the dex's collateral in Hyperliquid's metadata. The default dex is always allowed.
  2. 2
    Create the accountcreateAccount(perpIndex) on HyperEVM deploys the market's CoreAccount with the factory's current roles and risk bounds. It reverts if the perp does not exist or the account already does.
  3. 3
    Set 1x on isolated marketsFor an isolated-only market, the one-time leverage setup with a throwaway agent (Custody and hedging). Until it is confirmed, the account cannot open a position.
  4. 4
    Create the tokenIssuer.createMarket(perpIndex, name, symbol) on Elysium deploys the pToken and emits MarketCreated. Minting stays disabled. The time is recorded as launchedAt: units of exposure are exactly one from here and follow funding after it.
  5. 5
    ConfigureconfigureMarket(perpIndex, params) sets fees, the price band and the limit ceilings, and switches minting on with mintEnabled. The limits in force start at the ceilings.
  6. 6
    Set the reference priceThe guardian or owner calls resetReferencePrice with a valid quote. Without this anchor every trade reverts with NoReferencePrice.
  7. 7
    OpenThe risk manager sizes the mint limits in force, and the market's tokens can be minted once the global mint budget has room.
Issuer.sol, set by configureMarket
struct MarketParams {
  bool    mintEnabled;
  uint16  mintFeeBps;          // ≤ MAX_FEE_BPS (200)
  uint16  redeemFeeBps;        // ≤ MAX_FEE_BPS (200)
  uint16  maxMoveBps;          // 1 … MAX_MOVE_BPS (2000)
  uint16  maxMoveBpsPerMinute; // ≤ MAX_MOVE_BPS_PER_MINUTE (500)
  uint256 maxDebt;             // ceiling, USDC 6 decimals
  uint256 maxMintPerHour;      // ceiling, USDC 6 decimals
  uint256 maxRedeemPerHour;    // USDC 6 decimals
}

The owner cannot exceed the constants: a fee above 2%, a band of zero or wider than 20%, or a widening faster than 5% per minute reverts with FeeTooHigh or InvalidParams.

Live operation

  • Users mint and redeem with quotes; the operator follows each trade with a bounded order on Hyperliquid.
  • Every hour, funding is applied to the units and the position is trimmed or grown to stay at 1x (Funding and value).
  • USDC is rebalanced between the chains: mint proceeds return from Elysium, redemptions are paid from the treasury when the Issuer is short.
  • Anyone may keep the price anchor current with pokePrice; quiet markets let the band widen until the next trade.
  • Solvency is checked continuously; a shortfall pauses minting, never redemptions.

Changing limits

WhoFunctionWhat it changes
OwnerconfigureMarketFees, band, ceilings, the redemption limit, mintEnabled. Applies from the next trade.
Risk manager or ownersetMarketLimitsDebt and hourly mint limits in force, at most the ceilings.
Risk manager or ownersetMintBudgetThe global budget, compare-and-set, at most its ceiling.
OwnersetMintBudgetCeilingThe budget's ceiling; the budget comes down to it.

Once the risk manager has set a market's limits, the owner's reconfiguration can only lower them to a new, lower ceiling, never raise them back. Fee changes apply to the next trade, not to redemptions already queued. Full detail in Fees and limits.

Pauses: who stops, who restarts

Stopping is quick and restarting is deliberate. The guardian can stop almost everything; for most switches only the owner turns them back on. Redemptions are the exception, so that a false alarm does not lock holders in for the owner's delay.

SwitchStopsPaused byRestarted by
pauseMintsEvery mint, all marketsGuardian, ownerOwner
setRedeemsPausedEvery redemption and payClaimsGuardian, ownerGuardian, owner
pauseBridgeOutUSDC leaving the IssuerGuardian, ownerOwner
pauseAll three at onceGuardian, ownerEach as above
mintEnabled = falseMints on one marketOwnerOwner
CoreAccount pauseIncreases and deposits; decreases still workGuardian, ownerOwner
Treasury pauseFunding accounts and bridging to ElysiumGuardian, ownerOwner

Two things act like a pause without being one: redeem-only quotes, which close the mint side of a market that cannot take new exposure, and stopped quotes, which happen when the price service has no fresh data. While no quote is served, nothing can be minted or redeemed and funds stay where they are.

Winding a market down

If Hyperliquid delists a market or halts it for good, the hedge is closed and the market is settled at the price it was closed at.

  1. 1
    Close the hedgeThe position is sold on Hyperliquid. The guardian and the owner can decrease without the operator's hourly limit, so the close never waits.
  2. 2
    SettleThe owner calls settleMarket(perpIndex, price) with the price realised closing the hedge, per token, 18 decimals. Minting is switched off for good: the market can no longer be reconfigured, and quotes, pokePrice and resetReferencePrice no longer apply. MarketSettled is emitted.
  3. 3
    Redeem at the settlement priceEvery holder redeems at that price, with no quote and no deadline. The redeem fee, the hourly redeem limit and the queue still apply.
adjustSettlement
Afterwards the owner can still change the hourly redeem limit and the redeem fee (still at most 2%), so a limit set too low does not hold holders for weeks, and can correct the settlement price once. A second correction reverts with AlreadyCorrected. SettlementAdjusted is emitted each time.
Queued claims
A claim already queued keeps the price it was queued at, including after a correction.

After settlement

A settled market is never deleted. The token keeps working as an ERC-20 and stays redeemable at the settlement price for as long as anyone holds it; the market stays in the Issuer's list with its settlement price set. On HyperEVM, the CoreAccount's freed margin is swept back to the treasury. The perp index cannot be listed a second time: createMarket refuses an index that already has a token.