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.
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.
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
| Component | Function | Parameters |
|---|---|---|
| Margin Engine | Calculates net margin requirement across all positions in a portfolio | VaR at 99% confidence, 1-day horizon |
| Cross-Collateral Manager | Maps a single collateral deposit to margin requirements across derivative types | Haircut per collateral asset (0-30%) |
| Mark Price Oracle | Computes manipulation-resistant mark price for each contract | 30-minute TWAP, 5-source median |
| Liquidation Engine | Monitors margin ratios and triggers liquidations when maintenance margin breached | Maintenance margin = 50% of initial |
| Protection Fund | Absorbs liquidation losses to prevent socialized loss distribution | 10% of all trading fees accrued |
| Auto-Deleveraging | Reduces opposing positions when protection fund insufficient | Priority 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 Type | Max Leverage | Position Limit Method | Funding Interval |
|---|---|---|---|
| Perpetual Contracts | 20x | VaR-based at 99% confidence | 8 hours |
| Futures (Quarterly) | 20x | VaR-based at 99% confidence | N/A (settlement at expiry) |
| Options (European) | N/A (premium-based) | Notional cap per account | N/A |
| Options (American) | N/A (premium-based) | Notional cap per account | N/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.
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.
| Feature | dYdX v4 | GMX v2 | Hyperliquid | JIL Derivatives |
|---|---|---|---|---|
| Margin Model | Cross-margin (single type) | Isolated | Cross-margin | Portfolio margin (multi-type netting) |
| Derivative Types | Perpetuals only | Perpetuals only | Perpetuals + spot | Perpetuals + futures + options |
| Cross-Collateral | USDC only | Multi-asset (isolated) | Multi-asset | Multi-asset with haircuts |
| Protection Fund | Insurance fund | GLP pool | HLP vault | Fee-funded (10% of all fees) |
| Mark Price | Oracle + index | Chainlink | Internal | 30-min TWAP, 5-source median |
| Auto-Deleveraging | Profit-based | Not applicable | Profit-based | Profit-to-collateral ratio |
07Implementation Roadmap
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.
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.
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.
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.