{"version": "1.0", "model": "HYBRID_HTLC_SPOT_AND_MARGIN_VAULT_PERPS", "ledger_buckets": {"spendable": "Unencumbered balance available for new orders or immediate withdrawal.", "reserved_orders": "Atomically locked by active resting CLOB orders; released strictly on cancel/fill remainder.", "reserved_margin": "Initial margin backing open linear perp positions.", "pending_settlement": "Matched spot base/quote awaiting L1 HTLC confirmation and preimage reveal.", "pending_withdrawal": "Signed exit requests queued for L1 broadcast; excluded from spendable and order margin.", "credit_total": "Exact sum: spendable + reserved_orders + reserved_margin + pending_settlement + pending_withdrawal."}, "spot_settlement": {"individual_path": "Bilateral P2WSH / P2SH-FORKID Atomic HTLC (OP_SHA256 + OP_CHECKLOCKTIMEVERIFY). Both locks are verified on-chain (asset, recipient script/address, amount, shared hashlock H, confirmations >= finality_confs, refund timelocks T_A > T_B) before preimage reveal.", "batch_netting_path": "Eligible P2WSH & P2SH-FORKID pairs (QWEN-BTC, BCH-BTC, FB-BTC, DGB-BTC, LANT-QWEN) may net multilateral matched fills over an epoch window into net bilateral HTLC legs; if any batch leg stalls or reorgs, the batch falls back to per-trade HTLC recovery.", "finality_conditions": {"BTC": {"finality_confs": 2, "reorg_depth_watch": 6, "htlc_tier": "P2WSH"}, "QWEN": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "BCH": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2SH-FORKID"}, "FB": {"finality_confs": 12, "reorg_depth_watch": 24, "htlc_tier": "P2WSH"}, "DGB": {"finality_confs": 20, "reorg_depth_watch": 40, "htlc_tier": "P2WSH"}, "NMC": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "SYS": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "LANT": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "XAU": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "XAG": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "XPT": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "XPD": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "XCU": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "USD": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "JPY": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "CNY": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "EUR": {"finality_confs": 2, "reorg_depth_watch": 6, "htlc_tier": "ORACLE_INDEX"}, "GBP": {"finality_confs": 2, "reorg_depth_watch": 6, "htlc_tier": "ORACLE_INDEX"}, "CHF": {"finality_confs": 2, "reorg_depth_watch": 6, "htlc_tier": "ORACLE_INDEX"}, "LTC": {"finality_confs": 6, "reorg_depth_watch": 12, "htlc_tier": "P2WSH"}, "DOGE": {"finality_confs": 12, "reorg_depth_watch": 24, "htlc_tier": "P2SH"}}, "unavailability_recovery": "If counterparty or venue goes offline after Lock A, taker reclaims 100% of UTXO unilaterally on L1 via the OP_ELSE CLTV refund branch once chain time >= T_A."}, "perp_collateral": {"custody": "Venue-escrowed L1 collateral vault with BIP340-signed deposit receipts, deterministic WAL event log, and real-time balance proofs.", "authorization": "Orders, cancels, amends, and withdrawals require valid BIP340 Schnorr signatures from the account's registered x-only pubkey or scoped sub-key.", "venue_exit_and_halt_policy": "During an index outage or venue halt, instruments switch to HALTED or SETTLE_ONLY (new risk-increasing orders rejected, reduce-only closes permitted at last verified mark). If an instrument is permanently retired, open perp positions settle at the final verified index price and remaining spendable collateral exits to the account's signed L1 payout address.", "shortfall_policy": "Liquidation closes positions against the CLOB up to bankruptcy price -> any residual deficit draws from the segregated Insurance Fund -> if Insurance Fund is depleted, deterministic Auto-Deleveraging (ADL) closes opposing positions ranked by unrealized profit ratio * effective leverage."}}