HIP-4 introduces native prediction markets as first-class L1 instruments on HyperLiquid. These are binary outcome contracts that settle between 0 and 1, built on top of the HIP-3 deployment pipeline with distinct trading mechanics.Documentation Index
Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt
Use this file to discover all available pages before exploring further.
Core properties
Unlike perpetual futures, prediction markets operate under a restricted set of rules:- 1x isolated margin only — no leverage, no liquidation
- No continuous oracle feed and no funding rates
- Price = CLOB mid during active trading
- Price bounds: 0.001 to 0.999
- Loss is capped at the amount paid to enter
Pair minting model
Every prediction market has two tokens: YES and NO. They always sum to 1.00 in value.Buying YES at 0.40 is economically identical to selling NO at 0.60. The protocol enforces this invariant at the L1 level through the pair minting mechanism.
Four L1 actions
HIP-4 defines four native actions for interacting with outcome markets:SplitOutcome
SplitOutcome
Deposit collateral to mint a matched pair of YES and NO tokens.Fields:
collateral (amount), question (market identifier)This is the primary entry point. Depositing 1 USDC mints 1 YES + 1 NO. You then sell whichever side you don’t want on the CLOB.MergeOutcome
MergeOutcome
Merge a matched pair of YES + NO tokens back into collateral.Fields:
tokens (amount to merge)The inverse of SplitOutcome. If you hold both sides, you can recombine them to recover collateral without paying spread on the orderbook.MergeQuestion
MergeQuestion
Merge across a multi-outcome question.Fields:
question (market identifier)Used for questions with more than two outcomes, allowing cross-outcome merges.NegateOutcome
NegateOutcome
Flip position direction.Fields:
asset, amount, and additional parametersConverts a YES position into the equivalent NO position (or vice versa) without going through the orderbook.Settlement
Settlement is handled by a designated oracle address (oracleUpdater) that posts the final value:
- Oracle posts the resolution value
- Trading halts instantly
- All positions auto-settle in a single block
- Winners receive 1.00 per token, losers receive 0
Fee model
HIP-4 outcome markets use spot fee rails, meaning they inherit the spot trading fee schedule:| Action | Taker (cross) | Maker (add) |
|---|---|---|
| Open position | 0 bps | 0 bps |
| Close on orderbook | 7.0 bps | 4.0 bps |
| Settlement | 7.0 bps | — |
SetOutcomeFeeScale) exists that allows validator vote to adjust outcome fee rates independently from base spot fees in the future.
VIP tier discounts, staking discounts, and referral discounts all apply to outcome market fees the same way they apply to spot fees. See the fee structure page for full details.
Asset ID encoding
Prediction market tokens use a distinct ID range within the HyperLiquid asset system:Minimum order size
The minimum order size is dynamic, based on the current mark price:Deployment
Any HIP-3 deployer can deploy HIP-4 prediction markets. Becoming a deployer requires staking 500,000 HYPE. Deployment uses dedicated L1 actions:RegisterOutcome— register a new outcome marketRegisterTokensAndStandaloneOutcome— register tokens and outcome in a single action
OutcomeSpec— defines the outcome parametersQuestionSpec— defines the question being resolvedOutcomeTracker— tracks outcome state through its lifecycle
Deployer fee share
Thedeployer_trading_fee_share parameter and fee_recipient address exist in the deployment configuration, allowing deployers to earn a share of trading fees. However, on testnet this value is currently observed as 0.0 for all prediction market deployments, meaning deployers do not yet receive trading fees. This may change when prediction markets launch on mainnet.
See the fee structure page for more details on deployer revenue mechanics.