Funding & Margin
Hourly peer-to-peer funding rate formula, mainnet rate caps, cross/isolated margin rules, and liquidation waterfall.
Funding Cadence
Every 1 Hour
Sampled every 5s (720/hr)
Mainnet Rate Cap
±0.5% / hr
50 bps genesis · 400 bps max
Liquidation Model
4-Stage Waterfall
Book → Backstop → ADL → Final
Hourly Funding Rates
Perpetual markets settle peer-to-peer funding on the hour (interval_ms = 3,600,000), with zero protocol rake. When the rate is positive, longs pay shorts; when negative, shorts pay longs.
Formula & Sampling
- Every 5 seconds (
720samples per hour), VCore computes the impact bid/ask prices atimpact_notionaland derives the instantaneous premium relative to the oracle index price. - At settlement, the time-weighted average premium is clamped and scaled:
- Each position settles against its mark-valued notional: .
Parameters & Governance Bounds
| Parameter | Default / Mainnet Value | Governance Bounds |
|---|---|---|
Settlement Interval (interval_ms) | 1 hour (3,600,000 ms) | 1 min – 8 hours |
| Sampling Cadence | Every 5 seconds (720 samples/hour) | Fixed in consensus |
Impact Notional (impact_notional) | 20,000 USDC (BTC/ETH); 6,000 USDC default | Per-market configurable |
Base Interest (base_interest) | 0.01% / 8h (0.00125% / h) | -1% ..= +1% / 8h |
Premium Clamp (clamp) | ±0.05% / 8h | 0 ..= 1% / 8h |
Rate Multiplier (multiplier) | 1.0× | 0 ..= 10× |
Hourly Rate Cap (rate_cap_bps) | Mainnet genesis majors 50 bps (±0.5% / h); protocol default/max 400 bps (±4% / h) | <= 400 bps / h |
| Solvency Rounding | Payers round up (ceil); receivers round down (floor) | Fixed in consensus |
- Query Endpoints: Use
POST /infowithpredictedFundings(live estimate),fundingHistory(market history, up to 500 rows/call), oruserFunding(account settlements, up to 2,000 rows/call).
Cross & Isolated Margin
- Cross Margin: All cross positions on the same DEX share a unified collateral pool (
perp_usdc+ unrealized PnL across cross markets). - Isolated Margin: Each isolated position holds dedicated margin collateral; losses never spill over into cross equity or other isolated positions.
- Mode & Leverage Changes (
updateLeverage):- Switching between cross and isolated requires zero open position, zero resting orders, and zero active triggers in that market.
- Lowering leverage validates live cross free margin (or isolated position equity) against the new initial margin requirement.
- Tiered Maintenance Margin: Large positions follow continuous tiered margin tables (
POST /infomarginTable) so maintenance margin scales smoothly without cliff jumps.
Four-Stage Liquidation Waterfall
When an account's equity falls below its maintenance margin (MM), VCore executes a deterministic four-stage waterfall:
- Orderbook Liquidation: Cancels open orders in the distressed domain and submits IOC market-band liquidation orders against the live CLOB.
- Backstop Takeover: If equity drops below the backstop threshold (
2/3 MM) or orderbook depth is insufficient, the MMV Liquidator (nativedex = 0only) or a third-party DEX backstop absorbs the position and remaining collateral. - Safe-Harbor ADL (Auto-Deleveraging): If backstop equity is exhausted or underwater, profitable opposing positions are deleveraged deterministically in order of leverage-weighted PnL rank.
- Domain Final Settlement: As a last resort on an insolvent third-party DEX (
dex >= 1), positions settle cleanly within that isolated DEX's collateral pool without affecting nativedex = 0or spot USDC.