Home
Learn

How It Works

Tokenomics

Roadmap

Humanitarian Impact Fund

FAQ

Products

Wallet

DEX

LaunchPad

Token Factory

Vaults

Company

About

Contact

Buy JIL
← Back to Patent Claims
Patent Claim 22 All Patents →

Institutional Derivatives

Portfolio Margin and Cross-Collateralization for On-Chain Trading

Patent Claim JIL Sovereign February 2026 Claim 22 of 36

01Executive Summary

JIL Sovereign's Institutional Derivatives system brings the capital efficiency of traditional exchange portfolio margining to on-chain derivatives trading. The system supports options, futures, and perpetual contracts with portfolio margin netting that offsets correlated positions across contract types, reducing total margin requirements by up to 60% compared to isolated margin models.

Unlike centralized derivatives exchanges that require users to trust the exchange with their collateral, JIL's system operates entirely on-chain with non-custodial collateral management. A dedicated protection fund absorbing 10% of all trading fees provides a backstop against cascading liquidations, and mark price calculations use a 30-minute time-weighted average price (TWAP) to resist short-term manipulation.

Key Innovation: On-chain portfolio margin netting across options, futures, and perpetuals, combined with cross-collateralization from a single deposit, a protection fund funded by trading fees, TWAP-based mark pricing, VaR-based position limits, and profit-ordered auto-deleveraging, delivers institutional-grade risk management without custody surrender.

02Problem Statement

Institutional derivatives trading in crypto is dominated by centralized exchanges (Deribit, Binance, OKX) that require users to deposit collateral into exchange-controlled wallets. The collapse of FTX demonstrated the catastrophic risks of this model, with over $8 billion in customer assets lost.

Capital Inefficiency on DeFi Platforms

Existing on-chain derivatives platforms (dYdX, GMX, Hyperliquid) use isolated margin models where each position requires independent collateral. A trader holding a long BTC future and a short BTC call - positions that partially offset each other - must post full margin for both. This capital inefficiency drives institutional traders to centralized exchanges despite the counterparty risk.

Liquidation Cascades

On-chain platforms without adequate protection funds suffer from socialized losses during extreme market events. When large positions are liquidated at a loss, the deficit is spread across all traders or LPs, creating unpredictable losses for participants who had no involvement in the liquidated positions.

Mark Price Manipulation

Many on-chain platforms use spot prices or short-window TWAPs as mark prices, making them vulnerable to flash loan attacks and short-term price manipulation that can trigger unjust liquidations.

The Gap: No existing on-chain platform combines portfolio margin netting across multiple derivative types, cross-collateralization, a funded protection mechanism, manipulation-resistant mark pricing, VaR-based position sizing, and ordered auto-deleveraging in a non-custodial system.

03Technical Architecture

The derivatives system operates through five core engines: the margin engine, the mark price oracle, the liquidation engine, the protection fund, and the auto-deleveraging system.

Portfolio Margin Model

ComponentFunctionParameters
Margin EngineCalculates net margin requirement across all positions in a portfolioVaR at 99% confidence, 1-day horizon
Cross-Collateral ManagerMaps a single collateral deposit to margin requirements across derivative typesHaircut per collateral asset (0-30%)
Mark Price OracleComputes manipulation-resistant mark price for each contract30-minute TWAP, 5-source median
Liquidation EngineMonitors margin ratios and triggers liquidations when maintenance margin breachedMaintenance margin = 50% of initial
Protection FundAbsorbs liquidation losses to prevent socialized loss distribution10% of all trading fees accrued
Auto-DeleveragingReduces opposing positions when protection fund insufficientPriority by profit-to-collateral ratio

Netting Algorithm

For each account:
  1. Group positions by underlying asset
  2. Calculate delta exposure per asset (sum of deltas across options, futures, perps)
  3. Apply correlation matrix for cross-asset offsets
  4. Compute portfolio VaR using historical simulation (1000 scenarios)
  5. Initial margin = VaR at 99th percentile * (1 + buffer)
  6. Maintenance margin = Initial margin * 0.5
  7. Available margin = Collateral value (after haircuts) - Initial margin

  Netting benefit example:
    Long 1 BTC future   = +1.0 delta
    Short 2 BTC calls   = -0.6 delta (0.3 delta each)
    Net delta            = +0.4
    Margin on net        = 40% of full long margin
    Savings              = 60% reduction

Leverage and Position Limits

Contract TypeMax LeveragePosition Limit MethodFunding Interval
Perpetual Contracts20xVaR-based at 99% confidence8 hours
Futures (Quarterly)20xVaR-based at 99% confidenceN/A (settlement at expiry)
Options (European)N/A (premium-based)Notional cap per accountN/A
Options (American)N/A (premium-based)Notional cap per accountN/A

04Implementation

The derivatives system is implemented as an extension to the DEX v5 trading infrastructure, sharing the batch auction clearing mechanism and fee distribution model.

Mark Price Calculation

The mark price oracle aggregates prices from five independent sources: the JIL DEX v5 spot price, Chainlink price feeds, Pyth Network oracle, the previous batch auction clearing price, and an exponential moving average of recent trades. The 30-minute TWAP is calculated over all five sources using a weighted median, making it resistant to manipulation of any single price feed.

Protection Fund Mechanics

The protection fund receives 10% of all trading fees (from the standard 2% DEX fee split). When a liquidation results in a deficit (liquidation price worse than bankruptcy price), the protection fund covers the difference. The fund's balance is publicly visible on-chain and reported through the proof-verifier service. If the fund balance falls below a configurable minimum threshold (default: $1M equivalent), new position opening is restricted until the fund recovers.

Auto-Deleveraging Priority

When the protection fund is insufficient to cover a liquidation deficit, the auto-deleveraging system reduces positions of opposing traders in priority order. Priority is determined by the profit-to-collateral ratio - traders with the highest unrealized profit relative to their collateral are deleveraged first. This ensures that the most profitable participants bear the cost proportionally, rather than spreading losses randomly.

Non-Custodial Guarantee: All collateral remains in user-controlled smart contract accounts. The margin engine, liquidation engine, and auto-deleveraging system operate through on-chain transactions that are validated by the 14-of-20 validator set. No single party can access or move user collateral outside of the defined protocol rules.

05Integration with JIL Ecosystem

The derivatives system extends JIL Sovereign's trading infrastructure with institutional-grade risk management.

DEX v5 (Execution Router)

Derivative orders flow through the execution-router, which determines whether to route to the retail batch auction lane or the RFQ lane based on order size and market conditions. Large derivative orders default to RFQ for better execution.

Market State Machine

The market-state service controls derivative market states. During STRESSED conditions, maximum leverage is reduced from 20x to 10x, and new position opening may be restricted. During HALTED, only position closing is permitted.

Wrapper Tokens

jBTC, jETH, and jUSDC are accepted as collateral for derivative positions. Haircut percentages are configured per asset - jUSDC at 0% haircut, jETH at 10%, jBTC at 15% - reflecting each asset's volatility profile.

Compliance API

Derivative trading requires accredited investor status in applicable jurisdictions. The compliance-api enforces jurisdiction-specific leverage limits and position size restrictions based on the trader's compliance zone.

06Prior Art Differentiation

JIL's derivatives system brings institutional risk management to on-chain trading for the first time.

FeaturedYdX v4GMX v2HyperliquidJIL Derivatives
Margin ModelCross-margin (single type)IsolatedCross-marginPortfolio margin (multi-type netting)
Derivative TypesPerpetuals onlyPerpetuals onlyPerpetuals + spotPerpetuals + futures + options
Cross-CollateralUSDC onlyMulti-asset (isolated)Multi-assetMulti-asset with haircuts
Protection FundInsurance fundGLP poolHLP vaultFee-funded (10% of all fees)
Mark PriceOracle + indexChainlinkInternal30-min TWAP, 5-source median
Auto-DeleveragingProfit-basedNot applicableProfit-basedProfit-to-collateral ratio
Novel Combination: No prior on-chain art combines portfolio margin netting across options, futures, and perpetuals in a single non-custodial system with cross-collateralization, a fee-funded protection mechanism, 5-source TWAP mark pricing, VaR-based position limits, and profit-to-collateral ordered auto-deleveraging.

07Implementation Roadmap

Phase 1
Q2 2026

Perpetual Contracts

Launch BTC and ETH perpetual contracts with cross-margin. Implement 30-min TWAP mark price oracle. Deploy protection fund with 10% fee allocation. Enable up to 20x leverage with VaR-based limits.

Phase 2
Q3 2026

Futures and Cross-Collateral

Add quarterly futures contracts. Enable cross-collateralization with jBTC, jETH, and jUSDC. Implement collateral haircut system. Deploy auto-deleveraging with profit-to-collateral priority ordering.

Phase 3
Q4 2026

Options and Portfolio Margin

Launch European-style options on BTC and ETH. Implement full portfolio margin netting across perpetuals, futures, and options. Deploy correlation-based cross-asset margin offsets.

Phase 4
Q1 2027

American Options and Analytics

Add American-style options with early exercise support. Deploy real-time portfolio risk analytics dashboard. Enable institutional API for programmatic position management and margin monitoring.

08Patent Claim

Claim 22: A system for on-chain derivatives trading with institutional risk management, comprising: portfolio margin netting that offsets positions across options, futures, and perpetual contracts to reduce combined margin requirements; cross-collateralization enabling a single collateral deposit to support positions across multiple derivative types; a protection fund absorbing liquidation losses to prevent socialized losses; mark price calculation using time-weighted average price over a configurable window; maximum leverage caps with position limits calculated using Value-at-Risk models at configurable confidence levels; and auto-deleveraging in priority order based on profit-to-collateral ratio when the protection fund is depleted.