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.
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.
- 1Allow the dexFor a HIP-3 market, the owner of the
CoreAccountFactoryfirst marks its perp dex as USDC-margined withsetUsdcDex, after checking the dex's collateral in Hyperliquid's metadata. The default dex is always allowed. - 2Create the account
createAccount(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. - 3Set 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.
- 4Create the token
Issuer.createMarket(perpIndex, name, symbol)on Elysium deploys the pToken and emitsMarketCreated. Minting stays disabled. The time is recorded aslaunchedAt: units of exposure are exactly one from here and follow funding after it. - 5Configure
configureMarket(perpIndex, params)sets fees, the price band and the limit ceilings, and switches minting on withmintEnabled. The limits in force start at the ceilings. - 6Set the reference priceThe guardian or owner calls
resetReferencePricewith a valid quote. Without this anchor every trade reverts withNoReferencePrice. - 7OpenThe risk manager sizes the mint limits in force, and the market's tokens can be minted once the global mint budget has room.
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
| Who | Function | What it changes |
|---|---|---|
| Owner | configureMarket | Fees, band, ceilings, the redemption limit, mintEnabled. Applies from the next trade. |
| Risk manager or owner | setMarketLimits | Debt and hourly mint limits in force, at most the ceilings. |
| Risk manager or owner | setMintBudget | The global budget, compare-and-set, at most its ceiling. |
| Owner | setMintBudgetCeiling | The 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.
| Switch | Stops | Paused by | Restarted by |
|---|---|---|---|
pauseMints | Every mint, all markets | Guardian, owner | Owner |
setRedeemsPaused | Every redemption and payClaims | Guardian, owner | Guardian, owner |
pauseBridgeOut | USDC leaving the Issuer | Guardian, owner | Owner |
pause | All three at once | Guardian, owner | Each as above |
mintEnabled = false | Mints on one market | Owner | Owner |
| CoreAccount pause | Increases and deposits; decreases still work | Guardian, owner | Owner |
| Treasury pause | Funding accounts and bridging to Elysium | Guardian, owner | Owner |
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.
- 1Close 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.
- 2SettleThe 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,pokePriceandresetReferencePriceno longer apply.MarketSettledis emitted. - 3Redeem 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.SettlementAdjustedis 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.