Fees and limits

What a mint or redemption costs, and how much can go through. Fees and the spread are the price of the trade; limits per market and across all markets keep new exposure within what the hedge on Hyperliquid can absorb.

Limits meter the flow: a market can take only so much in an hour, and only so much in total.

What a trade costs

Mint fee
Taken from the USDC you pay: usdcIn × mintFeeBps / 10000.
Redeem fee
Taken from the gross USDC: gross × redeemFeeBps / 10000.
Spread
The ask sits above the token's value and the bid below it, by the same amount each side.
Network fee
Elysium gas, paid in HYPE. A mint also needs a USDC approval transaction when the allowance is short.
MarketMint feeRedeem feeFee cap
pGOLD10 bps (0.10%)10 bps (0.10%)200 bps (2%) each side
MAX_FEE_BPS = 200 is a constant: no configuration can set a fee above 2%.

Fees are set per market by the owner and apply from the next trade. The amounts are part of the quote you see before you sign, and the Minted and Redeemed events record the fee of every trade.

Where fees go

Fees stay in the Issuer, booked in accruedFees, and are excluded from the USDC that can pay instant redemptions or leave for HyperEVM. The owner withdraws them to the fee recipient with withdrawFees, but only from what the redemption queue does not need: fees are junior to queued holders, and payClaims may spend the whole balance, fees included, to pay them.

The spread

The spread is set per market from the depth of Hyperliquid's order book: what it costs to open or close the hedge at that moment. Deep markets get a tight spread; thin ones a wider one. It is the same on both sides of the token's value and is already inside the bid and ask of every quote, so there is nothing to add to it.

Spread and fees together are the full cost of a round trip at an unchanged price. The worked example shows one.

Limits per market

LimitMeasured asChecked onError
Debtsupply × max(ask, anchor), USDMintDebtCapExceeded
Mints per hourUSDC paid in, fee includedMintFlowCapExceeded
Redemptions per hourUSDC paid or owed out, net of feeRedeemFlowCapExceeded

The debt limit bounds the market's total size: what the Issuer owes holders, valued at the higher of the ask and the price anchor before the trade, so a low ask cannot make a large supply look small. It bounds the position that has to exist on Hyperliquid. The hourly limits bound how fast that position has to change, and how much a faulty price could move in or out of a market before someone stops it.

Hourly limits are leaky buckets

Each hourly limit is a bucket that drains linearly to empty over FLOW_WINDOW, one hour. A trade adds its amount to what is left in the bucket and must fit under the limit. There is no reset on the hour, so no boundary lets twice the limit through.

left = used × (3600 − elapsed) / 3600 (0 once an hour has passed) after = left + amount ≤ limit
Read the current level with mintedLastHour(perpIndex) and redeemedLastHour(perpIndex).
TimeTradeBucket beforeBucket after
12:00Mint $8,000$0$8,000
12:30Mint $6,000$4,000 (half drained)$10,000
12:30Mint $1$10,000Reverts: over $10,000
12:45Mint $2,500$7,500$10,000
13:45—$0 (an hour after the last trade)$0
An illustrative $10,000 hourly mint limit. Mints and redemptions have separate buckets.

Who sets the limits

The owner sets each market's parameters with configureMarket: fees, the price band, and the ceilings for debt, mints per hour and redemptions per hour. A second role, the risk manager, sizes the mint-side limits actually in force to current market conditions.

  • setMarketLimits(perpIndex, maxDebt, maxMintPerHour) sets the debt and hourly mint limits in force, each at most the owner's ceiling (AboveCeiling otherwise).
  • It cannot touch the redemption limit, fees or the band. That key can slow new exposure, never hold up a redemption.
  • Once the risk manager has set a market's limits, a later configureMarket by the owner only ever brings them down to a lower ceiling, never back up.
  • The owner can turn the role off; limits then move only with the owner's configuration.

The global mint budget

Per-market limits add up past any reserve once there are many markets. So there is also one budget shared by all of them: mintBudget, in USDC. Every mint spends its usdcIn from it, and a mint larger than what is left reverts with MintBudgetExceeded. Redemptions do not touch it.

What it tracks
The margin ready on Hyperliquid to hedge new tokens. The risk manager keeps it in line with that margin.
How it is set
setMintBudget(expected, budget) is a compare-and-set: it applies only if the budget still equals expected, so a mint landing between the read and the write cannot have its spend written back.
Ceiling
The owner sets mintBudgetCeiling; the budget can never exceed it, and lowering the ceiling pulls the budget down with it.
Fails closed
The budget is zero until it is first set and does not refill over time. If whatever keeps it topped up stops, minting stops with it.

What you see when a limit is hit

The site checks your trade against the contract before you sign. If a limit would stop it, you see a sentence, not a raw error:

ErrorWhat the site says
FlowCapExceededThis market's hourly limit is reached. Try a smaller amount, or again later.
DebtCapExceededThis market is at its size limit. Try a smaller amount.
MintBudgetExceededMinting is at capacity for the moment. Try a smaller amount, or again in a few minutes.
PriceOutOfBandThe price moved faster than the market allows right now. Try again in a minute.
MintsArePausedMinting is paused for the moment. Redemptions stay open.

A limit makes the trade revert before anything moves: no USDC is taken, no token is burnt. When a market cannot take new exposure at all, the price service switches it to redeem-only quotes and the mint side closes.

Limits on moving USDC

The USDC that leaves the Issuer goes only to Ported's treasury on HyperEVM. The fast route for those transfers is capped per day on-chain, because its recipient is set off-chain; the canonical bridge, whose recipient the contract fixes, has no cap. Neither can touch fees or USDC owed to queued redemptions. More in Custody and hedging.