Opertus

Parameters

Protocol-tunable parameters and their bounds, the leverage ceiling, and fixed constants.

A vault has three kinds of settings. Twelve economic parameters can be tuned by the protocol within hard bounds. The leverage ceiling is fixed at deployment. Everything else is a constant. USDC amounts use 6 decimals.

Protocol-tunable

The protocol calls proposeParameters(p), then applyParameters() once ADMIN_DELAY (one day) has passed. proposeParameters checks the bounds below, so a proposal outside them reverts with InvalidParameters. A new proposal replaces the pending one and restarts the delay. applyParameters checkpoints the borrow index before the new borrowBpsPerDay takes effect.

ParameterBoundTestnet
leverageTiers[3]Open interest caps strictly increase; leverage from 1 to LEVERAGE_CEILING, never increasing20x, 10x, and 5x at $100, $200, and above (ceiling 20)
maintenanceMarginBps10 to 2,500, and at most half the initial margin at tier 0250
liquidationPenaltyBpsBelow maintenanceMarginBps100
spreadBpsAt most 1005
tradeFeeBpsAt most 100, and spread plus fee above 05
maxUnhedgedUsdc$10 to $10M$100
maxPositionNotionalUsdc$10 to $10M$1,000
maxOpenInterestMultiple1 to 2010
minInsuranceBufferUsdcAbove 0$10
borrowBpsPerDayAt most 1005
liquidatorShareBpsAt most 5,000, and penalty × (1 − share) at least spread plus fee2,000
minLiquidatorRewardUsdcBelow $10 divided by tier-0 leverage, the smallest possible margin$0.10

The bound on liquidatorShareBps makes self-liquidation more expensive than closing while equity covers the penalty. The bound on minLiquidatorRewardUsdc keeps the reward floor below the smallest margin, so it cannot be farmed by opening and liquidating tiny positions.

Leverage ceiling

LEVERAGE_CEILING is immutable. It is set at deployment to between 1 and the smaller of 50 and HyperCore's maximum leverage for the asset, read from perpAssetInfo. No parameter change can raise a tier above it, so a thin market stays at low leverage for the vault's lifetime.

Constants

ConstantValuePurpose
REQUEST_EXPIRY_BLOCKS2A request executes in block N+1 or N+2
MIN_HOLD_TIME10 secondsMinimum time before a close, unless liquidatable
MAX_BATCH100Maximum request ids per execute
HEDGE_COOLDOWN2 secondsMinimum time between hedge() calls
HEDGE_SLIPPAGE_BPS50Hedge IOC limit price distance from the mark
MAX_HEDGE_ORDER_USDC$250,000Largest single hedge order
TARGET_CORE_LEVERAGE3Leverage the HyperCore margin is sized for
CORE_MARGIN_FLOOR_USDC$10Added to the required HyperCore margin
REBALANCE_HYSTERESIS_USDC$10Band above required margin before rebalanceCoreMargin acts
MIN_BRIDGE_USDC$10Smallest bridgeSpotUsdcToEvm transfer
ADMIN_DELAY1 dayDelay on parameter changes and insurance withdrawals

HEDGE_SLIPPAGE_BPS, MAX_HEDGE_ORDER_USDC, TARGET_CORE_LEVERAGE, CORE_MARGIN_FLOOR_USDC, and MIN_BRIDGE_USDC are internal, so they have no getter. The minimum order notional is $10.

Protocol powers

The protocol acts through a multisig, and its powers are narrow:

  • pause() and unpause(), which stop and resume opens only;
  • proposeParameters and applyParameters, within the bounds above;
  • proposeInsuranceWithdrawal(to, amount) and applyInsuranceWithdrawal(), which cannot take more than the buffer or free USDC, and must keep the equity floor.

The protocol cannot move user margin, claimable balances, or locked collateral, and cannot change a position.

Continue with the vault reference for every entry point.

On this page