![][image1] Whitepaper v1 July 2025 [1. General](#1-general) - [Network Gas Consumption Optimized](#network-gas-consumption-optimized) - [Special Market Maker Instructions](#special-market-maker-instructions) - [Zero Administrative Role](#zero-administrative-role) - [On-chain Referral Program](#on-chain-referral-program) - [Core Mechanics](#core-mechanics) - [Governance Parameters](#governance-parameters) - [Referrer Benefits](#referrer-benefits) - [Referee Benefits](#referee-benefits) - [On-chain Transactions Logging](#on-chain-transactions-logging) - [Token-2022 Support](#token-2022-support) - [Versioned Transactions Adoption](#versioned-transactions-adoption) - [Frontend Native Data Structure](#frontend-native-data-structure) - [Non-blocking Parallel Instrument Invocation](#non-blocking-parallel-instrument-invocation) - [Unified Client Account](#unified-client-account) - [Expandable Accounts](#expandable-accounts) - [Built-in Accounting and Market Statistics](#built-in-accounting-and-market-statistics) [2. Launchpad](#2-launchpad) - [Instrument Listing](#instrument-listing) - [Instrument Lifecycle](#instrument-lifecycle) [3. Protocol Token](#3-protocol-token) - [Governance](#governance) - [i. Voting Topics](#i-voting-topics) - [ii. Voting Mechanics](#ii-voting-mechanics) - [Utility](#utility) - [i. Fees Sharing](#i-fees-sharing) [4. Fees Policy](#4-fees-policy) - [Maker Rebates](#maker-rebates) [5. Trading Sections](#5-trading-sections) - [1. Spot](#spot) - [i. Hybrid AMM & orderbook](#hybrid-amm-orderbook) - [ii. Direct Swap](#direct-swap) - [2. Perpetual Futures](#2-perpetual-futures) - [i. Isolated Margin](#isolated-margin) - [ii. Underlying Asset Pricing and Leverage](#underlying-asset-pricing-and-leverage) - [iii. Chained Client Position Processing](#chained-client-position-processing) - [iv. Funding Payments](#iv-funding-payments) - [Funding Payment Recalculation](#funding-payment-recalculation) - [Per-Client Records](#per-client-records) - [v. Autonomous Perpetual Markets](#v-autonomous-perpetual-markets) - [vi. Client Fund Management](#vi-client-fund-management) - [vii. Leverage and Position Evaluation](#vii-leverage-and-position-evaluation) - [viii. Margin Calls and Liquidation](#viii-margin-calls-and-liquidation) - [ix. Withdrawing Funds](#ix-withdrawing-funds) - [x. Insurance Fund and Protocol Losses](#x-insurance-fund-and-protocol-losses) - [3. Traditional Derivatives](#3-traditional-derivatives) - [i. General](#i-general) - [a. Fixing Price](#a-fixing-price) - [b. Dynamic Trading Range](#b-dynamic-trading-range) - [Trading Range Calculation](#trading-range-calculation) - [Initialization for New Expirations](#initialization-for-new-expirations) - [Dynamic Daily Adjustment](#dynamic-daily-adjustment) - [c. Expiration Schedule](#c-expiration-schedule) - [d. Settlement Price](#d-settlement-price) - [ii. Futures](#ii-futures) - [i. Trading Model](#i-trading-model) - [iii. Options](#iii-options) - [a. Strikes Policy](#a-strikes-policy) - [b. Trading Models](#b-trading-models) - [1. Orderbook-Based Options Market](#1-orderbook-based-options-market) - [2. AMM-Based Options Market](#2-amm-based-options-market) - [iv. Collateral Policy](#iv-collateral-policy) # # 1. General Deriverse is a fully decentralized, permissionless trading platform deployed on Solana, supporting spot trading, perpetual futures, traditional fixed maturity futures, options, and a tokenized‑asset launchpad. At its core lies a novel, fully on‑chain central limit orderbook, which aggregates liquidity and enables low‑latency price discovery across all product lines. By combining advanced on‑chain matching logic with comprehensive derivatives support, Deriverse delivers institutional‑grade market infrastructure in a trustless and composable environment. 1. ## Network Gas Consumption Optimized The Deriverse Protocol is implemented with a focus on minimizing compute-unit consumption, eschewing framework abstractions such as Anchor to avoid the associated performance overhead. By leveraging native Solana program interfaces and hand-optimized instruction layouts, Deriverse maximizes on-chain throughput and reduces per-transaction costs. This approach aligns with Solana’s best practices for advanced protocols – prioritizing execution efficiency over development-time conveniences – to deliver both higher scalability and lower client gas expenditure. 2. ## Special Market Maker Instructions To streamline two‑sided quoting and minimize on‑chain overhead, Deriverse introduces a dedicated instruction for market makers that atomically replaces both bid and ask quotes in a single transaction. By consolidating quote updates into one composite call, this mechanism significantly reduces compute‑unit consumption and transaction fees compared to sequential order modifications. The atomicity of the operation ensures that bid-ask spreads remain coherent during updates, preventing interim states that could expose the book to adverse selection. This design empowers professional liquidity providers to maintain tighter spreads and deeper order depth with minimal gas expenditure. 3. ## Zero Administrative Role Deriverse employs a zero‑admin design philosophy: the on‑chain administrative account is invoked only once during Protocol bootstrap to initialize core parameters. After deployment, no further administrative privileges exist – no upgrades, freezes or parameter overrides can be executed outside of the prescribed on‑chain governance framework. All subsequent operations – trading, settlement, parameter updates and revenue distribution – are conducted by immutable smart‑contract logic or through voting, ensuring maximal trustlessness, permanence, and resistance to unilateral intervention. 4. ## On-chain Referral Program Deriverse’s on‑chain referral program leverages a single‑tier architecture to incentivize both new and existing users through transparent, real‑time rewards. By denominating all incentives in USDC and integrating automatic fee discounts, the program ensures seamless alignment of stakeholder interests and permissionless on‑chain settlement within Deriverse client accounts. By removing intermediaries and settling rewards directly on‑chain, Deriverse’s referral program fosters organic growth, enhances liquidity, and delivers a seamless incentive experience for both referrers and referees. ### Core Mechanics The referral program employs a single‑tier structure, whereby each participant may generate a unique referral link that entitles them to rewards from direct referrals only. All incentive payouts are calculated and distributed in USDC, eliminating currency conversion friction. Upon completion of each eligible trade, referral rewards are credited instantly to the referrer’s account, and any applicable fee discounts are applied automatically at order execution. Crucially, both rewards and discounts settle on‑chain within Deriverse, without the need for off‑chain reconciliation, and there are no minimum volume requirements – members begin earning from their very first trade. ### Governance Parameters Key variables governing the referral program are subject to Protocol governance. These include the overall program duration, the validity period of referral links, the maximum taker fee discount available to referees, and the rewards ratio that determines the portion of net trading fees allocated to referrers. ### Referrer Benefits Referrers receive a pro rata share of all trading fees generated by their referees, net of protocol rebates. These USDC‑denominated rewards accrue continuously and are posted immediately upon each qualified transaction. The on‑chain nature of the program affords transparent accounting, enabling referrers to verify fee generation and reward distribution directly on the blockchain. ### Referee Benefits Referred users enjoy preferential fee treatment from their very first trade, receiving an immediate discount of up to `10%` on taker fees. This benefit extends across all Deriverse trading venues – including spot, perpetual futures, traditional futures, and options – without requiring any additional steps beyond entering a valid referral link. 5. ## On-chain Transactions Logging Deriverse’s smart contract emits structured transaction logs as on-chain events and data feeds, formatted for immediate consumption by client applications – whether web frontends or SDK-based services in TypeScript or Rust – eliminating the need for external indexing or supplementary data transformations. 6. ## Token-2022 Support Deriverse embraces the Solana Token-2022 standard, enabling the use of it across every module of the protocol. By supporting Token-2022 from day one, Deriverse ensures compatibility with the latest token capabilities and simplifies future upgrades. 7. ## Versioned Transactions Adoption To reduce transaction size and accelerate signature verification, Deriverse publishes and maintains on‑chain Solana Address Lookup Tables (ALTs). These pre-initialized ALTs allow clients to reference frequently used program addresses efficiently. Versioned transactions enabled by ALTs decrease transaction payload size and network overhead. 8. ## Frontend Native Data Structure For seamless integration with decentralized applications, Deriverse emits structured data payloads directly from its smart contracts that map one‑to‑one with common frontend schemas. Whether consumed via any modern web framework, client applications can decode and render market state, orderbooks, and account balances without additional transformation layers or complex dependencies. 9. ## Non-blocking Parallel Instrument Invocation The Protocol introduces the capability to invoke multiple Instrument Accounts in parallel without blocking access. By leveraging Solana’s transaction parallelization model, Deriverse enables non‑blocking, concurrent access to multiple instrument accounts within a single block. This design allows complex workflows (i.e. cross-instrument hedging or batch order placement) to execute in parallel, improving throughput and minimizing latency spikes during periods of heightened activity. 10. ## Unified Client Account Deriverse Protocol allows the use of a single Client Account for all Instruments without the need of creating per-Instrument Client Accounts. Instead of requiring separate on-chain accounts for each spot market, Deriverse provisions a single Spot Client Account per user. This unified account model simplifies wallet management, reduces rent costs, and streamlines user operations in the spot market. 11. ## Expandable Accounts Utilizing Solana’s *realloc* capability, Deriverse implements expandable accounts, enabling dynamic growth of market and orderbook storage as usage demands increase. Rather than preallocating large, high-rent accounts at initialization, the protocol adds rent-exempt space incrementally, ensuring resource efficiency and preventing wasted on-chain allocation. 12. ## Built-in Accounting and Market Statistics Deriverse integrates native on-chain accounting and market-statistics modules to provide immutable, transparent records for both derivatives and spot trading. The protocol maintains comprehensive ledger entries for perpetual futures and traditional derivatives entirely on-chain. All margin movements, funding payments, trade executions, and settlement events are recorded in smart-contract storage, enabling verifiable audit trails and simplifying client reconciliation without reliance on off-chain databases. Within the spot market, Deriverse continuously updates and persistently writes trade-level price data on-chain. By aggregating these records, clients can reconstruct interval-based candle histories (open, high, low, close) directly from on-chain events. This built-in capability eliminates the need for centralized data feeds or external indexers, ensuring that all charting and historical analysis draw from a single source of truth. # 2. Launchpad 1. ## Instrument Listing To list a new instrument in the spot market, a participant specifies three parameters: the asset token, the base currency token, and the initial listing price. Any Deriverse participant is allowed to list an instrument, and there is no cap on the total number of instruments. At present, Deriverse supports a single base currency – USDC (Solana Mainnet token address: `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`). 2. ## Instrument Lifecycle Each instrument commences on the spot trading venue. When on-chain metrics – primarily trading volume and liquidity depth – exceed predefined thresholds, any participant may trigger the instrument upgrade process. This procedure seamlessly migrates the instrument from spot-only trading to the perpetual futures market and subsequently to traditional fixed maturity derivatives, thereby unlocking additional market functionalities and hedging instruments as liquidity conditions warrant. # 3. Protocol Token 1. ## Governance 1. ### Voting Topics Deriverse employs a structured on‑chain governance process to calibrate key protocol parameters via sequential voting topics. Each topic corresponds to a single parameter, allowing DRVS token holders to incrementally adjust system settings within predefined bounds. At launch, Deriverse defines a suite of governance parameters – namely the base fee rates for spot, perpetual, futures, and options markets; the pool ratio target for spot pools; the perpetual margin‑call penalty rate; and the prepayment amount required to attain the maximum discount. Each parameter is initialized to a predetermined value and bounded by clearly specified minimum and maximum limits, with incremental adjustments governed by a fixed step size. These placeholder values will be finalized prior to mainnet deployment. 2. ### Voting Mechanics Deriverse’s governance topics are proposed and decided sequentially: each parameter adjustment is presented as a distinct voting topic, and a new vote only begins once the previous topic has concluded. Only DRVS tokens deposited in on‑chain Deriverse accounts (excluding DRVS locked in open orders) are eligible to participate, and each account may cast exactly one vote per topic. Voting weights are calculated at the moment a topic is initiated, in proportion to each participant’s eligible DRVS balance. Participants choose one of three options – Increase by (increment the parameter by its defined step size), Decrease by (decrement by the same step), or Leave Unchanged. To ensure parameter values remain within established bounds, the Increase by or Decrease by options are automatically disabled when a parameter has reached its pre‑set maximum or minimum, respectively. 2. ## Utility 1. ### Fees Sharing All revenues generated by the Deriverse protocol are accrued to staked DRVS token holders. By depositing DRVS tokens into the protocol’s staking contract, participants become eligible for a pro rata share of platform fees and earnings. Distributions are performed on-chain in accordance with each staker’s relative stake balance, thereby aligning network incentives and ensuring transparent, permissionless revenue sharing. # 4. Fees Policy The governance is designed to allow traders to have a hand in developing and updating the platform to continue its success in a vein that benefits them, so fee structure and platform structure can change if people feel it\'s warranted \- essentially the DEX will be owned by the traders and directed by them. To reduce client taker fees, clients can choose to deposit up to `$50k` into a Deriverse smart contract. Based on the size of this contribution, they will be eligible for a taker fee discount, up to `75%` of the base taker fee of, for example, `5bps`. In bps terms, this can be up to `1.25bps` per transaction. These taker fees will be deducted from the contribution locked in the smart contract. The contribution will be withdrawable in `3` months from depositing. The fee discount formula is based on the prepayment amount relative to a predefined threshold for maximum discount eligibility. The relationship is piecewise: 1. Condition 1: If the prepayment amount (`fees\_prepayment`) is less than the threshold (`prepayment\_for\_max\_discount`), the discount is proportional to the ratio of the prepayment amount to the threshold. The proportionality factor is `0.75`, indicating a `75%` maximum discount. *fees\_discount = 0.75 * (fees\_prepayment / prepayment\_for\_max\_discount)* 2. Condition 2: If the prepayment amount meets or exceeds the threshold, the discount is fixed at `75%`. *fees\_discount = 0.75* ##### Maker Rebates All Deriverse clients acting as liquidity makers are eligible for a maker rebate. Maker rebates are calculated according to the following formula: *rebates\_rate = rebates\_ratio * base\_fee\_rate* The base fee rates of this model are governed by the token governance framework. The rebates ratio is hardcoded at Protocol initialization to `0.125`. Other parameter might be initially set as per example to: base\_fee\_rate = `0.0005` *rebates\_rate = rebates\_ratio * base\_fee\_rate* *rebates\_rate = 0.125 * 0.0005* *rebates\_rate = 0.0000625* # 5. Trading Sections 1. ## Spot 1. ### Hybrid AMM & orderbook Decentralized exchanges (DEXs) employing AMMs (e.g., Uniswap V2) have democratized liquidity provision but suffer from slippage when trading large volumes in thin pools. Conversely, centralized orderbooks offer precision execution but can lack depth without active market-making. Deriverse bridges these paradigms via a hybrid AMM-orderbook model. Traders access an AMM’s continuous liquidity up to existing orderbook quotes, then consume on-chain limit orders, and finally resume against the AMM up to a user-defined price bound. Let’s have a look at how Deriverse combines AMMs and traditional orderbooks in its spot markets. Imagine a trading pool for the *SOL/USDC* pair with *$10,000$* *SOL* and *$2,000,000$* *USDC*. The current price is calculated as follows: *$$SOL/USDC = 2,000,000 / 10,000 = 200$$* Now, let\'s say you want to buy *100* *SOL*. The amount of *USDC*, denoted as *S*, that you\'d need to pay with can be found using the equation: *$$2,000,000 / 10,000 = (2,000,000 + S) / 9,900$$* Solve it, and you get: *$$S = 2,000,000 * 10,000 / 9,900 - 2,000,000 = 20,202.0202$$* This tells us that the cost per SOL would be *$202.0202$*, and the new market price becomes: *$$ (2,000,000 + 20,202.0202) / 9,900 = 204.061 $$* **How does this play out on Deriverse?** Assume we\'re working with the same initial pool – *$10,000$* *SOL* and *$2,000,000$* *USDC* – and the following orderbook: **Ask:** | Price | Amount | | :---- | :---- | | 202.00 | 1 | | 200.50 | 10 | **Bid:** | Price | Amount | | :---- | :---- | | 199.50 | 1 | | 199.00 | 20 | | 198.50 | 1 | You decide to place a limit order for 100 SOL at 201.40. Without an AMM, you\'d buy 10 SOL at 200.50, and the remaining 90 SOL would be placed in the orderbook at 201.40. However, if an AMM is in play, you\'d first try to execute trades through the AMM up to the first sell quote, which is 200.50. Let K be the product of the SOL and USDC amounts in the pool. In this case, the SOL amount you\'d trade up to a price of 200.50 would be: *$$10,000 - K / 200.5 = 12.48$$* And the USDC you\'d spend would be: *$$K / 9,987.52 - 2,000,000 = 2,498.40$$* So, you\'re left with 87.5233887 SOL and have already spent 2,498.43946 USDC. Since the remaining order size exceeds 10, you can hit an ask at 200.50 from the orderbook. **Summary:** * Bought SOL: $12.4766113 + 10 = 22.4766113$ * Spent USDC: $2,498.43946 + 10 * 200.50 = 4,503.43946$ You can then trade against the AMM up to your limit price of 201.40. The SOL you\'d trade up to this price would be: *$$9,987.52 - K / 201.4 = 22.34$$* And the USDC you\'d spend would be: *$$K / 9,965.18 - 2,002,498.40 = 4,489.30$$* **Finally:** * From 200.00 to 200.50 via AMM: received 12.4766113 SOL, spent 2,498.43946 USDC * Accepted order at 200.50: received 10 SOL, spent 2,005.00 USDC * From 200.50 to 201.40 via AMM: received 22.34070405 SOL, spent 4,489.353158 USDC **Overall:** * Bought – 44.81731535 SOL * Spent – 8,992.792618 USDC * Average purchase price – 200.6544245 * Remaining order – 55.18268465 SOL **Final orderbook:** **Ask:** | Price | Amount | | :---- | :---- | | 202.00 | 1 | **Bid:** | Price | Amount | | :---- | :---- | | 201.40 | 55.18 | | 199.50 | 1 | | 199.00 | 20 | | 198.50 | 1 | SOL left in pool – 9,965.182685 USDC left in pool – 2,006,987.793 The blend of AMMs and traditional orderbooks on Deriverse offers the best of both worlds. This hybrid approach makes trading more flexible and efficient. 2. ### Direct Swap Deriverse’s spot market enables clients to execute trades directly from their Solana wallets without prior on-chain deposit into the protocol. By supporting Immediate or Cancel (IOC) order placement, the system routes requests through a relay that verifies available wallet balances in real-time, submits the IOC order to the orderbook, and returns any unfilled quantity instantly. This design minimizes friction by eliminating the need for pre-depositing funds into Deriverse smart contracts, while preserving atomic execution guarantees and preventing unintended order persistence. 2. ## Perpetual Futures 1. ### Isolated Margin In Deriverse v1, the perpetual futures engine exclusively employs an isolated margin model. Each futures position is collateralized independently, with margin requirements and liquidation thresholds scoped to the individual contract. This architecture confines risk exposure to the capital allocated for a specific position, preventing cross-asset contagion and simplifying collateral management for traders. 2. ### Underlying Asset Pricing and Leverage Deriverse employs a unified Underlying Asset Price for both perpetual futures and traditional derivatives, serving two primary functions: 1. Perpetual Futures: Determination of funding rate payments and real-time portfolio valuation for margin and liquidation thresholds; 2. Traditional Derivatives: Calculation of the contractual settlement price upon maturity. The price feed may originate from an external Oracle, provided it supports the given asset, or from Deriverse’s native spot market. Given that all major liquid assets maintain on-chain markets within the Solana ecosystem and that Deriverse’s spot venue is subject to direct arbitrage, Deriverse intends to utilize oracle prices during the platform’s initial launch phase. Thereafter, pricing will transition to rely exclusively on on-chain spot execution data. Deriverse’s spot market does not natively offer margin or leverage. Synthetic leverage can, however, be constructed by integrating existing on-chain lending protocols (e.g., Kamino, Save (formerly Solend)). For perpetual futures and fixed maturity derivatives, Deriverse embeds leverage directly into the product design without requiring external funding facilities: 1. Perpetual Futures: Traders interact with an internal settlement token pegged to the Underlying Asset Price. Since this token is confined to the Deriverse platform, it can be issued against collateral. For example, a trader may deposit `$100` of collateral and obtain exposure equivalent to `$1,000` of the underlying asset. If the trader’s cumulative profit and loss (realized + unrealized) approaches the collateral amount, the platform automatically initiates position liquidation. 2. Traditional Futures: Tradeable contracts are constrained within a predetermined trading range. Profit and loss cannot exceed the boundaries of this range. For instance, with a trading range of `[100, 110]`, purchasing one futures contract at `$105` USD implies a maximum collateral requirement of: $$Collateral = 105 - 100 = 5 \text{ USD}$$ Hence, the trader secures `$105` worth of exposure by posting just `$5` in collateral. This embedded leverage framework ensures predictable risk management and maintains platform self‑sufficiency without external margining systems. 3. ### Chained Client Position Processing Deriverse’s perpetual futures engine employs a chained position processing workflow to maintain consistent funding and risk management across all market participants. Whenever an on-chain interaction occurs against a specific perpetual futures instrument, the system automatically initiates a sequential evaluation of outstanding funding-rate obligations and margin conditions for multiple client positions. By coupling funding and liquidation checks immediately after every transaction, Deriverse preserves on-chain consistency, minimizes latency in risk adjustments, and safeguards the protocol against cascading defaults. 4. ### Funding Payments For each perpetual futures instrument, we maintain a Funding Rate Index (FRI), initialized to zero, as well as a Funding Rate Index Last Update Time (FRILUT), stored as a Unix timestamp. The initial value of FRILUT corresponds to the moment when the perpetual futures instrument was first created. Whenever any client interacts with a given perpetual futures instrument, we recompute the FRI according to the following formula: *$$FRI = FRI + (current \ time - FRILUT) / 86400 * (P^{perp} - P^{asset})$$* Here: * FRI denotes the current Funding Rate Index (prior to the update); * FRILUT denotes the timestamp of the last FRI update; * current time denotes the present Unix timestamp; * `86400` is the number of seconds in one day; * $P^{perp}$ is the perpetual futures price of the underlying asset; * $P^{asset}$ is the spot or oracle price of the same asset. #### Funding Payment Recalculation Funding Payment amounts F for individual clients are recalculated in strict queue order. This queue is stored in the smart contract account `PERP\_REBALANCE\_TIME\_TREE`. Recalculation occurs automatically whenever any "active" operation is performed on the perpetual futures instrument (for example, via the instructions *place\_new\_order*, *withdraw\_from\_perp*, or *perp\_quotes\_replace*). A client who triggers such an operation is referred to as an active client. When an active client’s operation initiates a recalculation, the system processes the active client’s F and subsequently exactly the first `25` clients in the queue (ordered from oldest to most recent by their Last Funding Payment Time (LFPT)). If a client’s position size is zero, that client is not present in the queue. For any passive client (i.e., one who has not executed active operations), their Funding Payment is only recomputed if more than `300` seconds (`5` minutes) have elapsed since their last LFPT. #### Per-Client Records In addition to LFPT, each client maintains a record called Last Funding Rate (LFR), which stores the value of FRI at the time of that client’s most recent LFPT. When it is time to compute that client’s Funding Payment, we apply: *$$F = -Q^{perp} * (FRI - LFR)$$* where: * $-Q_{perp}$ denote the notional size of the client’s open perpetual futures position (with sign indicating long vs. short); * FRI denote the current Funding Rate Index (after any necessary updates); and * LFR denote the Funding Rate Index recorded at the client’s last LFPT. A negative value of F implies that the client must pay funding; a positive value implies that the client will receive funding. 5. ### Autonomous Perpetual Markets Each perpetual market operates as an autonomous system, interacting with other parts of the protocol solely through the input and output of client funds. This design ensures that each market functions independently, providing a robust and modular trading environment. In the current version of the protocol, the oracle price serves as the price source for calculating funding rates and initiating margin call procedures. However, this setup is flexible – future iterations of the protocol can easily replace the oracle price with a spot market price for enhanced accuracy and decentralization. 6. ### Client Fund Management Client funds are managed with simplicity and transparency. Deposits and withdrawals occur directly from the client’s main account on the platform. The settlement currency for all perpetual markets is the corresponding stablecoin, such as USDC, ensuring stability and predictability in transactions. When trading in perpetual markets, clients have access to the following key data points: * *perps*: The number of futures in the client’s position. * *in\_orders\_perps*: The number of futures in open sell orders. * *funds*: The client’s available funds in the settlement currency. * *in\_orders\_funds*: The client's funds locked in open buy orders. The client’s full position is calculated as: *$$perps + in\_orders\_perps$$* Similarly, the client’s full funds are: *$$funds + in\_orders\_funds$$* 7. ### Leverage and Position Evaluation Clients can trade with leverage, which in the current implementation of the protocol ranges from `1x` to `10x`. To ensure capital adequacy, the protocol evaluates the client’s position using the following formula: *$$evaluation = (perps + in\_orders\_perps) * price + funds + in\_orders\_funds$$* When a new order is submitted, the smart contract checks whether the client’s capital is sufficient using this inequality: *$$evaluation * leverage >= -min(perps * price, funds)$$* If the inequality holds, the transaction is registered. Otherwise, the system returns an insufficient funds error. 8. ### Margin Calls and Liquidation After a client’s position changes, the protocol calculates a critical price – the price at which the client’s evaluation would reach zero. This is determined using the following formulas: TBD If the market price for a long position drops below: *$$critical\_price * 33 / 32$$* or if the market price for a short position rises above: *$$critical\_price * 31 / 32$$* a margin call is triggered, and the client’s position is forcibly closed. 9. ### Withdrawing Funds Clients can withdraw funds from the perpetual market based on the following formula: *$$available\_funds = min(((perps + in\_orders\_perps) * price + in\_orders\_funds) * (leverage - 1) / leverage + funds, (perps + in\_orders\_perps) * price + in\_orders\_funds + perps * price / leverage + funds)$$* If there are unclosed margin calls, the withdrawal process becomes more complex. In such cases, the protocol uses the last spot price before the margin call to calculate the available funds. The client can withdraw the minimum value between the funds calculated using this price and the current market price. 10. ### Insurance Fund and Protocol Losses To protect the protocol and its users, we’ve implemented an insurance fund. When a client’s position is forcibly liquidated, they pay an increased commission of `1%`, which (after rebates) is allocated to the insurance fund. If a loss occurs during liquidation, it is covered by the insurance fund. However, if the insurance fund is insufficient, the loss is distributed proportionally among market participants holding positions opposite to the liquidated position. This ensures that the protocol remains solvent and fair, with all transactions recorded on-chain for transparency. 3. ## Traditional Derivatives 1. ### General 1. #### Fixing Price Between `07:55` and `08:00` UTC each trading day, Deriverse’s smart contract calculates the volume‑weighted average of all executed trades during this interval and designates the result as the Fixing Price. In the event that no trades occur within the window, the Fixing Price defaults to the price of the most recent transaction. This on-chain fixation mechanism ensures a consistent, tamper-resistant reference price for subsequent protocols, including daily trading range computations and derivative settlements. 2. #### Dynamic Trading Range ##### Trading Range Calculation Let: * $p$ denote the underlying asset price (`fixing\_price`); * $v$ denote the historical daily volatility, updated on‑chain after each trade; * $t$ denote the time to expiration, in days. Define the volatility-adjustment factor: *$$\delta = e^{3.5 v \sqrt{t} + 1.5v}$$* The resulting suggested trading bounds are then: *$$suggested\_min\_px = \frac{p}{\delta}$$* *$$suggested\_max\_px = p\delta$$* ##### Initialization for New Expirations When a derivative instrument with a fresh expiration date is listed, its active trading range is initialized to the full suggested bounds: *$$suggested\_min\_px$$* *$$suggested\_max\_px$$* ##### Dynamic Daily Adjustment At `08:00` UTC each trading day, the smart contract recomputes the trading range. Let: * $old\_min\_px$, $old\_max\_px$ – previous range bounds * $suggested\_min\_px$, $suggested\_max\_px$ – newly range bounds The updated bounds $new\_min\_px$, $new\_max\_px$ follow the logic: ``` if old\_min\_px <= suggested\_min\_px && old\_max\_px >= suggested\_max\_px { new\_min\_px = suggested\_min\_px; new\_max\_px = suggested\_max\_px; } else { let old\_width = old\_max\_px - old\_min\_px; let suggested\_width = suggested\_max\_px - suggested\_min\_px; if old\_width <= suggested\_width { new\_min\_px = old\_min\_px; new\_max\_px = old\_max\_px; } else if old\_min\_px > suggested\_min\_px { new\_min\_px = old\_min\_px; new\_max\_px = old\_min\_px + suggested\_width; } else { new\_min\_px = old\_max\_px - suggested\_width; new\_max\_px = old\_max\_px; } } ``` This adaptive mechanism calibrates trading limits to reflect market volatility while preventing abrupt, disorienting adjustments for participants. The Dynamic Trading Range mechanism ensures consistent, volatility-aware price boundaries for all fixed maturity derivatives on Deriverse. 3. #### Expiration Schedule Each instrument has `6` simultaneously existing expiration dates, which corresponds to `2` one week durations and `4` four weeks durations. On Mondays and Wednesdays, one week duration expirations are settled. On Friday, four week duration expirations are settled. Derivatives are rolled-over once expired. Expiration time is set to `08:00` UTC. 4. #### Settlement Price Upon the expiration date, the calculation of profits and losses is based on the corresponding Fixing Price. If this price goes beyond the Trading Range bound, the settlement price equals the corresponding Trading Range bound. 2. ### Futures 1. #### Trading Model The mechanics of Futures Trading are based on the concept of a traditional Orderbook. When opening (building up) a position in Futures Trading, the required collateral is calculated as the difference from the transaction price to the corresponding Trading Range bound (the lower bound for a long position and the upper bound for a short position). When closing a Futures position, the Client returns the Collateral adjusted for the difference between the opening price and closing price. When the Trading Range narrows for the Client, the Collateral size is automatically recalculated for the next transaction. The Client can also send an instruction to the Protocol to recalculate the amount of Collateral required. 3. ### Options 1. #### Strikes Policy Upon listing a new options instrument, Deriverse establishes a strike price grid spanning the initial trading range. This grid is defined by a predetermined price increment, ensuring strike prices are uniformly distributed. The initial grid comprises between `20` and `50` strikes, all falling within the established trading range. As market conditions evolve and the trading range contracts, the protocol monitors the count of active strikes – those still within range. If this count falls below `20`, the system dynamically injects additional strikes: for each adjacent pair of remaining strikes, a new midpoint strike is calculated and added to the grid, restoring the minimum depth without enlarging the original range. 2. #### Trading Models Deriverse is currently evaluating two alternative architectures for on-chain options execution. Only one approach – either the discrete orderbook model or the continuous AMM model – will be selected for initial deployment based on criteria such as liquidity efficiency, pricing accuracy and operational resilience. Final governance selection between the orderbook and AMM architectures will follow a comprehensive review of testnet performance metrics, risk evaluations, and community feedback. 1. ##### Orderbook-Based Options Market In this paradigm, each strike price is represented by an independent on-chain orderbook. Participants submit limit orders for calls and puts at their chosen strikes, and an on-chain matching engine executes trades according to price-time priority. This design delivers transparent price discovery, granular control over exposure, and compatibility with existing on-chain orderbook interfaces. 2. ##### AMM-Based Options Market Deriverse’s AMM-based options framework relies on a single, evergreen liquidity pool per underlying asset, removing the need for per-strike orderbooks and ensuring uninterrupted liquidity across all expirations. Liquidity providers deposit funds into the pool and receive fungible LP tokens, representing their pro rata share of the pool’s combined payoff obligations for calls and puts across every strike and maturity. These LP tokens are tradable in the spot section via the on-chain orderbook, enabling dynamic entry and exit by any market participant. The core of the AMM’s on-chain pricing engine is a truncated probability density function (PDF) computed over a volatility-aware trading range. Primary inputs include: * Underlying price (Fixing Price): The daily VWAP-set reference price * Variance parameter (D): A game-theoretic volatility metric that adapts in response to market sentiment * Time to expiration: Expressed in days for each option series * Aggregate exposure: The open interest distribution by strikes Using a Student’s distribution centered on the current underlying asset price with variance D, the AMM integrates only over the finite trading range to guarantee convergence and computational tractability. To mitigate directional risk, the AMM maintains a delta hedge in the fixed-maturity futures market for the same maturity date. In contrast to the spot section, the AMM pool accumulates a portion of trading fees not only from option contracts but also from fixed-maturity futures. 4. ### Collateral Policy Deriverse mandates that all client exposures be fully collateralized to guarantee coverage of their total risk. Traditional derivatives instruments – both futures and options – must maintain posted collateral equal to or greater than the potential loss estimated under standardized risk models. To optimize capital efficiency while preserving protocol safety, positions sharing the same expiration date are aggregated into a single margin group. Collateral requirements for this group are computed based on the combined risk across all futures and option contracts with that maturity, accounting for mark-to-market fluctuations and stress scenarios. By enforcing a unified, risk-based collateral calculation per expiry, Deriverse ensures that each client’s account remains solvent under extreme market movements and that systemic counterparty risk is fully mitigated. [image1]: