Autodeleveraging: Impossibilities and Optimization Tarun Chitra Abstract Autodeleveraging (ADL) is a last-resort loss socialization mechanism for perpetual futures venues. It is triggered when solvency-preserving liquidations fail. Despite the dominance of perpetual futures in the crypto derivatives market, with over $60 trillion of volume in 2024, there has been no formal study of ADL. In this paper, we provide the first rigorous model of ADL. We prove that ADL mechanisms face a fundamental trilemma : no policy can simultaneously satisfy exchange solvency , revenue , and fairness to traders. This impossibility theorem implies that as participation scales, a novel form of moral hazard grows asymptotically, rendering ‘zero-loss’ socialization impossible. On the positive side, we show that three classes of ADL mechanisms can optimally navigate this trilemma to provide fairness, robustness to price shocks, and maximal exchange revenue. We analyze these mechanisms on the Hyperliquid dataset from October 10, 2025, when ADL was used repeatedly to close $2.1 billion of positions in 12 minutes. By comparing our ADL mechanisms to the one used in practice on Hyperliquid and Binance, we demonstrate empirically that Hyperliquid’s production queue overutilized ADL by ≈ 28 × \approx 28\times relative to our optimal policy, imposing roughly $653 million of unnecessary haircuts on winning traders. This comparison also suggests that Binance overutilized ADL far more than Hyperliquid. Our results both theoretically and empirically demonstrate that optimized ADL mechanisms can dramatically reduce losses of trader profitability while maintaining exchange solvency. 1 Introduction Perpetual futures (or simply, perpetuals) are by far the most popular crypto derivatives contract. These contracts allow for duration-independent hedging of cryptocurrencies, such as Bitcoin, Ethereum or Solana. That is, unlike traditional future contracts, perpetuals are not subject to a fixed expiration date. Instead, perpetuals are similar to contracts for difference , where market participants repeatedly send each other payments depending on how the spot price trades relative to the futures price. For instance, if the spot price is higher than the futures price, then traders with short futures positions pay the traders with long futures until the prices are equalized. We note that while Robert Shiller’s 1993 proposal for perpetual futures provides the genesis of this idea, the BitMEX exchange’s 2016 launch of the XBTUSD perpetual swap became the first live implementation [ 103 , 104 , 64 ] . Perpetual futures have a higher notional trading volume than spot cryptocurrency volume. This is akin to index futures for US stocks, where there is far more volume traded in the futures contracts than the underlying spot assets, with the S&P 500 futures index future trading roughly ten times more volume than the spot asset [ 34 ] . In 2024, centralized crypto exchanges such as Binance and Bybit processed nearly $58.5 trillion (notional) in perpetuals trades [ 37 ] . On the other hand, centralized exchanges processed nearly $17.4 trillion of spot cryptocurrency trades [ 36 ] , which is a 3.3x ratio of perpetuals to spot volume. The main reason for the elevated usage of perpetual futures, much like their index futures cousins, is due to the high level of leverage they offer. In particular, the capital requirements for trading perpetual futures are much lower than spot trading. Moreover, the continuous nature of perpetual futures allows for easier margin management than duration-based futures. This is illustrated via the large gap between the maximum leverage offered by perpetuals exchanges (up to 125x [ 22 ] ) versus the index futures on the Chicago Mercantile Exchange (around 10-15x leverage for index futures [ 35 ] ). Centralized vs. Decentralized Exchanges. Historically, the majority of perpetuals trading volume has been concentrated on centralized exchanges (CEXes). These venues, which include Binance, Bybit, and Coinbase, require users to deposit collateral that is custodied by the exchange. The exchange is responsible for ensuring that users’ positions are solvent and that their collateral is not used to cover losses from other traders. In practice, this involves traders having to trust the exchange to not use their collateral for other purposes. In 2022, centralized exchange FTX was found to have utilized customer collateral for other purposes, leading to multi-billion-dollar losses [ 55 ] . In response, there has been an increasing trend in the usage of decentralized exchanges (DEXes) for trading perpetual futures. These exchanges provide far more transparency and auditability into the mechanics of the exchange. In particular, user’s can always verify what their collateral is being used for and what positions it is collateralizing. Moreover, these exchanges are permissionless and pseudonymous, meaning anyone can trade on these exchanges without explicitly revealing their identity. The transparent nature of decentralized exchanges does have, however, a downside. Most positions in decentralized exchanges need to be fully overcollateralized, which generally means traders can take less leverage than they would on a centralized exchange. Generally speaking, this is because the exchange doesn’t know the identity of a trader and can only enforce global collateral invariants ( e.g. assets > liabilities) by forcing users to post more collateral than if the exchange knew their identity. Early decentralized perpetuals exchanges, such as perpetual protocol, were unable to offer much more than 5x leverage. However, in recent years, hybrid models of decentralized exchanges where withdrawals and deposits are permissionless, but certain exchange operations are centralized, have become popular. The most popular exchange of this form is Hyperliquid, which has helped increase the market share of perpetuals volume on DEXs from roughly 1% in 2024 to over 8% in 2025. These hybrid models allow for the exchange to use cryptographic commitments to enforce collateral rights while also allowing for oracles, markets, and solvency to be controlled by a smaller set of participants. This allows the exchange to avoid issues that fully open decentralized exchanges have, where weak collateral can be added to an exchange that cannot be sold or liquidated successfully during a market crash to ensure solvency. More concretely, there have been recent incidents on perpetual DEXs that highlight how novel market structures can be exploited or stressed in practice. These include but are not limited to: Hyperliquid’s XPL pre-market price spike and the JellyJelly attack [ 45 , 87 , 86 ] . These episodes led to emergency safeguards and community post-mortems, underscoring the need for robust oracle design, listing policies, and circuit breakers to mitigate manipulation. Such emergency responses would have been nearly impossible in the fully decentralized setting, demonstrating the value of hybrid models of decentralization in perpetual futures. Liquidations. Despite the empirical prominence of perpetuals markets, there has been little formal study of the stability and robustness of these markets relative to the large body of research into spot cryptocurrency trading. For instance, the main price stability mechanism used for perpetuals is the funding rate , a continuous payment stream between the long and short positions. There has been some study of how to replicate funding rates via other financial instruments [ 8 , 66 , 2 ] , but little to no empirical study of how well such approximations work. Even more surprising is the lack of formal study of how robust perpetual exchanges are under high leverage conditions, despite their usage being driven by high leverage traders. A crucial component to ensuring the stability of perpetual futures markets with high leverage is liquidation . This is the process of closing a user’s position that is worth less than the cash collateral they have posted to the exchange. Perpetuals exchanges rely on liquidation mechanisms to ensure that they stay solvent — that is, the assets they hold are greater than the liabilities they owe to traders. To the author’s knowledge, there has been no formal study of liquidations in perpetuals exchanges, despite there being a large body of work studying liquidations in overcollateralized cryptocurrency lending ( e.g. [ 90 , 72 , 108 , 95 ] ). Liquidations are executed by taking the collateral of a trader and selling it in a manner that minimizes losses that the exchange realizes. In centralized exchanges, liquidations are usually executed by the exchange itself in its own spot markets. For instance, suppose that a user uses $1,000 worth of collateral to open a long position with 10x leverage. This implies that if the price falls from the initial price when the contract was opened, p_{0} , by roughly 10%, then the user’s position will have a value of -$1,000, so that user’s net position is $0. If the price decreases beyond this point, then the user’s position will have a negative value, implying that the user owes the exchange (and hence, other traders) capital. We say that a trader’s position is insolvent if such a negative net position is realized. Exchanges utilize liquidations to remove trader positions before they are insolvent. For instance, in our example, an exchange might deem a trader’s position to be liquidatable if the price falls by 9%, such that the trader’s position is closed before insolvency. Provided that the exchange can execute this position (inclusive of transaction fees and market impact costs) at a price in between 0.91p_{0} and 0.9p_{0} , the position can be closed profitably. This profit is usually distributed to other traders in the exchange, added to an insurance fund for future losses, or realized as a profit for the exchange. Centralized exchanges usually execute liquidations in their own spot markets. This is because they can effectively guarantee atomicity of liquidations, ensuring that the liquidation transaction does not get front run and have a worse execution price than expected. In decentralized exchanges, liquidiations are usually executed by third-party actors known as liquidators. Liquidators can be viewed as traders who have the ability to warehouse the inventory of a collateral position and exit profitably. From an economic perspective, liquidations need to be profitable for either the exchange or the liquidator in order to help with exchange solvency. Autodeleveraging. In severe market dislocations, it is sometimes possible for liquidations to be so deeply unprofitable that they are unable to be executed by any party. When this happens, the exchange can reach a state of insolvency, where the assets held are less than the liabilities owed to its traders. This excess in liabilities is known as the shortfall . In such scenarios, a natural strategy to reduce the risk of total insolvency is to socialize losses by haircutting profitable (or winning ) traders. In the worst case, a winning user’s position is completely closed to zero, leaving them with a potentially large opportunity cost. This process is known as autodeleveraging (ADL) and is a last-resort measure used by exchanges. Autodeleveraging is unique in that it algorithmically socializes losses on winners based on a public rule or mechanism that an exchange posts. This means that all of the position closures and implicit liquidations of insolvent positions are performed in an irreversible and atomic manner. The closest analogue to autodeleveraging in traditional finance is a central counterparty (CCP) such as a derivatives clearing house. In traditional finance, CCPs employ default waterfalls and loss mutualization (including variation-margin gains haircutting (VMGH)) that share the same core idea of allocating residual losses across non-defaulting members [ 48 , 93 , 44 , 43 , 74 , 112 ] . CCPs generally have manual, non-algorithmic socialization and disbursement of insurance funds during such events with disputes reconciled via the legal system. We note, furthermore, that only clearing members bare the losses in CCPs, which leads to a different principal-agent dynamic than perpetuals markets as smaller traders need not bare the final losses. Autodeleveraging, to the best of the author’s knowledge, was first introduced by the crypto exchange Huobi in 2015 [ 105 ] . Prior to the implementation of ADL, exchanges would manually socialize losses, with the exchange serving as the sole CCP. By 2016, the BitMEX exchange implemented ADL via a formula that ranked trader positions for ADL by their profit times their leverage [ 24 ] . This formula persists to today on virtually every centralized exchange (including Binance, who implemented the formula in 2019 [ 20 ] ) and on the decentralized exchange Hyperliquid [ 68 ] . We note that there are some decentralized exchanges such as Drift [ 46 ] and Paradex [ 88 ] that use a different ADL mechanism (the pro-rata mechanism defined in § 2.4 ). However, well over 95% of perpetuals trading volume is on exchanges that utilize the BitMEX ranking model. In practice, ADL is reserved for extreme tail events where routine liquidation mechanisms are insufficient to maintain venue solvency. There are two primary scenarios that can trigger ADL activation. First, a sudden and large price movement can push positions far beyond their liquidation thresholds before the exchange’s liquidation system can execute the necessary trades. Second, a temporary but severe loss of executable liquidity in the order book can prevent the exchange from closing positions at prices near their liquidation triggers, even when the price movement itself is not extreme. To illustrate how such scenarios can lead to insolvency, consider a concrete example. Suppose that a trader posts $1,000 of collateral to take a 10x leveraged long position with a notional value of $10,000, where the position becomes liquidatable when the price declines by 9% from its initial value p_{0} . Under normal market conditions, the exchange would execute a liquidation when the price reaches 0.91\,p_{0} , closing the position and recovering the collateral. However, if an abrupt 12% price drop occurs between price updates or during a period of low liquidity, the position may be closed at a significantly worse execution price, such as 0.88\,p_{0} rather than the intended 0.91\,p_{0} . In this scenario, the account’s equity becomes negative, representing approximately 2% of its initial collateral value. When many traders simultaneously experience such execution slippage and the exchange’s insurance fund reserves cannot absorb the aggregate resulting losses, the venue triggers ADL. Under the exchange’s predefined ADL rules, the system algorithmically reduces or closes profitable opposing positions until the shortfall is covered and solvency is restored. Inherently, ADL creates moral hazard — that is, losing traders have an incentive to take on more risk in anticipation of being socialized by winning traders. The goal of an exchange is to balance the risk of insolvency against haircutting winning trader profits. Moral hazard is measured by this trade-off — if it is possible to reduce the risk of insolvency to zero without haircutting winning traders, then the system has no moral hazard. On the other hand, if it is not possible to reduce the risk of insolvency by any appreciable amount without severely haircutting winning trades, the system has excessive moral hazard. The job of an exchange operator is to choose an ADL mechanism that tries to induce a low level of moral hazard under most tail event scenarios. This connects to principal–agent models of moral hazard and linear/robust contracting [ 67 , 31 , 49 ] , with key differences: many agents act simultaneously, externalities operate through a common solvency constraint, and tail-risk mitigation substitutes for standard effort observability. Despite the rarity of ADL, it is certainly not hypothetical: there have been dozens of instances of ADL activations on major venues since 2018 [ 20 , 24 , 3 , 38 ] . The largest episode of ADL usage was on October 10-11, 2025 (UTC), when outsized liquidations exhausted insurance funds and multiple venues simultaneously invoked ADL [ 96 ] . However, other famous incidents such as the March 2020 “Black Thursday” and May 19, 2021 deleveraging event were other prominent days involving ADL usage. Most of these usages of ADL often involved controversies, in that highly profitable but lower risk ( e.g. lower leverage) traders found their positions closed out by ADL mechanisms. These traders have often threatened to sue exchanges for unfair treatment, with rumors and public speculation surfacing during Oct. 10–11, 2025 (subsequently denied by Wintermute) [ 40 , 111 ] 1 1 1 See also prior complaints during May 2020 on Binance futures when profitable shorts were closed via ADL [ 39 ] . This incidents demonstrate a natural trade-off that perpetuals exchanges have to make: they can either aggressively socialize losses to their winners and (potentially) lose the future revenue of these users while preserving solvency or hold the losses due to the insolvency on their balance sheet. In the former case, the exchange effectively chooses to prioritize short term solvency and potential liquidation profits over long term value and fees generated by users. The latter case, effectively creates a long term risk for the exchange’s balance sheet, especially if it does not have sufficient funds to cover insolvencies. This strongly suggests that one can view the choice of how an exchange implements ADL as a trade-off between solvency, moral hazard, and long term revenue for an exchange. We note that open interest post October 10, 2025 that suggests that Hyperliquid has lost nearly 50% of open interest, whereas competitors such as Lighter and even Binance have recovered to pre-event levels. 2 2 2 Source: DeFiLlama perpetuals dashboard, https://defillama.com/perps , accessed Nov. 30, 2025. Open interest is generally more expensive to manipulate than trading volume and can serve as a coarse measurement of expected future revenue for an exchange. Numerous parties have argued that this open interest loss for Hyperliquid is due to their overly aggressive ADL policy. 3 3 3 See, e.g. , public commentary from @fiddybps1, @0xReaz, @Eugene_Bulltime, and @0xLouisT on X (Nov. 2025): https://x.com/fiddybps1/status/1978750722901762321 , https://x.com/0xReaz/status/1986486213101166599 , https://x.com/Eugene_Bulltime/status/1994380900067582182 , https://x.com/0xLouisT/status/1990815109787058654 . This Paper. In this paper, we provide (to the author’s best knowledge) the first formal mathematical model of autodeleveraging. The main model of the paper is venue-agnostic: it abstracts away pricing ( e.g. order book versus automated market maker microstructure) and focuses on how positions are opened and closed. As a warning to the reader: this paper is more verbose than necessary. The author aims to provide a self-contained, pedagogical introduction to perpetual futures and liquidations, as the current literature and open source documentary does not cover liquidations and ADL in any manner comprehensive enough for formal study. Throughout the paper, there will be numerous simple numerical examples to illustrate the basic concepts and mechanics of perpetual futures. The first section of the paper (§ 2 ) provides definitions and examples of the basic objects — positions — and basic operations that one can perform on them. In the process of defining the set of operations on positions, we will naturally need to define the economics of positions using funding rates and arbitrage. These definitions will hopefully provide answers to the questions of why one opens a position, how much one has to spend on keeping a position open, and how positions on different exchanges achieve price synchronization. From these economic properties, we will naturally define solvency for both individual traders and of the exchange itself. Liquidations and ADL then naturally follow as operations that exist to try to use economic means to enforce solvency constraints with high probability. We will define the set of ADL mechanisms in a sufficiently broad manner to allow for venue-specific ADL, this allowing us to compare Binance, Hyperliquid, Drift, and other exchanges. Our decomposition of the ADL strategy space into severity ( i.e., dollar amount impacted by ADL) and haircuts ( i.e., per-trader percentage liquidated) allows us to separate exchange solvency and trader profitability into two separate optimization problems. This will be key to simplifying our results and constructing practical algorithms. Given a perpetuals exchange, defined in the combinatorial manner of § 2 , we next focus on notions of risk that are endemic to perpetuals exchanges in § 3 . We construct a set of risk measurements that, while specific to perpetuals exchanges, are connected to classical risk metrics such as Value-at-Risk. Subsequently, we describe four facets of perpetuals exchange risk that we will analyze: extreme value analysis, Schur ordering, fairness, and moral hazard. Extreme value analysis is the classical actuarial estimation of tail probabilities and rare events. We provide a simple primer to make the text self-contained and our notation consistent. The Schur ordering provides a way of partially ordering risk measurements, even if they are not fully comparable. This allows us to compare ADL mechanisms across venues, despite the fact that the outcomes might not have explicitly comparable risks in every situation. Algorithmic fairness measures (axiomatic and optimization-based) are subsequently introduced to concretely answer the question of whether ADL is more fair to certain traders than others. Finally, we describe the general moral hazard problem and specialize it to the perpetuals exchange setting. In this setting, it corresponds to whether the exchange operator has an incentive to take on more risk than necessary because they can socialize worst-case losses on their best traders. With these risk tools in tow, we are now prepared to describe the main results of the paper. We have five classes of results in this paper: 1. Negative : Moral hazard is strictly increasing in the size of the exchange. 2. Fairness : The Pro-Rata ADL mechanism is the most fair mechanism 3. Robustness : Given a risk model g for historical user behavior, there is a unique ADL mechanism maximally robust to price shocks 4. ADL as Stackelberg Game : Multiple price shocks causing ADL to be used repeatedly are a Stackelberg game that can be studied rigorously. 5. Empirical : Using Hyperliquid’s data from October 10, 2025, where ADL was used over 40 times in a 10 minute period, we evaluate the performance of difference ADL mechanisms Negative Results. Our negative results focus on quantifying limits to how much ADL can actually reduce insolvency without inuring traders with disproportionate losses. We explicitly ask the question of how the loss of profit due to ADL to the trader with the highest PNL scales as the number of positions n grows. We quantify this by looking at ratios of the maximum winner’s profit to the total shortfall (over all traders) and to the worst trader’s shortfall. These ratios can be viewed as analogues of the Value-at-Risk and Expected Shortfall metrics in traditional risk modeling, as we show in Appendix C . The main difference is that while Value-at-Risk and Expected Shortfall measure the total expected loss (over all traders) in tail events, our metrics only measure the expected loss to the most winning trader. Moreover, Appendix C.5 shows that classical VaR/ES rankings echo the same conclusion: queue-based ADL always delivers the lowest top-winner survival even under these traditional risk lenses. When these ratios, as constructed, are bounded below by a constant, then the winner can expect to always retain at least a constant fraction of their earnings after an ADL event. However, if these ratios decay to zero, then the winner has no guarantee of retaining any of their profits after an ADL event. We show that under some mild technical assumptions, these ratios decay as O(\frac{b_{n}}{n}) , where b_{n} is the extreme value scale (EV scale) of profits (see § 3 ). For most well-behaved probability distributions over the set of profits, b_{n}=o(n) , so the ratios decay to zero. This result establishes a fundamental limit of these markets: moral hazard scales with participation. It suggests that as crypto exchanges grow, ADL must become either more frequent or more severe for top traders; they cannot “grow out” of the problem. Fairness Results. As the negative results show that no ADL mechanism can scale to preserve winner’s profit, a natural follow-up question is, what is the most fair way of socializing profitable users? We consider two notions of fairness in § 6 : axiomatic and optimization-based. They are both common in the algorithmic fairness literature within machine learning [ 73 , 16 , 82 , 50 , 4 , 63 ] . We demonstrate that the pro-rata ADL rule (used by Drift [ 46 ] and Paradex [ 88 ] ) is the unique fair ADL rule in both the axiomatic and optimization senses [ 71 ] . Axiomatic fairness involves defining rules or invariants that a particular ADL mechanism must satisfy to be deemed fair. The rules we analyze for fairness are monotonicity, scale invariance and Sybil resistance. Roughly speaking, monotonicity says that if you were the k th highest winner (ranked by PNL) before ADL, then you will be the k th highest winner after ADL. Scale invariance states that if everyone scaled up their positions by an equal factor, their loss due to ADL does not change. And finally, Sybil resistance states that splitting a position into multiple positions does not change the loss due to ADL. We show that under mild smoothness conditions, the pro-rata ADL rule is the unique rule to satisfy these axioms. In stark contrast, we show that the queue-based mechanisms used by Binance and Hyperliquid are effectively “anti-fair”: in our model and data they produce extremely low Profit-to-Solvency Ratios (PTSR), imposing disproportionately large losses on the top winner. This finding contradicts the common intuition that queues are orderly; instead, they concentrate losses on the most successful traders. Optimization-based fairness involves showing that for a large class of individual trader utility functions, a particular mechanism maximizes social welfare ( i.e., the total profit). This is more of a system-wide fairness notion, as it shows that the system as a whole is fair, even though there might be individuals who were punished more by an ADL mechanism. Unlike the axiomatic rules, which have to hold for every trader exactly, the optimization-based fairness rules can be thought of as ‘fuzzier’ and allowing for more slack. Despite this, we still show that the pro-rata ADL rule is the unique rule to maximize social welfare for a large class of concave utility functions. Robustness Results. A natural question, beyond fairness, is whether an ADL rule is robust to subsequent price shocks. The main question here is whether the choices of severities ( e.g. total amount to socialize) and haircuts ( e.g. per-account socialization) increases the chance of insolvency should another price shock occur. In § 7 , we consider a new threat model where an ADL mechanism is graded based on how well it reduces to total shortfall from two price shocks. The model involves a price shock occurring that triggers ADL, an ADL policy being executed, and then another price shock occurring. We show that a natural way to model total shortfall is via a risk model g that maps a user’s amount of leverage used to a risk score. A higher risk score implies that a trader’s leverage level places a higher burden on the rest of the exchange’s solvency, especially in the repeated price shock scenario. We first show that the risk model is effectively a way to quantify the total shortfall. Given a stochastic process for price shocks, one can construct an optimal risk model (using convex duality) g^{*} that maximizes the total solvency gained per dollar of winner position that is haircut by an ADL policy. With the optimal risk model in hand, we construct a linear-time algorithm to choose haircuts for each trader that are weighted by this model. We then show that the resulting ADL policy derived from these weights has lowest expected total shortfall and is the optimal ADL policy (in the Schur ordering sense). ADL as a Stackelberg Game. A direct extension of the robustness threat model is to consider a sequential ADL problem, where for multiple rounds, a price shock is received, the exchange chooses an ADL policy, and then losses are realized. This model might at first glance seem to only have theoretical value since ADL is itself a rare event. However, on October 10, 2025 there were multiple ADL events that occurred over a short time window on both Hyperliquid and Binance. While the account-level data for Binance’s usage of ADL is not public, we do have this data for Hyperliquid. Starting at 10:21:00 UTC, there were at least 40 recorded ADL events on Hyperliquid in a 10 minute period. This strongly suggests that there is clustering or cascading of ADL events, making the multiple round model necessary to study. Unlike in the single round models (used for fairness and robustness), the exchange is allowed to adjust their ADL policy after each ADL shock. One can view this as a sequential game and we argue that it is a Stackelberg game . Stackelberg games have a well-known follower-leader decompsoition, where one user (the leader) plays a strategy first. Then the follower conditions their strategy on the leader’s action, before playing their own move. In the ADL setting, the exchange is the leader and the traders are the followers. We first show that viewing ADL as a dynamic, multiple round Stackelberg game leads to sharply different equilibria. We prove a crucial “principal-agent” tension: any strategy an exchange executes that minimizes the time to recover solvency ( i.e., number of rounds) necessarily maximizes the loss of exchange long-term revenue. This trade-off is the economic heart of the paper: the exchange wants to be solvent in few rounds, but doing so destroys the best customers ( e.g. the whales). Intuitively, this occurs because any strategy that quickly recovers solvency autodeleverages the largest winners more aggressively. These winners, however, are also often the most profitable users and generate high long-term fees for the exchange. By liquidating them aggressively, you’re removing the capital that they would use to later create positions and generate fees. We note that threats to sue exchanges for ADL losses in profit after October 10, 2025 provide indirect empirical evidence to support this theoretical result [ 40 , 111 ] . This implies that any optimal ADL policy over multiple rounds also has to include incentive compatibility constraints that balance future exchange revenue, current exchange solvency, and current trader profits. We construct an explicit algorithm for optimizing a revenue and solvency based objective and show that a simple mirror descent algorithm achieves vanishing regret for this objective. We conclude with a simple example demonstrating that no static policy that dominate the dynamic policy, especially when exchange long-term revenue is a consideration. Empirical Results: The $653 Million Inefficiency. We conclude by analyzing the October 10, 2025 ADL events on Hyperliquid. Unlike centralized exchanges like Binance and Bybit, Hyperliquid publicly shares all position data, including position leverage, collateral, PNL, and ADL status. Using this data, we evaluate the efficiency of Hyperliquid’s ADL mechanism (which is a slight modification of the original 2015 Huobi queueing mechanism). We show that Hyperliquid autodeleveraged roughly \sim $660m (simulated) to \sim $2.1bn (realized) of winning trader PNL during the 12 minute cascade on October 10, 2025. Over the same period, there were at least 40 ADL events which accumulated a total of \sim $23.2m of true negative equity positions. 4 4 4 Hyperliquid’s on-chain fill log for October 10, 2025 records 34,983 individual ADL executions across 19,337 distinct wallets and 162 tickers. We analyze the per-fill data but aggregate those executions into the 40 queue waves discussed in the text. Measured shock-by-shock, this implies the production queue generated about \sim $653M of overshoot, i.e., haircuts beyond the deficits that actually materialized. This result highlights a massive capital inefficiency in current queue-based mechanisms: they are not just unfair, but they destroy hundreds of millions of dollars of trader value unnecessarily. We then compare the pro-rata, risk-weighted pro-rata, and dynamic mechanisms to the live queueing mechanism used. We utilize these methods with different severity optimization algorithms and show that all of these algorithms were able to learn to autodeleverage substantially less than what Hyperliquid did in practice. Utilizing these algorithms on the historical data, we find that nearly 98% of the over autodeleveraging used by Hyperliquid could have been removed by a smarter ADL policy. Notation. • For a vector x\in{\mbox{\bf R}}^{n} , we define (x)_{+}=\max(x,0) , where this is done coordinate-wise and (x)_{-}=\min(x,0) (also coordinate-wise). Using our convention, we have (x)_{+}=-(-x)_{-} • We denote the set of integers \{1,\ldots,n\} by [n] . • For a sequence x_{1},x_{2},\ldots , we denote the subsequence from s to t as x_{s:t}=(x_{s},x_{s+1},\ldots,x_{t}) . • We use \mathbf{1}_{E} or \mathbf{1}\{E\} to denote the indicator function of an event E , which is 1 if E is true and 0 otherwise. • We use the notation f(n)\asymp g(n) to denote that f(n)=\Theta(g(n)) , i.e., there exist constants c,C>0 such that c|g(n)|\leq|f(n)|\leq C|g(n)| for sufficiently large n . • We write X_{n}\asymp_{p}Y_{n} for random variables X_{n},Y_{n} if there exist constants c,C>0 such that c|Y_{n}|\leq|X_{n}|\leq C|Y_{n}| with high probability as n\to\infty . • For vectors x,y\in{\mbox{\bf R}}^{n} , we write x\prec y if x is majorized by y (see § 3.2 for details). 2 Background We will first introduce a mathematical model for solvency risks in a perpetuals exchange. Using this model, we define the key components for measuring the solvency of perpetuals exchanges: trader equity, exchange deficits, and autodeleveraging (ADL) policies. These components will allow us to formalize the notion of moral hazard in perpetuals exchanges and sets the notation up for our main results in § 5 , § 6 , § 7 , and § 8 . 2.1 Perpetuals Exchanges. A perpetuals futures exchange (or perpetuals exchange) is a derivatives trading venue that allows traders to use leverage to speculate on the prices of cryptocurrency assets. The main asset traded is a perpetual future, which is a continuous, expiryless futures contract. Traders speculate on the contract in either the long (buy) or short (sell) direction. Traders are allowed to make leveraged bets up to a maximum leverage cap \ell^{\max} . As is often common with levered positions, the trader has to post collateral, known as margin , to keep their positions solvent . We define a precise notion of solvency in this section, but for now think of solvency conditions as meaning that a trader’s assets are greater than their liabilities. The exchange incentivizes futures prices to approximately match spot prices by having long and short traders pay each other a continuous rate, known as the funding rate . The funding rate is determined by the spot price of the asset and the relative imbalance of long and short futures positions. Arbitrageurs keep the price of the futures contract in line with the spot price by opening futures positions that push the contract price towards the spot price. For simplicity, we assume that trades occur in discrete time t\in{\mbox{\bf N}} , but note that our results can easily be extended to continuous time t\in{\mbox{\bf R}}_{+} . Spot Price Oracle. Perpetual futures exchanges require a spot price oracle that provides a spot price of the asset from a spot trading venue. Price oracles are assumed to be expensive or difficult to manipulate, which is dependent on the liquidity of the spot market. Most perpetuals exchanges utilize oracles that aggregate price reporting over multiple venues to increase the overall liquidity represented in the price and hence, the manipulation cost. We assume that there is a non-manipulable spot price \hat{p}_{t} for an asset at all times t\in{\mbox{\bf R}}_{+} . Furthermore, we denote the futures price quoted by the exchange as p_{t} and similarly assume that it exists for all t\in{\mbox{\bf R}}_{+} . Positions. Given a spot price oracle and futures price, a perpetuals exchange is able to open and close positions created by its traders. A position consists of collateral deposited by the trader, a leverage amount, and a direction ( e.g. buy or sell). A trader’s position is updated as the spot price changes, realizing a gain or a loss for the trader. The accumulation of gains and losses over the lifetime of the position is the trader’s PNL (profit-and-loss). We define a perpetuals exchange with n traders as the set \mathcal{P}_{n}=\{(q_{i},c_{i},t_{i},b_{i})\in{\mbox{\bf R}}_{+}^{3}\times\{-1,1\}:i\in[n]\} (1) where q_{i}\geq 0 is the notional quantity of futures held by the trader, c_{i}\geq 0 is the trader’s collateral (cash) position (also known as the initial margin ), t_{i}\in{\mbox{\bf N}} is the timestamp that the position was created, and b_{i} is their side ( -1 is sell, 1 is buy). We denote each position \mathfrak{p}_{i}=(q_{i},c_{i},t_{i},b_{i}) and assume that without the loss of generality that there is a fixed, strictly increasing ordering of these orders such that we can refer to \mathfrak{p}_{i} unambiguously. For each position \mathfrak{p} , we define the notional exposure at time t is the gross dollar size n_{i,t}\ =\ p_{t}\,q_{i}\,. The notional exposure is the gross dollar size of the trader’s position and is used to define leverage. Example. In this section, we fix a canonical running example that we will reuse across definitions to illustrate each exchange function. Our simple test perpetuals exchange will have five positions, \mathcal{P}_{5} : \displaystyle\mathcal{P}_{5}=\Big\{ \displaystyle\mathfrak{p}_{A}=(q_{A},c_{A},t_{A},b_{A})=\big(1,\,2,\,0,\,+1\big), \displaystyle\mathfrak{p}_{B}=(q_{B},c_{B},t_{B},b_{B})=\big(1,\,\tfrac{2}{3},\,0,\,+1\big), \displaystyle\mathfrak{p}_{C}=(q_{C},c_{C},t_{C},b_{C})=\big(4,\,\tfrac{8}{3},\,0,\,-1\big), \displaystyle\mathfrak{p}_{D}=(q_{D},c_{D},t_{D},b_{D})=\big(1,\,\tfrac{2}{19},\,0,\,+1\big), \displaystyle\mathfrak{p}_{E}=(q_{E},c_{E},t_{E},b_{E})=\big(1,\,\tfrac{10}{99},\,0,\,-1\big)\Big\}. Moreover, if at t=0 we have p_{0}=1 for \mathcal{P}_{5} , then the notional exposure are: n_{A,0}=1\cdot 1=1,\quad n_{B,0}=1\cdot 1=1,\quad n_{C,0}=1\cdot 4=4,\quad n_{D,0}=1\cdot 1=1,\quad n_{E,0}=1\cdot 1=1. Note this toy example is net short by 2 contracts: \sum_{i}b_{i}q_{i}=-2 . For AMM-style venues, the pool holds the offsetting inventory q_{V}=2 with b_{V}=+1 , so across traders plus venue \sum_{i}b_{i}q_{i}+b_{V}q_{V}=0 . For order-book venues, interpret \mathcal{P}_{5} as a subset of accounts. The complementary matched positions are omitted but implied. 5 5 5 We note that in centralized exchanges, the exchange itself creates the complementary positions whereas in decentralized exchanges with order books (like Hyperliquid and Lighter), a liquidity provider like HLP or LLP owns the position; see Hyperliquid’s HLP documentation [ 69 ] and the Lighter whitepaper [ 79 ] . All zero-sum statements ( e.g. , funding rates, which will be defined shortly) are taken over traders plus the venue inventory. Position Creation. When an exchange opens a new position, it performs two tasks: 1. Selecting a price p_{t} for the position and constructing \mathfrak{p}=(q,c,t,b) . 2. Construction of an equal but opposite position, \overline{\mathfrak{p}}=(q,c,t,-b) is created The latter condition is needed because the perpetuals exchange is meant to be a neutral matching layer for traders. This means that the exchange should not have a net exposure to the spot asset, as it increases the risk of default for traders. Specifically, the position \overline{\mathfrak{p}} is created to ensure that the total notional exposure of the exchange to the spot asset is zero. 6 6 6 In centralized venues such as Binance Futures, the matching engine and clearing layer are designed to operate a matched book over user positions, as reflected in their open interest endpoints for USD$- and COIN-margined futures [ 23 ] . In decentralized order-book venues like Hyperliquid, the protocol core similarly avoids taking directional exposure. Offsetting inventory is held in separate HLP vaults on behalf of liquidity providers [ 69 ] . We define \overline{\mathcal{P}}_{n}=\mathcal{P}_{n}\cup\{\overline{\mathfrak{p}}:\mathfrak{p}\in\mathcal{P}_{n}\} as the full set of positions held by the exchange (including matching, complementary positions). While all venues construct \overline{\mathfrak{p}} in the same manner, the price p_{t} is chosen in a venue-specific manner. Each venue has a liquidity model for determining how prices p_{t} are chosen. The two most popular liquidity models are order books and automated market makers (AMMs). Order book venues maintain a limit order book of bids and asks for perpetual futures contracts at discrete price levels, and have been extensively studied in the market microstructure literature [ 76 , 7 , 57 , 26 ] . Traders may submit limit orders, which rest in the book until they are matched, or market orders, which execute immediately against resting liquidity. When a trader opens a new position as a taker, the execution price p_{t} is the volume-weighted average of the resting orders they consume, i.e., the price they would obtain by submitting a market order of size q into the book at time t . The largest order book venues in the perpetual futures market include centralized exchanges such as Binance and Bybit and decentralized exchanges such as Hyperliquid and Lighter. 7 7 7 From a risk-warehousing perspective, Hyperliquid’s HLP vaults cause the protocol to function as a hybrid between a pure order-book venue and an inventory-taking pool: user orders are matched via an order book, but directional exposure is warehoused collectively in HLP vaults on behalf of liquidity providers [ 69 , 86 , 96 ] . Automated market maker (AMM) venues maintain a pool of collateral and inventory for the perpetual, and quote prices according to a deterministic pricing rule or bonding curve that depends on the pool state, typically implemented via constant-function market makers [ 9 , 10 ] . Traders interact with the pool via swap-like trades: submitting an order of size q moves the pool along its pricing curve, and the execution price p_{t} is the average price paid over this path. When a trader opens a new position against the AMM, the pool itself holds the offsetting inventory \overline{\mathfrak{p}} , so that the trader’s exposure is matched by an equal and opposite position in the pool, as in inventory-taking perpetual venues such as GMX, Drift, and Perpetual Protocol v2 [ 59 , 46 , 91 ] . In the remainder of this paper, we will ignore the liquidity model of a perpetuals exchange. This is because the default conditions that we will study for autodeleveraging only depend on the positions \mathcal{P}_{n} and not the process by which they were created. Example. Consider an order-book venue at time t with three resting sell (ask) limit orders (p^{1},q^{1})=(1.0,1),\quad(p^{2},q^{2})=(1.1,3),\quad(p^{3},q^{3})=(1.2,10). A trader submits a market buy order for quantity q=5 . The exchange matches this order against the resting asks in price–time priority: it first consumes q_{1}=1 at p_{1}=1.0 , then q_{2}=3 at p_{2}=1.1 , and finally 1 unit from the third order at p_{3}=1.2 . The total notional paid is 1\cdot 1.0+3\cdot 1.1+1\cdot 1.2=5.5 , so the execution price is the volume-weighted average p_{t}=\frac{5.5}{5}=1.1 . Ignoring fees, the taker acquires a new long position \mathfrak{p}=(q,c,t,b)=(5,c,t,+1) with notional exposure q\,p_{t}=5.5 . Aggregating across the three maker accounts, the exchange simultaneously creates an equal and opposite short position \overline{\mathfrak{p}} of size 5 , so that total long and short contract quantities (over all accounts) remain matched. Open Interest. Note that the notion of leverage is encoded into the quantity q_{i} of a position, as a user who can buy p_{t_{i}}q units of spot assets with c_{i} units of collteral can open a position with q_{i}\leq\ell_{\max}q . This implies that the correct notion of the notional trades outstanding, known as interest , on a pereptuals exchange is simply the sum of price-weighted quantities. We divide the exchange \mathcal{P}_{n} into long and short positions: \displaystyle\mathcal{L}(\mathcal{P}_{n}) \displaystyle=\{(q_{i},c_{i},t_{i},b_{i})\in\mathcal{P}_{n}:b_{i}=1\} \displaystyle\mathcal{S}(\mathcal{P}_{n}) \displaystyle=\{(q_{i},c_{i},t_{i},b_{i})\in\mathcal{P}_{n}:b_{i}=-1\} We define the total set of long and short positions as: \displaystyle\overline{\mathcal{L}}(\mathcal{P}_{n}) \displaystyle=\mathcal{L}(\mathcal{P}_{n})\cup\{\overline{\mathfrak{p}}:\mathfrak{p}\in\mathcal{L}(\mathcal{P}_{n})\} \displaystyle\overline{\mathcal{S}}(\mathcal{P}_{n}) \displaystyle=\mathcal{S}(\mathcal{P}_{n})\cup\{\overline{\mathfrak{p}}:\mathfrak{p}\in\mathcal{S}(\mathcal{P}_{n})\} This is the set of all long and short positions, including matching positions. Futures exchanges define the open interest of the exchange as the total outstanding notional value of the positions held by the exchange. Given the futures price p_{t} , the long open interest L(\mathcal{P}_{n},p_{t}) and short open interest S(\mathcal{P}_{n},p_{t}) are defined as \displaystyle L(\mathcal{P}_{n},p_{t}) \displaystyle=\sum_{(q_{i},c_{i},t_{i},b_{i})\in\mathcal{L}(\mathcal{P}_{n})}q_{i}p_{t} \displaystyle S(\mathcal{P}_{n},p_{t}) \displaystyle=\sum_{(q_{i},c_{i},t_{i},b_{i})\in\mathcal{S}(\mathcal{P}_{n})}q_{i}p_{t} Given the long and short open interest, we define the exchange’s open interest simply as the sum, OI(\mathcal{P}_{n},p_{t})=L(\mathcal{P}_{n},p_{t})+S(\mathcal{P}_{n},p_{t}) 8 8 8 We note that exchange’s will report open interest over \overline{\mathcal{P}}_{n} , which would be twice the open interest reported here. Since we assume that \mathcal{P}_{n} is the set of unmatched trader positions, one can view our definition of open interest (which differs from Binance’s definition by a factor of two) as ‘trader open interest’ vs. ‘exchange open interest’. To lighten notation, we will write L_{t}=L(\mathcal{P}_{n},p_{t}),S_{t}=S(\mathcal{P}_{n},p_{t}),OI_{t}=OI(\mathcal{P}_{n},p_{t}) when the exchange \mathcal{P}_{n} is already defined. Example. For \mathcal{P}_{5} at t=0 with p_{0}=1 , longs are \{A,B,D\} and shorts are \{C,E\} , so L_{0}=\sum_{b_{i}=+1}q_{i}p_{0}=(1+1+1)\cdot 1=3,\quad S_{0}=\sum_{b_{i}=-1}q_{i}p_{0}=(4+1)\cdot 1=5,\quad OI_{0}=8. At t=1 with p_{1}=1.4 (same quantities), L_{1}=3\cdot 1.4=4.2 , S_{1}=5\cdot 1.4=7.0 , OI_{1}=11.2 . Leverage and Margin. The leverage of a position is the ratio of the notional exposure to the collateral value. If the leverage is greater than 1, it means that the user has effectively borrowed money from the exchange to have an exposure higher than their cash balance. When the leverage is less than 1, the user’s position is overcollateralized . As the price of the asset changes, the leverage of the position naturally changes due to its dependence on notional exposure. When a position is opened, there is an initial leverage ratio that the position is created with. We define the initial leverage of a position as \ell_{i}=\ell(\mathfrak{p}_{i})=\frac{n_{i,t_{i}}}{c}=\frac{p_{t_{i}}q_{i}}{c_{i}} The larger the initial leverage, the most exposure the trader has to the asset and implicitly, the more risk the exchange is taking on lending to the user. For risk management purposes, exchanges define leverage limits in terms of initial and maintenance margins . Margins are bounds on the ratio of notional exposure to collateral that the exchange enforces as an invariant. The initial margin ratio , m_{I}\in(0,1) is defined such that for any valid position, we have: m_{I}p_{t_{i}}q_{i}\leq c_{i} (2) This invariant implies that the maximum leverage that a position can have, \ell^{\max} is \ell^{\max}=\frac{1}{m_{I}} . In order to continually satisfy ( 2 ) as spot and future prices change, a trader often needs to ‘top up’ or add more collateral their position. The amount of collateral needed is related to the exchange’s maintenance margin ratio m_{\mu} , which will be defined in the sequel. As the user adjusts their collateral position dynamically, we let c_{i,t} be the total quantity of collateral (margin) placed by the user at time t . This also means that the state of position is dynamic, \mathfrak{p}_{i,t}=(q_{i},c_{i,t},t_{i},b_{i}) . We define the leverage at time t as \ell_{i,t}=\mathbf{1}_{t\geq t_{i}}\frac{p_{t}q_{i}}{c_{i,t}} Example. These five examples of \mathcal{P}_{5} represent one highly overcollateralized and under leveraged position ( \mathfrak{p}_{A} ), two somewhat leveraged positions with medium leverage ( \mathfrak{p}_{B},\mathfrak{p}_{C} ) and two highly leveraged positions ( \mathfrak{p}_{D},\mathfrak{p}_{E} ). We will initialize the example with p_{0}=1 and take a maximum leverage \ell^{\max}=10 ( e.g. , m_{I}=0.10 ). This gives the following opening leverages: \displaystyle\ell_{A,0} \displaystyle=\tfrac{1\cdot 1}{2}=0.5, \displaystyle\ell_{B,0} \displaystyle=\tfrac{1\cdot 1}{2/3}=1.5, \displaystyle\ell_{C,0} \displaystyle=\tfrac{1\cdot 4}{8/3}=1.5, \displaystyle\ell_{D,0} \displaystyle=\tfrac{1\cdot 1}{2/19}=9.5, \displaystyle\ell_{E,0} \displaystyle=\tfrac{1\cdot 1}{10/99}=9.9. If the mark moves to p_{1}=1.4 and cash is unchanged ( c_{i,1}=c_{i} ), then time- 1 leverages are \displaystyle\ell_{A,1} \displaystyle=\tfrac{1.4\cdot 1}{2}=0.7, \displaystyle\ell_{B,1} \displaystyle=\tfrac{1.4\cdot 1}{2/3}=2.1, \displaystyle\ell_{C,1} \displaystyle=\tfrac{1.4\cdot 4}{8/3}=2.1, \displaystyle\ell_{D,1} \displaystyle=\tfrac{1.4\cdot 1}{2/19}=13.3, \displaystyle\ell_{E,1} \displaystyle=\tfrac{1.4\cdot 1}{10/99}=13.86. In practice, if \ell_{i,1}>\ell^{\max} ( e.g. , \mathfrak{p}_{D} and \mathfrak{p}_{E} ), then the venue requires collateral additions from the trader to restore the constraint \ell_{i,1}\leq\ell^{max} . Funding Rate. A perpetual future is only useful as a hedging instrument if the futures price p_{t} and spot price \hat{p}_{t} are sufficiently “close.” To incentivize this, the majority of perpetuals futures markets use a continuous payment stream between the long and short positions called a funding rate . If the price of the future is lower than spot, p_{t}<\hat{p}_{t} , traders holding short futures positions pay a payment to traders holding long futures positions. This encourages traders who want to earn these payments to open long positions, which will decrease the over all rate. Conversely, if p_{t}>\hat{p}_{t} , traders holding long positions pay those holding short positions. Most funding rates are simple linear functions of the relative imbalance between the long and short positions. A common funding rate [ 32 ] formula takes the form: \gamma(\mathcal{P}_{n},p_{t},\hat{p}_{t})=\kappa\left(\frac{L(\mathcal{P}_{n},p_{t})}{S(\mathcal{P}_{n},p_{t})}-\frac{p_{t}}{\hat{p}_{t}}\right) (3) for a constant \kappa>0 . For brevity, write \gamma_{t}=\gamma(\mathcal{P}_{n},p_{t},\hat{p}_{t}) . Note that we have defined \gamma_{t} such that if \gamma_{t}>0 , then short traders pay long traders \gamma_{t} % of their holdings. This convention is opposite to what many exchanges use ( i.e., \gamma_{t}<0 represents a payment from the short side to the long side). However, our convention leads to needing to check fewer negative signs in our formulas, as we will illustrate with our examples. Given funding rates \gamma_{t} for t\geq 0 , a position \mathfrak{p}=(q,c,t,b) linearly accumulates funding positions between time t and the current time T , if the position is solvent. That is, if the position is solvent at time T , the user receives a payments of the form \Gamma((q,c,t,b),t,T)=\sum_{s=t+1}^{T}(bq)\gamma_{s}p_{s} If \Gamma>0 , then over the interval [t,T] , the user receives a payment from the exchange whereas if \Gamma<0 , the user pays the exchange. When the user pays the exchange, their profits are distributed by the exchange to the other side of the market. For brevity, we use the notation \Gamma_{i,t,T}=\Gamma(\mathfrak{p}_{i},t,T) . We also note that the funding rate, by construction, is zero-sum when one considers entire set of exchange positions \overline{\mathcal{P}}_{n} . To see, this note the following: \sum_{\mathfrak{p}\in\overline{\mathcal{P}}_{n}}\gamma_{t}p_{t}\,(bq)=\sum_{\mathfrak{p}\in\overline{\mathcal{L}}(\mathcal{P}_{n})}\gamma_{t}p_{t}\,(q)-\sum_{\mathfrak{p}\in\overline{\mathcal{S}}(\mathcal{P}_{n})}\gamma_{t}p_{t}\,(q)=0 (4) where the last equality follows from the fact that \mathfrak{p}\in\overline{\mathcal{L}}(\mathcal{P}_{n})\iff\overline{\mathfrak{p}}\in\overline{\mathcal{S}}(\mathcal{P}_{n}) . Example. To make the linear funding rule concrete, take \kappa=1 and suppose the oracle and mark follow (\hat{p}_{0},p_{0})=(1,1) , (\hat{p}_{1},p_{1})=(1.5,1.4) , (\hat{p}_{2},p_{2})=(1.25,1.3) , with quantities unchanged (so \tfrac{L}{S}=\tfrac{3}{5} ). Then with \kappa=1 , \gamma_{1}=\tfrac{L}{S}-\tfrac{p_{1}}{\hat{p}_{1}}=0.6-\tfrac{1.4}{1.5}\approx-0.3333 and \gamma_{2}=0.6-\tfrac{1.3}{1.25}=-0.44 (longs pay shorts at both steps). Per-step funding cash to each position is \gamma_{t}p_{t}\,(b_{i}q_{i}) (positive means received, negative means paid): \begin{array}[]{c|ccccc}t&\mathfrak{p}_{A}&\mathfrak{p}_{B}&\mathfrak{p}_{C}&\mathfrak{p}_{D}&\mathfrak{p}_{E}\\ \hline\cr 0&0.0000&0.0000&0.0000&0.0000&0.0000\\ 1&-0.4667&-0.4667&+1.8667&-0.4667&+0.4667\\ 2&-0.5720&-0.5720&+2.2880&-0.5720&+0.5720\\ \end{array} Values follow Eq. ( 3 ) using (\hat{p}_{t},p_{t}) above. Profit and Loss. Given funding rates, one can write the explicit profit and/or loss that a trader faces during the lifetime of their position. We define the profit-and-loss (PNL) of duration T>0 , \mathsf{PNL}_{s:T}:({\mbox{\bf R}}_{+}^{4}\times\{-1,1\})\times{\mbox{\bf R}}_{+}^{T}\times{\mbox{\bf R}}_{+}^{T}\rightarrow{\mbox{\bf R}} as: \mathsf{PNL}_{s:T}((q,c,\ell,t,b),p_{1:T},\hat{p}_{1:T})=\mathbf{1}_{s\leq t0\,\},\qquad\mathcal{L}_{t}\ =\ \{\,i:\ e(\mathfrak{p}_{i,t})<0\,\}. Write their sizes as k_{t}=|\mathcal{W}_{t}| and m_{t}=|\mathcal{L}_{t}| . We will use \mathcal{W}_{T},\mathcal{L}_{T} for the terminal sets at horizon T . Example. To illustrate the maintenance test, let \mu=0.10 and reuse the [0,1] price and funding path above. Equities at t=1 (using c_{i,1}=c_{i} ) are \displaystyle e(\mathfrak{p}_{A}) \displaystyle=2-0.0667\approx 1.9333, \displaystyle e(\mathfrak{p}_{B}) \displaystyle=\tfrac{2}{3}-0.0667\approx 0.6000, \displaystyle e(\mathfrak{p}_{C}) \displaystyle=\tfrac{8}{3}+0.2667\approx 2.9334, \displaystyle e(\mathfrak{p}_{D}) \displaystyle=\tfrac{2}{19}-0.0667\approx 0.0386, \displaystyle e(\mathfrak{p}_{E}) \displaystyle=\tfrac{10}{99}+0.0667\approx 0.1677. At t=2 (using the same path and c_{i,2}=c_{i} ), equities are \displaystyle e(\mathfrak{p}_{A}) \displaystyle\approx 1.2613, \displaystyle e(\mathfrak{p}_{B}) \displaystyle\approx-0.0720, \displaystyle e(\mathfrak{p}_{C}) \displaystyle\approx 5.6214, \displaystyle e(\mathfrak{p}_{D}) \displaystyle\approx-0.6334, \displaystyle e(\mathfrak{p}_{E}) \displaystyle\approx 0.8397. Note that under this price move, there are now negative equity positions that are liquidatable. Maintenance Margin. As spot and future prices change, an exchange needs to enforce dynamic collateral requirements to avoid insolvencies. The maintenance margin ratio , m_{\mu} , represents the ratio of collateral to notional exposure that a trader must maintain under adverse price moves. With m_{\mu}\in(0,1) and equity from eq. ( 6 ), a position is maintenance-insolvent (and liquidatable) when e(\mathfrak{p}_{i,t})\ \leq\ m_{\mu}\,p_{t}\,|q_{i}|. (7) Note that maintenance margin depends on the equity of a position ( e.g. includes the position’s PNL) whereas initial margin only depends on the initial cash position. If a user violates ( 7 ) due to a price move, they can add collateral within a specified time interval to keep their position open. Otherwise, the venue liquidates the position. Example. Take m_{\mu}=0.10 and reuse the [0,1] path above with p_{1}=1.4 and the computed equities e(\mathfrak{p}_{A})\approx 1.9333,\quad e(\mathfrak{p}_{B})\approx 0.6000,\quad e(\mathfrak{p}_{C})\approx 2.9334,\quad e(\mathfrak{p}_{D})\approx 0.0386,\quad e(\mathfrak{p}_{E})\approx 0.1677. The maintenance thresholds are m_{\mu}p_{1}|q|=(0.14,\ 0.14,\ 0.56,\ 0.14,\ 0.14) for (A,B,C,D,E) . Here e(\mathfrak{p}_{D})\leq m_{\mu}p_{1}|q| while others remain above the threshold. Position D is maintenance-insolvent and would need to add collateral or be liquidated. Leverage Mass. The final quantity we will define aims to measure how much leverage the winning (positive equity) and losing (negative equity) sides have on the exchange. This will serve as a coarse measure of an exchange’s risk exposure and will be used in § 5 . We define a natural aggregate leverage quantity for both the winning and losing sides that normalizes leverage by equity, allowing us to compare traders with very different margin ratios on a common “true asset composition” scale. For i\in\mathcal{W}_{t} define the winner effective leverage \lambda^{+}_{i,t}=\frac{n_{i,t}}{e(\mathfrak{p}_{i,t})} , and for i\in\mathcal{L}_{t} the loser effective leverage \lambda^{-}_{i,t}=\frac{n_{i,t}}{|e(\mathfrak{p}_{i,t})|} . The winner and loser leverage masses are \ell^{+}_{t}\ =\ \sum_{i\in\mathcal{W}_{t}}\lambda^{+}_{i,t},\qquad\ell^{-}_{t}\ =\ \sum_{i\in\mathcal{L}_{t}}\lambda^{-}_{i,t},\qquad\bar{\ell}^{\pm}_{t}\ =\ \frac{\ell^{\pm}_{t}}{n}\ (\text{per--trader}). (8) Note that unlike the leverage \ell_{i,t} , we divide by the equity (which can be larger or smaller than leverage, depending on the trader’s PNL). Example. Consider t=1 with p_{1}=1.40 . Then n_{i,1}=p_{1}q_{i}=1.4 for i\in\{A,B,D,E\} and 5.6 for C . Using the equities at t=1 above, all five are winners and \displaystyle\lambda^{+}_{A,1} \displaystyle=\tfrac{1.4}{1.9333}\approx 0.7246, \displaystyle\lambda^{+}_{B,1} \displaystyle=\tfrac{1.4}{0.6000}=2.3333, \displaystyle\lambda^{+}_{C,1} \displaystyle=\tfrac{5.6}{2.9334}\approx 1.9090, \displaystyle\lambda^{+}_{D,1} \displaystyle=\tfrac{1.4}{0.0386}\approx 36.269, \displaystyle\lambda^{+}_{E,1} \displaystyle=\tfrac{1.4}{0.1677}\approx 8.353. Hence \ell^{+}_{1}\approx 49.59 ; the large \lambda^{+}_{D,1} reflects D ’s very small equity at t=1 . Recall D ’s opening leverage was only \ell_{D,0}\approx 9.5 , so effective leverage can greatly exceed raw leverage when equity has been eroded by losses. At t=2 with p_{2}=1.30 , n_{i,2}=p_{2}|q_{i}| equals 1.3 for i\in\{A,B,D,E\} and 5.2 for C . From the equity example above, the winner/loser sets are \mathcal{W}_{2}=\{A,C,E\} with e_{A}\approx 1.2613 , e_{C}\approx 5.6214 , e_{E}\approx 0.8397 and \mathcal{L}_{2}=\{B,D\} with e_{B}\approx-0.0720 , e_{D}\approx-0.6334 . Winner effective leverages are \displaystyle\lambda^{+}_{A,2} \displaystyle=\tfrac{1.3}{1.2613}\approx 1.031, \displaystyle\lambda^{+}_{C,2} \displaystyle=\tfrac{5.2}{5.6214}\approx 0.925, \displaystyle\lambda^{+}_{E,2} \displaystyle=\tfrac{1.3}{0.8397}\approx 1.548, so \ell^{+}_{2}\approx 3.504 . Loser effective leverages are \displaystyle\lambda^{-}_{B,2} \displaystyle=\tfrac{1.3}{|{-}0.0720|}\approx 18.05, \displaystyle\lambda^{-}_{D,2} \displaystyle=\tfrac{1.3}{|{-}0.6334|}\approx 2.052, so \ell^{-}_{2}\approx 20.102 . The ratio of leverage masses \ell^{-}_{2}/\ell^{+}_{2}\approx 5.7 shows that, at this horizon, most effective leverage sits on the losing side of the book. Here B and D have the same notional n_{i,2} but very different effective leverages, illustrating how \lambda^{\pm}_{i,t} can diverge from the raw leverage \ell_{i,t} when equities differ. 2.2 Liquidations When a user’s position is insolvent, i.e., ( 7 ) holds, the exchange must liquidate the position — that is, remove some or all of the position from \mathcal{P}_{n} . Liquidations are used to ensure that the exchange itself remains solvent, which ensures that traders can withdraw their funds and profits as expected. The process of liquidating a position is probabilistic, however, and can fail in a number of ways. We will illustrate the high-level process of liquidation using bankruptcy and liquidation prices. Then we will describe how exchanges can lose solvency when liquidations fail, leading to the usage of autodeleveraging mechanisms. Our description of liquidations is minimal, avoiding formal mathematical description unless needed, as we are concerned with liquidation failure versus liquidation mechanics. We refer the interested reader to [ 104 , 90 , 95 , 8 ] for detailed accounts of liquidation mechanisms and modeling on centralized and decentralized venues. 2.2.1 Liquidation Prices Before defining how liquidations work, we need to define criteria for when a position is eligible for liquidation. These criteria depend on when certain prices are reached where a trader position has low or negative equity. We focus on defining three prices: bankruptcy price (zero equity), liquidation price (low equity), and execution price (actual realized price of a liquidation). In practice, liquidation mechanisms often use more price-based variables to decide on execution. However, all mechanisms define these three prices, allowing us to abstract liquidations to mechanisms involving these prices. Bankruptcy Price. The bankruptcy price of a position \mathfrak{p}_{i,t} , p^{bk}(\mathfrak{p}_{i,t}) , is the highest price at which the position is totally insolvent. The threshold condition for a position to be totally insolvent is e_{T}(\mathfrak{p}_{i,t})=0 : 0=e_{T}(\mathfrak{p}_{i,t})=c_{i,t}+\mathsf{PNL}_{T}(\mathfrak{p}_{i,t},p_{1:T},\hat{p}_{1:T})=c_{i,t}+b_{i}q_{i}(p^{bk}(\mathfrak{p}_{i,t})-p_{t})+\Gamma(\mathfrak{p}_{i,t},t,\hat{T}) Rearranging this gives: p^{bk}(\mathfrak{p}_{i,t})=\max\left(p_{t}-\frac{c_{i,t}+\Gamma(\mathfrak{p}_{i,t},t,\hat{T})}{b_{i}q_{i}},0\right) (9) One can view the bankruptcy price as the worst-case liquidation price, in the sense that if the position is liquidated at any p0 , such that if it takes a global loss of \delta units of equity to become truly insolvent, then the exchange is deemed approximately insolvent. This notion of approximate insolvency is useful in practice, as it allows an exchange to have a risk parameter for tuning how aggressively it enters the ADL regime. Formally, we define an exchange to be \delta -insolvent if the following condition holds \mathsf{Solv}_{T}(\mathcal{P}_{n})\leq\delta . Comparison to overcollateralized lending. In overcollateralized lending, where a user uses one crypto asset as collateral to borrow another crypto asset, there is a similar notion of a user’s equity position. However, in overcollateralized lending, the user’s equity position is not global, but rather is local to the user. The goal of a lending protocol is to ensure that the equity e_{lend}(p)\geq 0 for every user’s position p . Ensuring per account solvency condition inherently forces overcollateralized lending protocols to offer far lower leverage than perpetuals exchanges. From a mathematical standpoint, perpetual solvency is easier to satisfy, allowing for higher leverage — there is only one global constraint that has to hold versus O(n) local constraints for n users. However, in perpetuals exchanges, users who are solvent can face losses from users who are insolvent which cannot happen in isolated overcollateralized lending markets like Morpho. Insurance Funds. Many exchanges maintain an insurance fund to cover bad debt that arises from failed liquidations. When a positive shortfall D_{t}>0 is realized, the insurance fund is used to reduce D_{t} to as close to zero as possible. The insurance fund is typically funded using a portion of the exchange’s revenue from transaction, liquidation, and funding fees. Insurance reserves in crypto funds were first popularized alongside perpetual futures in the mid-2010s (notably on BitMEX) [ 104 ] . A majority of perpetuals venues (centralized and on-chain) maintain such reserves ( e.g. BitMEX [ 24 ] , Binance [ 21 ] , Drift [ 46 ] , Bybit [ 30 ] ). To illustrate the size of these funds, we note that mid-2025 estimates place OKX and Bybit insurance funds at roughly $300M and $150M, respectively [ 70 ] . We will first provide a simple model for how the insurance fund evolves over time. Let \mathsf{IF}_{t}\geq 0 denote the insurancefund balance at time t . Furthermore, let \mathcal{T}_{t} be the multiset of liquidations at time t with sizes \{\Delta q_{j}\}_{j\in\mathcal{T}_{t}} and execution costs \tau_{t}(\Delta q_{j})\in{\mbox{\bf R}}_{+} ( cf. eq. ( 12 )). Let V_{t}\geq 0 denote the gross traded volume (absolute quantity) in the contract at time t . We introduce three parameters to model insurance fund growth: \alpha,\beta,\eta\in[0,1] . The \alpha,\beta,\eta parameters controls how much of liquidation, funding, and trading fee revenue is added \mathsf{IF}_{t} , respectively. Given these parameters, the time evolution of the insurance fund is given by: \mathsf{IF}_{t+1}=\mathsf{IF}_{t}+\alpha\sum_{j\in\mathcal{T}_{t}}\tau_{t}(\Delta q_{j})+\eta\,p_{t}V_{t}+\beta\sum_{i=1}^{n}|\gamma_{t}|\,p_{t}\,q_{i}-\min\{\mathsf{IF}_{t},\,D_{t}\} (15) Note that the positive contributions represent the revenue sharing terms whereas the negative contribution represents the cover of a shortfall using the insurance fund. The main quantity of interest, given \mathsf{IF}_{t} , is the residual shortfall . This represents the amount of bad debt that cannot be covered by the insurance fund and needs to be socialized via ADL (§ 2.4 ). Formally, we define the residual shortfall as: R_{t}=D_{t}-\min\{\mathsf{IF}_{t},\,D_{t}\}=(D_{t}-\mathsf{IF}_{t})_{+} (16) We note that when R_{t}>0 , an ADL mechanism is triggered. We term times t such that R_{t}>0 as breach times . The frequency of breach events is referred to as breach frequency or breach rate . Example. Continuing from the previous liquidation example, the bad debt realized at t=4 by \mathfrak{p}_{E} is D_{4}\;=\;(p^{exec}_{E}-p^{bk}(\mathfrak{p}_{E,4}))\,\Delta q_{E}\;\approx\;0.399. Let \mathsf{IF}_{4} denote the pre-coverage fund balance. The coverage is \min\{\mathsf{IF}_{4},D_{4}\} and the ADL residual is R_{4}=(D_{4}-\mathsf{IF}_{4})_{+} . We assume that the fund evolves via eq. ( 15 ) and model liquidation fees as affine in notional size: \tau_{t}(\Delta q)=\tau^{fix}+\phi^{mark}\,p_{t}\,\Delta q+\phi^{exec}\,p^{exec}_{t}\,\Delta q, where \tau^{fix} is a fixed fee and \phi^{mark},\phi^{exec} are proportional rates on mark and execution price, respectively. Using the Hyperliquid fee schedule (\tau^{fix},\phi^{mark},\phi^{exec})=(0,20\,\mathrm{bps},10\,\mathrm{bps}) (see § 2.2.2 ), the fees are \tau_{4}(\Delta q_{E})=0+20\cdot 10^{-4}\cdot p_{4}\,\Delta q_{E}+10\cdot 10^{-4}\cdot p^{exec}_{E}\,\Delta q_{E}\approx 0.00365. Assuming \gamma_{4}=0 and neglecting trading volume V_{4} for simplicity: • Sufficiently sized fund ( R_{4}=0 ). If \mathsf{IF}_{4}\geq D_{4} , the debt is fully covered. No ADL occurs. The balance updates to \mathsf{IF}_{5}=\mathsf{IF}_{4}+\alpha\,\tau_{4}(\Delta q_{E})-D_{4}. • Insufficiently sized fund ( R_{4}>0 ). If \mathsf{IF}_{4}0 . Optimal Insurance Fund Size. A natural question to ask is, what is the optimal size for an insurance fund? While this question is nuanced in practice, we provide a simple mean-field model that provides some intuition. In particular, we determine the optimal fund size K^{*} by minimizing a total cost function that balances the opportunity cost of capital against the expected franchise damage from ADL events. Let r>0 denote the opportunity cost of holding capital ( e.g. the risk-free rate) and \kappa>0 denote the reputation cost per unit of socialized loss (reflecting lost future volume). The exchange minimizes \min_{K\geq 0}\;rK+\kappa\,\mathop{\bf E{}}[(D_{T}-K)_{+}]. This is a classic newsvendor-type problem [ 11 ] . Classical result show that the optimal size is the Value-at-Risk of the deficit distribution at quantile 1-r/\kappa : K^{*}\;=\;\text{VaR}_{1-r/\kappa}(D_{T})\;=\;\inf\{x:\mathop{\bf Prob}(D_{T}\leq x)\geq 1-r/\kappa\}. For completeness, we provide a derivation in Appendix B.8 . Intuitively, as the reputation cost \kappa increases relative to the cost of capital r , the exchange holds a larger buffer to push ADL events further into the tail. 2.4 Autodeleveraging Any mechanism for reducing or closing profitable user positions to reduce an exchange’s insolvency is termed autodeleveraging (ADL). Mathematically, ADL mechanisms attempt to liquidating positions in order to reduce the residual R_{t} . This inherently means that users with positive equity ( e.g. are profitable) will be forced to close their positions and not realize their full profit. We first note that ADL mechanisms are not deterministic and foolproof. For example, if an exchange is already insolvent, \mathsf{Solv}_{T}(\mathcal{P}_{n})\leq 0 , then no deterministic ADL mechanism can return solvency. To see this, we define four key quantifies, the total shortfall D_{T}(\mathcal{P}_{n}) , the maximum shortfall \Delta_{T}(\mathcal{P}_{n}) , the total winner’s equity W_{T}(\mathcal{P}_{n}) , and the max-winner \omega_{T}(\mathcal{P}_{n}) : \displaystyle D_{T}(\mathcal{P}_{n}) \displaystyle=\sum_{\mathfrak{p}\in\mathcal{P}_{n}}\big(-e_{T}(\mathfrak{p})\big)_{+}\geq 0 \displaystyle\Delta_{T}(\mathcal{P}_{n}) \displaystyle=\max_{\mathfrak{p}\in\mathcal{P}_{n}}\big(-e_{T}(\mathfrak{p})_{-}\big)\geq 0 \displaystyle W_{T}(\mathcal{P}_{n}) \displaystyle=\sum_{\mathfrak{p}\in\mathcal{P}_{n}}e_{T}(\mathfrak{p})_{+}\geq 0 \displaystyle\omega_{T}(\mathcal{P}_{n}) \displaystyle=\max_{\mathfrak{p}\in\mathcal{P}_{n}}e_{T}(\mathfrak{p})_{+}\geq 0 For notational simplicity, we will use Roman letters for total quantities and Greek letters for maximum or extreme value quantities. The shortfall represents the total amount of negative equity whereas the winners’ equity represents the total amount of positive equity. By definition, \mathsf{Solv}_{T}(\mathcal{P}_{n})=W_{T}(\mathcal{P}_{n})-D_{T}(\mathcal{P}_{n}) , so if \mathsf{Solv}_{T}(\mathcal{P}_{n})\leq 0 , then D_{T}(\mathcal{P}_{n})\geq W_{T}(\mathcal{P}_{n}) , i.e., no amount of forced liquidations of positive equity can cover the shortfall. Instead, ADL mechanisms attempt to liquidate a fraction of the shortfall, then allow the market to react for some time ( e.g. for users to close positions or post more margin and spot prices to update), before attempting a future deleveraging (if needed). This means that the ADL process should be viewed probabilistically, as a sequence of decisions that are dynamically adjusted based on market conditions. We will demonstrate that from this perspective, ADL can be formulated as a standard reinforcement learning problem. ADL Policies. The fundamental object of reinforcement learning is the policy, which maps states of the world to actions. For ADL, the positions \mathcal{P}_{n} serve as the state space, whereas the actions are the fraction of shortfall to socialize and which positions are socialized. While the majority of exchanges ( e.g. Binance and Hyperliquid) use queue-based policies that greedily rank positions by PNL and leverage, we will define a formalism over a larger class of potential ADL policies. This larger class will enable us to find more efficient and fair ADL policies than queue-based models and includes pro-rata ADL policies used by smaller exchanges such as Drift and Paradex. An ADL policy \pi(\mathcal{P}_{n}) maps a perpetuals exchange to a fraction of shortfall to socialize, \theta\in[0,1] , and a set of haircuts to apply to positions, h\in[0,1]^{n} . We term the fraction \theta the severity of the ADL policy. For notational convenience we define \theta_{\pi},h_{\pi} as the severity and haircuts induced by an ADL policy \pi . We say an ADL policy \pi if valid if the following three constraints always hold: \sum_{\mathfrak{p}\in\mathcal{P}_{n}}h_{\pi,i}e_{T}(\mathfrak{p})_{+}=\theta_{\pi}D_{T}(\mathcal{P}_{n})=-\sum_{\mathfrak{p}\in\mathcal{P}_{n}}h_{\pi,i}e_{T}(\mathfrak{p})_{-}. (17) \theta_{\pi}D_{T}(\mathcal{P}_{n})\leq W_{T}(\mathcal{P}_{n}). (18) where p_{i} is the i th trader’s position. The first two conditions ( 17 ) ensure that when an ADL policy is executed, only a \theta % of the deficit is socialized from the winners to the losers ( i.e., a budget balance constraint). The third condition ( 18 ) ensures that \theta_{\pi} is chosen such that one does not need to haircut more equity than what the winners have ( i.e., a feasibility constraint). We define the post-policy deficit D^{\pi}_{T} , winners W^{\pi}_{T} , and max-winner M^{\pi}_{T} as \displaystyle D^{\pi}_{T} \displaystyle=\theta_{\pi}D_{T}(\mathcal{P}_{n}) \displaystyle\Delta^{\pi}_{T} \displaystyle=\theta_{\pi}\Delta_{T}(\mathcal{P}_{n}) \displaystyle W^{\pi}_{T} \displaystyle=\sum_{\mathfrak{p}\in\mathcal{P}_{n}}(1-h_{\pi,i})(e_{T}(\mathfrak{p}))_{+} \displaystyle\omega^{\pi}_{T} \displaystyle=\max_{\mathfrak{p}\in\mathcal{P}_{n}}(1-h_{\pi,i})(e_{T}(\mathfrak{p}))_{+} Our goal is to construct policies that minimize an objective function that balances individual user profits with global exchange solvency. Given an ADL policy outputting (\theta_{\pi},h_{\pi}) , the positive equity positions \mathcal{W}_{T}=\{i:e_{T}(\mathfrak{p}_{i})>0\} are haircut by h_{\pi,i} , leading to equities e_{T}(\mathfrak{p}_{i})\leftarrow(1-h_{\pi,i})e_{T}(\mathfrak{p}_{i}) for i\in\mathcal{W}_{T} . For instance, if we have equities e_{T}=(10,5,-5) and the ADL policy outputs haircuts (0.5,0,-1) , then the post-ADL equities are e_{T}=(5,5,0) . On the other hand, if the ADL policy outputs haircuts h=(0.25,0.5,-1) , then the final equities after execution of the policy are e_{T}=(7.5,2.5,0) . Examples of ADL Policies. We will first provide two canonical examples: queueing (or leverage ranking) and pro-rata . These examples represent the solvency policies of virtually all live perpetuals exchanges as of November 2025. For both of these policies, the choice of \theta_{\pi} is independent of the choice of h_{\pi} . Queue. The policy that the largest centralized exchange, Binance, and the largest decentralized exchange, Hyperliquid, use is the Queue policy. The implementation at these exchanges uses the PNL-leverage ranking. However, the Queue model is somewhat more generic, as we define it below. At a high level, the Queue strategy is a greedy algorithm that ranks positions using a score function , s_{T} . Once positions are ordered by score, positions are closed in order of score from highest to lowest, until the deficit is fully covered. We will denote this strategy as \pi_{Q} and define it via the algorithm that implements it. Given a haircut budget B=\theta_{\pi_{Q}}D_{T}(\mathcal{P}_{n}) , the algorithm to choose h_{i} works as follows: 1. For each position \mathfrak{p}=(q,c,\ell,t,b)\in\mathcal{P}_{n} , define the score 9 9 9 We note that technically, many exchanges define the leverage used in the score differently ( i.e., instead of the score being linear in \ell , some exchanges multiply by \frac{\ell pq}{pq+c}) . This does not change our main results and mainly adds technical complications to the example. s_{T}(\mathfrak{p},p^{ref}) . For the PNL-leverage ranking, we have s_{T}(\mathfrak{p},p^{ref})=\ell\,\frac{\hat{p}_{T}}{p^{ref}} . 2. Let \sigma\in\mathsf{Perm}(\mathcal{P}_{n}) be any permutation of the positions ranked by decreasing score s_{T}(\mathfrak{p},p^{ref}) 3. For i\in[n] , define A_{i}=(B-\sum_{j=1}^{i}e_{T}(\mathfrak{p}_{\sigma(j)})_{+})_{+} , where e_{T}(\mathfrak{p}_{\sigma(j)}) is the equity of the j th largest position under the ranking \sigma 4. Define h\in[0,1]^{n} as h_{\pi_{Q},\sigma(i)}=\begin{cases}1&\text{if }A_{i-1}-A_{i}=e_{T}(\mathfrak{p}_{\sigma(i)})_{+},\;A_{i}>0\\ \frac{A_{i-1}}{e_{T}(\mathfrak{p}_{\sigma}(i))}&\text{if }A_{i}=0,A_{i-1}>0\\ 0&\text{otherwise}\end{cases} (19) Note this definition of h_{\pi_{Q}} ensures that \sum_{i=1}^{n}h_{\pi_{Q},i}e_{T}(\mathfrak{p}_{i})=B , satisfying ( 17 ). On the other hand, since we only subtract positive equity positions ( e.g. j such that e_{T}(\mathfrak{p}_{\sigma(j)})_{+}>0 ), we satisfy ( 18 ) by construction. There is one remaining question to address: how should we interpret the score s_{T}(\mathfrak{p},p^{ref}) ? Most exchanges justify this form for the score by arguing that it can represent the risk a single position holds, so that the exchange ranks positions to ADL by risk-level. Winning, positive equity positions that are autodeleveraged first will tend to be higher risk positions ( i.e., used more leverage for their winnings). The price terms in the numerator, p_{\hat{T}} , represents the last mark price of the position whereas the parameter p^{ref} represents the initial or opening price of the user. Binance chooses the scoring parameter p^{ref}=p^{bk} of the position, i.e., s^{\text{Binance}}_{T}(\mathfrak{p})=\ell\frac{p_{\hat{T}}(\mathfrak{p})}{p^{bk}(\mathfrak{p})} . Hyperliquid, on the other hand, chooses the parameter p^{ref} to simply be the last mark price, p^{ref}=\hat{p}_{t} . In other words, Binance’s choice effectively ranks a position based on the maximum possible PNL that a user could realize whereas Hyperliquid simply chooses the current PNL. Pro-Rata Rules. This haircut strategy is even simpler than the Queue and has some benefits in terms of fairness, as we will show in § 6 . The Pro-Rata strategy, simply put, haircuts each winning user with positive equity by the same multiplicative fraction. The fraction is subject to budget constraints, as we describe below. Given a valid feasible shortfall \theta_{\pi}D_{T}(\mathcal{P}_{n}\leq W_{T}(\mathcal{P}_{n})) , the pro-rata haircut policy is defined as: h_{\pi_{PR}}(\mathfrak{p})=\frac{\theta_{\pi}D_{T}(\mathcal{P}_{n})}{W_{T}(\mathcal{P}_{n})}(e_{T}(\mathfrak{p}))_{+} (20) This ranking simply says that the positive equity positions are socialized proportional to their size. Some exchanges slightly modify this formula to include leverage ( e.g. Binance’s ADL Priority Index includes leverage and unrealized PNL [ 20 ] ; Aevo documentation discusses leverage-weighted priority [ 3 ] ), which penalizes higher leverage positions much like the PNL-leverage ranking: h_{\pi_{LPR}}(\mathfrak{p})=\left(\frac{\ell e_{T}(\mathfrak{p})_{+}}{\sum_{\mathfrak{p}\in\mathcal{P}_{n}}\ell e_{T}(\mathfrak{p})_{+}}\right)h_{\pi_{PR}}(\mathcal{P}_{n}) (21) e_{T,i} ranking ( k\rightarrow 1 ) k k-1 k-2 \cdots 2 1 deficit haircut queue haircut severity \theta=0.50 (a) Queue ADL: all haircuts fall on the highest-ranked winner. e_{T,i} ranking ( k\rightarrow 1 ) k k-1 k-2 \cdots 2 1 deficit haircut pro-rata haircuts severity \theta=0.50 (b) Pro-rata ADL: haircuts are shared across the surviving winners. Figure 2 : ADL severity example comparing queue and pro-rata coloring. Purple shading equals the negative equity mass (deficit) while blue shading shows the haircut mass allocated to winning traders. The queue panel’s dashed blue block at rank 2 highlights residual equity when the queue method allows partial closures; exchanges that close winners fully ( e.g. Hyperliquid) would shave this bar completely. Haircut mass matches deficit mass in each panel, illustrating severity \theta=0.50 . Per-account constraints. Suppose that one wants to enforce some per-account constraints on the amount haircut. For instance, suppose that we guarantee that for user i , their haircut h_{i} always satisfies h_{i}\leq\overline{h}_{i} (22) This corresponds to an exchange guaranteeing that a user will never lose more than \overline{h}_{i} % of their position in a single ADL round. Moreover, an exchange might also offer an absolute guarantee to users: if your equity is positive and sufficiently large, you will never be have your equity cut to below some threshold \underline{e}_{i} . This can be represented by the constraint (1-h_{\pi,i})e_{T}(\mathfrak{p}_{i})\geq\underline{e}_{i} (23) Numerous exchanges offer one or both of these guarantees on a per-ADL-round basis, including Hyperliquid, BitMEX, and Aevo [ 68 , 24 , 3 ] . Numerical example. Consider five accounts with equities e_{T}=(10,5,1,-3,-12) and queue order \sigma=(2,1,3,5,4) induced by the PNL-leverage scores. Let the queue policy choose severity \theta_{\pi_{Q}}=\tfrac{1}{2} , so the haircut budget is B=\theta_{\pi_{Q}}D_{T}(\mathcal{P}_{n})=7.5 . The construction in ( 19 ) yields A=(2.5,0,0,0,0) and haircuts h=(0.25,1,0,0,0) : the top winner is cut from 10 to 7.5 , the second winner is fully wiped out, and the remaining accounts are unchanged, giving e_{T}=(7.5,0,1,-3,-4.5) . If, before the next ADL decision, only the losing accounts partially recover to e_{T}=(7.5,0,1,-1.5,-2.25) , then a second round at the same severity \theta_{\pi_{Q}}=\tfrac{1}{2} autodeleverages all negative-equity accounts against the largest winner, yielding final equities e_{T}=(3.75,0,1,0,0) . Under the pro-rata rule ( 20 ) with the same severity \theta_{\pi_{PR}}=\tfrac{1}{2} , we have D_{T}=15 and W_{T}=16 , so the uniform haircut factor is \alpha=\theta_{\pi_{PR}}D_{T}/W_{T}=15/32 and each winning account’s equity is scaled by (1-\alpha)=17/32 , giving e_{T}=(170/32,85/32,17/32,-3,-12) . In particular, the ranking of positive-equity accounts is preserved under pro-rata, since all winners are multiplied by the same constant factor, illustrating its rank-preservation property. 2.5 ADL Trilemma The preceding subsections defined trader equity, exchange solvency, insurance funds, and autodeleveraging (ADL) policies. In this subsection we introduce a high–level design principle that organizes the rest of the paper: an ADL trilemma . Informally, a perpetuals venue cannot simultaneously (i) keep insolvency and ADL breach events rare, (ii) protect solvent winners from large socialized losses, and (iii) extract maximal long–run exchange revenue from trading and funding activity. Any ADL design must pick (at most) two of these three goals. Exchange revenue. To define the trilemma, we have to first formally describe what constitutes exchange revenue. Recall from § 2.3 that, given parameters \alpha,\beta,\eta\in[0,1] , the insurance fund \mathsf{IF}_{t} evolves by \mathsf{IF}_{t+1}=\mathsf{IF}_{t}+\alpha\sum_{j\in T_{t}}\tau_{t}(\Delta q_{j})+\eta\,p_{t}V_{t}+\beta\sum_{i=1}^{n}|\gamma_{t}|\,p_{t}|q_{i}|-\min\{\mathsf{IF}_{t},D_{t}\}, where T_{t} is the multiset of liquidations at t , V_{t} is traded volume, \gamma_{t} is the funding rate, and D_{t} is the period bad debt. For notational convenience, define the per–period gross fee flows \displaystyle\mathsf{Fee}^{\text{liq}}_{t} \displaystyle=\sum_{j\in T_{t}}\tau_{t}(\Delta q_{j}) \displaystyle\mathsf{Fee}^{\text{trade}}_{t}=p_{t}V_{t} \displaystyle\mathsf{Fee}^{\text{fund}}_{t}=\sum_{i=1}^{n}|\gamma_{t}|\,p_{t}|q_{i}|. Most exchanges fully collect liquidation and trading fees and potentially collect fees on funding rates. 10 10 10 In particular, we note that HLP-like systems where fees are charged on quoting offsetting positions can be viewed as a form of exchange revenue [ 69 ] . Moreover, a number of perpetuals AMM DEXs collect protocol revenue from funding flows [ 59 , 91 ] . Let \zeta\leq(1-\beta) be the expected fraction of funding rates that the exchange keeps as revenue. Then the exchange’s gross revenue at time t is \mathsf{Revenue}^{\text{gross}}_{t}=\mathsf{Fee}^{\text{liq}}_{t}+\mathsf{Fee}^{\text{trade}}_{t}+\zeta\mathsf{Fee}^{\text{fund}}_{t}. By construction, the fractions \alpha,\eta,\beta of these fee flows are diverted into the insurance fund. The remaining share accrues as net exchange revenue \mathsf{Revenue}_{t}:=(1-\alpha)\,\mathsf{Fee}^{\text{liq}}_{t}+(1-\eta)\,\mathsf{Fee}^{\text{trade}}_{t}+(1-\beta-\zeta)\,\mathsf{Fee}^{\text{fund}}_{t}. We note that in § 8 that we refine this notion of revenue to a discounted exchange long–term value (LTV). The LTV accounts for future expected fee flows and traders leaving the exchange as a function of the realized ADL haircuts. Three competing desiderata. There are three main goals that an ADL policy aims to enforce for traders and exchanges: revenue, solvency, and fairness. We formalize these notions in the sequel: • Solvency. (§ 4 , § 5 ) The exchange aims to ensure that R_{t}=0 for most times t and that the total shortfall \sum_{t}R_{t} is small relative to the expected insurance fund size. This desideratum is beneficial to both the exchange and traders. • Fairness and moral hazard. (§ 6 , § 7 ) Traders want to know that if they face socialization, they will not be asked to absorb a portion of R_{t} that is too large relative to their notional exposure on the exchange. This desideratum is mainly beneficial to traders. • Exchange revenue and participation. (§ 8 ) Heavy ADL on high–value winners can trigger traders exiting the exchange permanently, shrinking future fee flows. This desideratum is mainly beneficial to the exchange. It is clear that \alpha,\beta,\eta and the ADL policy \pi jointly control these three dimensions. But a natural question is what the trade-offs are between these three desiderata at different values of \alpha,\beta,\eta and parametrizations of \pi . Raising \alpha,\beta,\eta builds the reserve faster and decreases breaches ( i.e., times with R_{t}>0 ), but diverts exchange revenue into the fund. Increasing ADL severity (or concentrating haircuts) makes breaches rarer and accelerates solvency, but worsens fairness and drives away the highest–value winning traders. Keeping severities ( i.e., total solvency resolved by ADL) small preserves fairness and participation, but leaves the exchange exposed to repeated shortfalls. The goal of this paper is to formalize these three statements via a trilemma: Proposition 2.1 (Trilemma, Informal) . Fix a sequence of perpetuals exchanges \mathcal{P}_{n} and static ADL policies \pi_{n} with insurance parameters (\alpha,\beta,\eta) . Under the heavy-tailed shortfall assumptions of § 5 , no policy family (\pi_{n}) can simultaneously satisfy the following uniformly in n : (S) Solvency: Residual risk is controlled, i.e.,, \sum_{t}R_{t}(\pi_{n})=O_{p}(1) and \mathbb{P}[R_{t}(\pi_{n})>0]=O(1) . (F) Fairness: Moral hazard is bounded, i.e.,, \omega^{\pi}_{T}/D^{\pi}_{T}=\Theta(1) and \omega^{\pi}_{T}/\Delta^{\pi}_{T}=\Theta(1) . (R) Revenue: Exchange revenue is preserved relative to a benchmark, i.e.,, \text{LTV}(\pi_{n})\asymp\text{LTV}_{\text{benchmark}} . Enforcing (S) requires sacrificing (F) (via concentrated haircuts) or (R) (via excessive insurance diversion). Conversely, preserving (F) and (R) necessitates frequent solvency breaches. A formal statement with precise definitions and a complete proof of the proposition appears in Appendix J . Proof sketch and roadmap. The remainder of the paper establishes the Trilemma by analyzing each desideratum in turn: • Solvency Ratios (§ 5 , Appendix C ). We analyze the ratio \omega^{\pi}_{T}/D^{\pi}_{T} under heavy-tailed assumptions. Theorem C.3 proves that for any budget-balanced static ADL with severity \theta_{n} , the ratio scales as b_{n}/(\theta_{n}n) . Consequently, enforcing rare breaches (large \theta_{n} ) drives the ratio to zero, violating (F) . • Fairness Models (§ 6 –§ 7 , Appendices D – F.2 ). We formalize fairness in two regimes. First, for a single round (§ 6 ), we show that capped pro-rata is the unique policy satisfying Sybil resistance and monotonicity. Second, under external shocks (§ 7 ), we prove that leverage-weighted rules (RAP) minimize future shortfall but sacrifice the most systemically important winners, highlighting the tension between short-term robustness and long-term participation. • Revenue and Price of Anarchy (§ 8 , Appendix G.3 ). We model the revenue-solvency tradeoff as a Stackelberg game between the exchange and traders. We show that static severities yield an unbounded Price of Anarchy ( J_{n}(\pi)\sim\theta_{n}n/b_{n} ) compared to dynamic policies. This confirms that achieving (R) and (S) simultaneously requires dynamic intervention, as static rules cannot balance the trilemma asymptotically. 3 Risk and Fairness Preliminaries To analyze how different ADL policies balance solvency and winner survival, we require metrics that capture both the magnitude of losses (risk) and their distribution across traders (fairness). Classical risk measures like Value-at-Risk (VaR) and Expected Shortfall (ES) quantify aggregate solvency but ignore how the burden is shared. To address this, we introduce fairness-aware metrics and distributional orderings that allow us to rank policies based on how they concentrate or spread losses among winners. We then provide with an brief presentation of extreme-value scaling that we use in the sequel, before concluding with a brief introduction to algorithmic fairness. The preliminaries in this section are meant to be incomplete and we refer the reader to the literature cited for more details. 3.1 Risk Metrics 3.1.1 Traditional Risk Metrics We briefly review standard metrics used in finance and regulation [ 27 , 18 ] . For a loss X\geq 0 and confidence level \alpha\in(0,1) : • Value-at-Risk (VaR): The quantile \mathrm{VaR}_{\alpha}(X)=\inf\{x:\mathop{\bf Prob}(X>x)\leq\alpha\} . • Expected Shortfall (ES): The average loss in the worst \alpha -fraction of cases, \mathrm{ES}_{\alpha}(X)=\mathop{\bf E{}}[X\mid X\geq\mathrm{VaR}_{\alpha}(X)] . In ADL, we apply these to the residual shortfall R_{t} to measure solvency risk. 3.1.2 ADL-Specific Efficiency Metrics To capture the trade-off between solvency and trader welfare, we define two ratios that normalize winner survival by the scale of the default: • Profitability-to-Total-Solvency Ratio (PTSR): \mathsf{PTSR}_{T}(\pi)=\mathop{\bf E{}}\left[\frac{\omega^{\pi}_{T}}{D^{\pi}_{T}}\right]. This measures the survival of the top winner relative to the total socialized loss. A low PTSR indicates that the most profitable trader is being disproportionately cannibalized to cover deficits. • Profitability-to-Maximum Solvency Ratio (PMR): \mathsf{PMR}_{T}(\pi)=\mathop{\bf E{}}\left[\frac{\omega^{\pi}_{T}}{\Delta^{\pi}_{T}}\right]. This compares the top winner’s equity to the largest single loser’s shortfall, capturing the concentration of risk on both sides of the trade. These ratios mirror the VaR/ES distinction: PTSR captures aggregate efficiency, while PMR captures tail concentration. We formalize this connection and derive exact relationships in Appendix C . 3.2 Fairness and Distributional Comparisons While scalar metrics like PTSR provide summary statistics, they cannot fully capture the fairness of a policy across the entire population of winners. Two policies might achieve similar solvency but distribute the pain very differently — one by wiping out a few large winners (Queue), another by shaving everyone slightly (Pro-Rata). To rank policies robustly, we use tools from majorization theory [ 81 ] . Schur-Convexity and Submajorization. We compare haircut vectors h\in{\mbox{\bf R}}^{n} using submajorization ( \prec_{w} ). We say a policy \pi_{A} is more fair (or less concentrated) than \pi_{B} if its haircut vector is submajorized by \pi_{B} ’s, i.e., h(\pi_{A})\prec_{w}h(\pi_{B}) . A function \phi:{\mbox{\bf R}}^{n}\to{\mbox{\bf R}} is said to be Schur-convex if x\prec_{w}y implies \phi(x)\leq\phi(y) , i.e., it increases with concentration. This implies that for any convex, symmetric cost function \phi (representing trader disutility), the aggregate distress is lower under \pi_{A} : h(\pi_{A})\prec_{w}h(\pi_{B})\implies\sum\phi(h_{i}(\pi_{A}))\leq\sum\phi(h_{i}(\pi_{B})). This gives us a powerful, parameter-free way to claim that Pro-Rata is “fairer” than Queue: it minimizes the collective pain for all convex risk attitudes. We provide a detailed treatment of these orderings and their application to ADL in Appendix F.2 . Comonotonicity. In our worst-case analysis, we often consider comonotonic couplings, where winners’ profits and losers’ deficits are perfectly correlated (move in lockstep). This represents the most dangerous regime for ADL, as large deficits coincide with large winner profits, testing the policy’s ability to extract liquidity without destroying the best traders. Our negative results in § 5 exploit this structure to derive tight bounds on the Trilemma. See Appendix F.2 for further details on comonotonic risk bounds. 3.3 Extreme–value scaling Our asymptotic analysis relies on extreme–value scales : deterministic sequences that characterize the typical magnitude of the largest winner equity and the largest loser shortfall in the limit of a large market. Recall the winner and loser index sets \mathcal{W}_{T} and \mathcal{L}_{T} with cardinalities k_{n} and m_{n} , respectively. Under mild mixing we assume the aggregate winner and loser masses concentrate at linear scales: \left(\frac{W_{T}(\mathcal{P}_{n})}{n},\,\frac{D_{T}(\mathcal{P}_{n})}{n}\right)\xrightarrow{p}(\mu_{+},\mu_{-}). (24) Here \mu_{+},\mu_{-}>0 summarize the average winner and loser magnitudes. We define the respective maxima as \big(\omega_{T},\,\Delta_{T}\big)=\left(\max_{i\in\mathcal{W}_{T}}\big(e_{T}(\mathfrak{p}_{i,T})\big)_{+},\,\max_{i\in\mathcal{L}_{T}}\big(-e_{T}(\mathfrak{p}_{i,T})\big)_{+}\right). (25) A pair of deterministic, increasing sequences \{b^{+}_{k}\}_{k\geq 1} and \{b^{-}_{m}\}_{m\geq 1} constitute extreme–value scales if there exist constants c_{+},c_{-}\in(0,\infty) such that, as n\to\infty , \left(\frac{\omega_{T}}{b^{+}_{k_{n}}},\,\frac{\Delta_{T}}{b^{-}_{m_{n}}}\right)\xrightarrow{p}(c_{+},c_{-}). (26) We abbreviate b_{n}=b^{+}_{k_{n}} when the context (winner side) is unambiguous. A canonical choice, consistent with classical extreme–value theory, is the set of upper–quantile normalizers : \big(b^{+}_{k},\,b^{-}_{m}\big)=\left(F_{+}^{-1}\!\left(1-\frac{1}{k}\right),\,F_{-}^{-1}\!\left(1-\frac{1}{m}\right)\right). (27) where F_{+} and F_{-} denote the distribution functions of winner-side positive equities and loser-side shortfalls, respectively. Extreme–value severity scales. We refer to \theta_{n}=\Theta(b_{n}/n) as the extreme–value severity scale . This choice aligns the haircut magnitude with the typical largest winner equity b_{n}=b^{+}_{k_{n}} in a large market where k_{n}=\Theta(n) . Examples. Two prototypical cases appear throughout our analysis: • Light tails (sub–Gaussian). For distributions with sub–Gaussian scales \sigma_{+},\sigma_{-} , b^{+}_{k}\ \asymp\ \sigma_{+}\sqrt{2\log k},\qquad b^{-}_{m}\ \asymp\ \sigma_{-}\sqrt{2\log m}. • Power–law tails (Pareto/Fréchet). For distributions satisfying \mathop{\bf Prob}\{(e_{T})_{+}>x\}\sim C_{+}x^{-\alpha_{+}} and \mathop{\bf Prob}\{(-(e_{T}))_{+}>x\}\sim C_{-}x^{-\alpha_{-}} with \alpha_{\pm}>0 , b^{+}_{k}\ \asymp\ (C_{+}k)^{1/\alpha_{+}},\qquad b^{-}_{m}\ \asymp\ (C_{-}m)^{1/\alpha_{-}}. 3.4 Fairness Algorithmic Fairness in ADL. Algorithmic fairness literature distinguishes between axiomatic approaches, which posit structural invariants (often yielding impossibility results [ 12 , 73 ] ), and optimization approaches, which minimize disparate impact via convex programs [ 50 ] . ADL spans both: queue-based policies resemble discrete ranking mechanisms subject to Arrow-style impossibilities, while pro-rata policies admit continuous convex formulations. We adopt an axiomatic perspective to characterize “ideal” fairness, then relax it to optimize for robustness. Axiomatic Properties. We formalize three operational desiderata for fair ADL policies: • Sybil Resistance: Splitting an account into multiple smaller positions (or merging them) should not alter the aggregate haircut. This ensures outcomes depend on total exposure, not identity or fragmentation. Queue-based rules violate this, as splitting a large winner can push parts of its equity lower in the priority stack. • Monotonicity (Stable Ordering): The policy should preserve the relative ordering of winners. If trader A has more equity than trader B pre-ADL, A should also have more equity post-ADL. This prevents arbitrary re-ranking of survivors. • Scale Invariance: If all deficits and equities scale by \lambda>0 , the relative haircuts should remain unchanged. This ensures the mechanism responds to leverage and risk distribution , not nominal sizes. In § 6 , we prove that capped pro-rata is the unique policy satisfying all three properties, whereas standard queueing fails Sybil resistance and monotonicity. 3.5 Moral hazard Moral hazard is a generic incentive problem that arises when one party (the agent ) can take actions that affect risk or payoffs, but those actions are not perfectly observable, verifiable, or contractible by the party bearing some of the downside (the principal ); see, e.g. 67 , 77 . Classic examples include workers choosing effort under wage contracts, managers taking portfolio risk on behalf of investors, or insurers providing coverage to policyholders whose behavior may change once insured. Because the agent’s action is hidden, the principal cannot simultaneously provide full insurance (so that the agent’s payoff is insulated from shocks) and preserve strong incentives for the agent to take socially desirable actions: risk sharing necessarily distorts effort incentives. The central goal of the moral-hazard literature is therefore to characterize second-best contracts (typically linear or otherwise simple sharing rules) that optimally trade off incentive provision against insurance under information constraints [ 49 , 31 ] . Moral hazard also couples to robustness: contracts must work across environments and counterparties, pushing outcomes away from the first-best benchmark [ 49 ] . The same friction arises whenever losses are socialized ( e.g. insurance pools or centrally cleared derivatives) as risk sharing dulls the ability for individuals to manage risk efficiently. ADL fits this template: winners and losers supply mutual insurance while the exchange chooses the loss-sharing rule. The negative results in Section 5 formalize the resulting second-best trade-off. 4 Severity Optimization We decompose the ADL problem into two orthogonal components: severity (how much to socialize) and haircuts (who pays). Solvency is driven almost entirely by the scalar severity sequence (\theta_{t}) , while fairness and revenue depend on the haircut distribution h_{t} . Since § 6 –§ 7 cover haircut design, here we focus on optimizing \theta_{t} to balance solvency against the risk of driving away traders. Severity Policies. A causal severity policy maps available information \mathcal{F}_{t} (deficits, funding rates, risk limits) to a severity fraction \theta_{t}\in[0,1] . We contrast three approaches: 1. Static Interpolation: \theta_{t} is fixed or linearly moves between deficit-matching \theta_{t}^{\text{match}}=\min\{1,\ \sum_{i}e_{t,i}/D_{t}\} (so H_{t}=B_{t}^{\star} when feasible) and a cap \bar{\theta} ( e.g. 1). 2. Exponential Backoff: \theta_{t}=\theta_{0}\alpha^{k_{t}} decays as the number of recent shocks k_{t} increases. This prevents cascading failures from wiping out the entire book during prolonged stress. 3. Online Control (Mirror Descent): We treat severity selection as an online convex optimization problem. The controller adjusts \theta_{t} to minimize a regret bound combining solvency costs ( R_{t} ) and revenue loss (excessive haircuts). This approach adapts to non-stationary market conditions and respects caps \Theta_{t} derived from the Price of Anarchy analysis in § 8 . Separation Principle. Under the budget-balance constraint ( 17 ), any one-round ADL policy \pi with severity \theta_{\pi} and haircuts h_{\pi} satisfies H(\pi)\;=\;\sum_{i}h_{\pi,i}\,e_{T}(\mathfrak{p}_{i})_{+}\;=\;\theta_{\pi}D_{T}(\mathcal{P}_{n}), so the post-ADL deficit is R_{T}(\pi)\;=\;(D_{T}(\mathcal{P}_{n})-H(\pi))_{+}\;=\;(1-\theta_{\pi})_{+}D_{T}(\mathcal{P}_{n}), which depends only on \theta_{\pi} and D_{T}(\mathcal{P}_{n}) , not on how H(\pi) is distributed across winners. Thus, any solvency functional that depends on \pi only via \{R_{t}(\pi)\}_{t} ( e.g. breach frequencies, VaR/ES of \sum_{t}R_{t} ) can be optimized over the scalar sequence (\theta_{t}) , holding the haircut rule fixed. Conversely, fairness and revenue functionals depend on the winner-side post-ADL equities \{(1-h_{\pi,i})e_{T}(\mathfrak{p}_{i})_{+}\}_{i} and are invariant to the choice of \theta_{t} once the total budget H_{t} is fixed. We exploit this separability in our numerics (§ 9 ) by tuning \theta_{t} (severity control) and h_{t} independently. 5 Negative Results We begin with two structural limits for ADL. They formalize a moral-hazard trade-off between solvency and winner payoffs that cannot be removed by better policy design. The tension is instantaneous and zero-sum at the shock: covering the aggregate deficit D_{T} eventually requires shaving the profits of the best winner. We first argue that this tension can be viewed as a form of moral hazard, in the sense used in principal-agent contracts. An exchange that earns fees from trading volume has an incentive to let very risky, highly leveraged users accumulate large positions. When these users default, their negative equity shows up as a large deficit D_{T} , which is then socialized onto the winners via ADL haircuts. In our model this is the basic moral-hazard question: the exchange enjoys fee revenue from risky losers, while the cost of their tail losses is borne by solvent winners. The results below quantify how this wedge scales as the market thickens, showing that the severity needed for solvency grows with the number of positions and with the leverage imbalance between losers and winners. 5.1 Impossibility of Avoiding Moral Hazard as n\to\infty We first show that the tension between solvency and winner survival scales unfavorably with market size, creating an unavoidable moral hazard wedge. Viewing traders as principals and the exchange as an agent, preserving the agent’s utility (solvency) asymptotically destroys the principals’ utility (winner profits) unless severity vanishes. Example. Consider a book of size n where loser positions are i.i.d. with mean loss \mu>0 , so aggregate deficit scales as D_{T}\approx\mu n . Suppose the top winner’s equity scales sub-linearly, e.g. b_{n}\sim c\log n (light tails). If the exchange commits to a fixed severity \bar{\theta}>0 to maintain solvency, the total haircut budget is H_{n}\approx\bar{\theta}\mu n . As n\to\infty , this linear haircut cost overwhelms the logarithmic winner equity: e_{n}^{\text{post}}\approx(c\log n-\bar{\theta}\mu n)_{+}\to 0. Thus, to preserve any winner profit, severity must vanish at the rate \theta_{n}=O(b_{n}/n) . Constant severity policies therefore represent a form of growing moral hazard: they transfer an increasingly large share of tail risk from the exchange to the most profitable traders. We formalize this scaling in Appendix C.6 . Main Result. In our model, socialization is instantaneously zero-sum: every dollar of deficit D_{T} covered by ADL must come from the winners’ equity. If ADL usage does not vanish as the market grows larger ( n\rightarrow\infty ), then one cannot simultaneously keep deficits small (solvency, low D_{T} ) and preserve winner payoffs (high \omega_{T} ). The proposition below quantifies this tradeoff in terms of extreme-value scales and can be read as a moral-hazard impossibility result in the principal–agent sense. Proposition 5.1 (Informal) . Suppose that the extreme value scale of the winning trader’s equity, \omega_{T}^{\pi}(\mathcal{P}_{n}) , is b_{n} . Then, \mathsf{PTSR}_{T}(\mathcal{P}_{n},\pi)=\mathop{\bf E{}}_{\pi}\left[\frac{\omega^{\pi}_{T}(\mathcal{P}_{n})}{D^{\pi}_{T}(\mathcal{P}_{n})}\right]\asymp\frac{b_{n}}{\theta_{n}\,n} In particular, the example above shows the order b_{n}/n is tight: unless the severity vanishes at the extreme–value scale, \theta_{n}=\Theta(b_{n}/n) , one cannot preserve the best trader’s profits as n\to\infty . Example. The bound b_{n}/n dictates the maximal safe severity for different distributions: • Gaussian Winners (Light Tails): For e_{i}\sim\mathcal{N}(0,1) , the maximum scales as b_{n}\sim\sqrt{2\log n} . Thus, severity must vanish rapidly, \theta_{n}\lesssim\sqrt{2\log n}/n , to avoid autodeleveraging the top winner. This implies that the shortfall that can be covered goes to zero as n\rightarrow\infty . • Pareto Winners (Heavy Tails): For e_{i}\sim\text{Pareto}(\alpha) with \alpha>1 , the maximum scales as b_{n}\sim n^{1/\alpha} . Here, the constraint is looser but still vanishing as n\rightarrow\infty : \theta_{n}\lesssim n^{-(1-1/\alpha)} . Even in the heavy-tailed case (infinite variance, \alpha<2 ), budget balance implies that a constant fraction severity \theta wipes out the top winner almost surely as n\to\infty . 5.2 Excessive leverage guarantees large maximal trader loss Another natural form of moral hazard, one that quantifies the role of the exchange as an agent, is the ratio of leverage held by the winning and losing sides. If losers generally have much more leverage than winners, then the exchange is giving winning traders a higher likelihood of paying socialized losses. We quantify this deficiency in risk management by the exchange by providing a more quantitative extreme value result: we show that the ratio of winner to loser leverages is a multiplicative term in how fast the winning trader’s position is likely to be autodeleveraged. Example. Consider a regime where loser leverage mass \ell^{-} dominates winner leverage mass \ell^{+} . Let b_{n}^{+} (resp. b_{n}^{-} ) denote the extreme value (EV) scales of winner and loser equities, respectively. Aggregate shortfall scales with loser liability, D_{T}\approx\ell^{-}b_{n}^{-} , while the top winner’s equity scales as \omega_{T}\approx\ell^{+}b_{n}^{+} . If severity \theta_{n} is fixed, the haircut budget H_{n}=\theta_{n}D_{T}\approx\theta_{n}\ell^{-}b_{n}^{-} is large. Comparing budget to winner equity: \frac{H_{n}}{\omega_{T}}\approx\theta_{n}\frac{\ell^{-}}{\ell^{+}}\frac{b_{n}^{-}}{b_{n}^{+}}. If \ell^{-}\gg\ell^{+} , even a small severity \theta_{n} creates a haircut larger than the top winner’s entire position. Thus, safe severity is throttled not just by market size but by the leverage imbalance \ell^{+}/\ell^{-} . See Appendix C.6 for the rigorous construction. Main Result. The next result makes the leverage–imbalance effect precise. When loser positions carry much more leverage than winners, the ratio of winner to loser leverage masses \ell_{n}^{+}/\ell_{n}^{-} enters multiplicatively in the EV-scale bound for the top winner’s survival. In moral-hazard terms, an exchange that tolerates very high loser leverage effectively exposes its best winners to autodeleveraging: even with small severities \theta_{n} , a large imbalance \ell_{n}^{-}/\ell_{n}^{+} can still force substantial haircuts on the most profitable traders. Proposition 5.2 (Informal) . Let b_{n}^{+},b_{n}^{-} be the extreme value scales of the winning and losing traders, respectively. Furthermore, let the winner and loser side leverage masses be \ell_{n}^{+},\ell_{n}^{-} , respectively. Then we have the general EVT scaling: \mathop{\bf E{}}_{\pi}\!\left[\frac{\omega^{\pi}_{T}(\mathcal{P}_{n})}{D^{\pi}_{T}(\mathcal{P}_{n})}\right]\ \asymp\ \frac{\ell_{n}^{+}}{\ell_{n}^{-}}\cdot\frac{b_{n}^{+}}{b_{n}^{-}}\cdot\frac{1}{\theta_{n}}. The full proof is in Appendix C . Example. The scaling is now modulated by the leverage imbalance \Lambda_{n}=\ell_{n}^{+}/\ell_{n}^{-} . • Symmetric Leverage ( \Lambda_{n}\asymp 1 ): If winner and loser leverages are comparable, the bound reverts to the previous case ( b_{n}^{+}/b_{n}^{-} ). • High Loser Leverage ( \Lambda_{n}\ll 1 ): If losers are 10\times more leveraged, the safe severity drops by 10\times . In the extreme, if \ell_{n}^{-}\sim n ( e.g. a few massive whales) while \ell_{n}^{+}\sim 1 (retail winners), the required severity \theta_{n} becomes vanishingly small even faster than the EV scale suggests. • High Winner Leverage ( \Lambda_{n}\gg 1 ): Conversely, if winners are highly leveraged (so their equity is sensitive to small price moves, but large in notional), the ratio \Lambda_{n} buffers the impact, allowing for larger severities without autodeleveraging the top winner. Moral Hazard Interpretation. These results formalize the “second-best” nature of ADL: perfect insurance without incentive distortion is impossible. Tail shocks necessarily haircut the top winners (Proposition 5.1 ), and high loser leverage magnifies that hit (Proposition 5.2 ). This is the same trade-off seen in clearinghouses: Variation Gains Haircutting trims winner gains to keep the CCP solvent [ 44 , 60 ] . ADL is the perpetual futures analogue of Variation Gain Haircutting ( i.e., an ex-post haircut on unrealized profits), so the same moral-hazard tension applies [ 48 , 93 ] . PTSR/PMR play the same role as VGH fairness/solvency gauges in CCP recovery [ 44 , 60 , 48 ] . 5.3 Queue-based Methods are the worst ADL policies for the top winning trade One result that we see empirically in § 9 is that the Queue mechanism is by far the worst ADL policy for the top winning trade. We briefly formalize this with an informal proposition that we prove in Appendix C.3 . Proposition 5.3 (Queue Maximizes Damage to Top Winner) . Among all valid ADL policies with fixed severity \theta , the Queue policy (haircut largest winners first) uniquely minimizes the survival of the top winner. Let \omega_{T}^{\text{Queue}} and \omega_{T}^{\text{PR}} be the top winner’s post-ADL equity under Queue and Pro-Rata, respectively. Whenever the haircut budget H=\theta D_{T} satisfies H\leq e_{(1)} , we have the strict gap \omega_{T}^{\text{PR}}-\omega_{T}^{\text{Queue}}\;=\;H\left(1-\frac{e_{(1)}}{W_{T}}\right)\;>\;0. Consequently, Pro-Rata strictly dominates Queue in terms of fairness metrics: \mathsf{PTSR}_{T}(\text{PR})-\mathsf{PTSR}_{T}(\text{Queue})\;=\;\theta\left(1-\frac{e_{(1)}}{W_{T}}\right). Thus, Queue maximizes the concentration of haircuts on the most profitable trader, leading to the worst possible PTSR/PMR scores. The full proof is in Appendix C.3 . Appendix C.5 further strengthens this statement by proving that Queue also minimizes the VaR and ES of the top survivor at every confidence level, so even classical risk metrics rank Queue as the worst policy for the top winner. 6 Fairness A natural question is whether a particular ADL policy is optimal or fair. We demonstrate that a modified pro-rata rule respecting per-account constraints, the capped pro-rata rule , is the most fair policy in two senses: it minimizes total convex disutility and is the unique rule satisfying key axiomatic properties. Definition of the Capped Pro-Rata Rule. The capped pro-rata rule is a water-filling algorithm that enforces per-account constraints before applying a pro-rata haircut. Combining haircut constraints ( 22 ) and equity constraints ( 23 ), we define an effective cap \beta_{i}=\min\{\overline{h}_{i},1-\underline{e}_{i}/e_{T}(\mathfrak{p}_{i})\} . This \beta_{i} is the most we can haircut account i while honoring both its per-account haircut limit and its minimum post-ADL equity. The maximum haircut capacity is C(\beta)=\sum_{i=1}^{n}e_{T}(\mathfrak{p}_{i})\beta_{i}. (28) If the deficit exceeds this capacity, no feasible haircut exists. Otherwise, we aim to equalize haircuts subject to these caps. The capped pro-rata rule \pi_{CP} is defined as: h_{\pi_{CP},i}=\min\{\eta,\beta_{i}\} (29) where \eta\in[0,1] is chosen to satisfy the budget constraint \sum_{i=1}^{n}h_{\pi_{CP},i}e_{T}(\mathfrak{p}_{i})_{+}=\theta_{\pi}D_{T}(\mathcal{P}_{n}). (30) This can be computed efficiently by sorting the caps \beta_{i} and finding the threshold \eta (see eq. ( 30 ) and the algorithm in Appendix E ). Convex Optimality. Let \phi:[0,1]\rightarrow{\mbox{\bf R}} be an increasing convex function representing the disutility of a haircut. We formulate the problem of minimizing total disutility subject to per-account constraints: \begin{array}[]{ll}\displaystyle{\min_{h\in[0,1]^{n}}}&\displaystyle{\sum_{i=1}^{n}\phi(h_{i})}\\[6.0pt] \text{subject to}&\forall i\in[n]\;\;h_{i}\leq\beta_{i}\quad\text{(effective cap)}\end{array} (31) In Appendix D , we show: Proposition 6.1 . The unique solution to ( 31 ) is the capped pro-rata rule ( 29 ). This implies that for any reasonable model of financial disutility, capped pro-rata maximizes social welfare. Axiomatic Fairness. We define three natural fairness properties: • Sybil resistance: Outcomes are identity-agnostic and invariant to splitting or merging accounts. • Scale invariance: Haircuts are unchanged if both shortfall and equities are scaled by a common factor. • Monotonicity (Stability): The policy preserves the relative ordering of post-haircut equity. If e_{i}\geq e_{j} , then (1-h_{i})e_{i}\geq(1-h_{j})e_{j} . In Appendix D , we formalize the following result: Proposition 6.2 (Informal) . Under mild smoothness conditions, the unique sybil-resistant, scale-invariant, and monotone ADL policy satisfying per-account constraints is capped pro-rata. This establishes capped pro-rata as the unique fair ordering rule. In contrast, queue-based rules (ranking by leverage or PNL) are generally not stable or sybil-resistant. For example, a trader can split one large winning account into many small ones and push each down the queue, reducing any single haircut while keeping the same aggregate exposure. RAP introduces a risk tilt, deviating from strict equity stability to reduce risk, but remains “as stable as possible” within its risk-weighted framework. In the numerical examples we present in the next section, we will see explicit examples where capped-pro rata is better for both exchange solvency and trader profitability than the Queue and Pro-Rata. 7 Risk-aware Policies (RAP) Fairness-focused rules like capped pro-rata treat all winning dollars equally, ignoring the heterogeneous risks imposed by different winners. Higher effective leverage implies thinner liquidation windows and greater sensitivity to execution costs [ 7 , 57 ] . We introduce Risk-Aware Pro-Rata (RAP) rules, a family of rules that preserves the fairness structure of capped pro-rata while tilting haircuts toward higher-risk positions. This family includes Levered Pro-Rata (LPR) when the risk weighting is linear in leverage. We derive RAP from a robustness criterion that minimizes a one-step excess-deficit proxy. One-step Next Deficit. To formalize robustness, we consider the next-step deficit D^{\text{next}}_{T+1} resulting from a price shock Z_{T} occurring immediately after the ADL procedure. Let \pi be an ADL policy yielding post-haircut notional \tilde{n}_{T,i} and equity e_{T,i} . We model the shock Z_{T} using a Markov kernel sensitive to the state. The next-step deficit is the negative equity after the shock: D^{\text{next}}_{T+1}=\sum_{i\in\mathcal{W}_{T}}(-e_{T,i}-\tilde{n}_{T,i}Z_{T,i})_{+}=\sum_{i\in\mathcal{W}_{T}}\tilde{n}_{T,i}\left(\frac{1}{\lambda_{T,i}}+Z_{T,i}\right)_{-}. Our objective is to minimize the conditional expected deficit \delta_{T}=\mathop{\bf E{}}[D^{\text{next}}_{T+1}\mid\mathcal{F}_{T}] . Defining \psi_{i}(u)=\mathop{\bf E{}}[(u+Z_{T,i})_{-}] , we have: \delta_{T}=\sum_{i\in\mathcal{W}_{T}}\tilde{n}_{T,i}\psi_{i}\left(\frac{1}{\lambda_{T,i}}\right). (32) Appendix F.1 illustrates how pro-rata fails to control this deficit when shocks scale with leverage. Risk Models. We assume the exchange employs a convex risk model g(\lambda) characterizing the risk contribution of leverage \lambda . Common choices include: 1. Linear : g(\lambda)=\lambda , corresponding to LPR. Matches VaR/CVaR scaling under linear shocks. 2. Power : g(\lambda)=\lambda^{c} ( c>1 ), penalizing high leverage super-linearly. 3. CVaR : g(\lambda)=(\lambda-\tau)_{+} , a surrogate for Conditional Value-at-Risk. Appendix F.1 provides numerical examples of these weightings. 7.1 Risk-Aware Pro-Rata (RAP) Rule The RAP rule allocates haircuts using weights w_{i}=\lambda_{T,i}g(\lambda_{T,i}) . With per-account caps \beta_{i} , the haircuts are: h_{\mathrm{RAP}(g),i}=\min\{\beta_{i},\tau w_{i}\}, (33) where \tau is calibrated to meet the target budget. This concentrates haircuts on high-risk positions. See Appendix E for precise implementation of the algorithm. 7.2 Convex Dominance of RAP We can construct an optimal risk model g^{*} that minimizes \delta_{T} . Intuitively, an optimal risk model should maximize the marginal reduction of \delta_{T} per unit of equity e_{T,i} . Differentiating \delta_{T} with respect to the haircut h_{T,i} reveals: -\frac{\partial\,\delta_{T}(h)}{\partial h_{T,i}}\ =\ n_{T,i}\,\psi_{i}\!\left(\tfrac{1}{\lambda_{T,i}}\right)\ =\ e_{T,i}\,\lambda_{T,i}\,\psi_{i}\!\left(\tfrac{1}{\lambda_{T,i}}\right)\ =\ e_{T,i}\,\rho_{i}(\lambda_{T,i}), (34) where we define the perspective transform \rho_{i}(\lambda)=\lambda\,\psi_{i}(1/\lambda) . The greedy rule that maximizes the marginal reduction per equity-dollar is exactly the rule that prioritizes winners with the largest \rho_{i}(\lambda_{T,i}) . Perspective Transform and Economic Intuition. The function \rho_{i} is the perspective transform of the convex function \psi_{i} [ 28 , §2.3.3] , widely used to induce 1-homogeneity. Economically, u=1/\lambda is the bankruptcy buffer, which is the percentage price shock required to wipe out the position’s equity (since loss equals equity when shock magnitude Z=e/\tilde{n}=1/\lambda ). Using convex duality, we can write \rho_{i}(\lambda)=\sup_{y\geq 0}\{y-\lambda\,\psi_{i}^{*}(y)\} , where y is a ‘yield’ (equity change per unit buffer change) and \psi_{i}^{*}(y) is the cost to insure a position with yield y . Thus, maximizing \rho_{i} is equivalent to maximizing the net solvency gain per unit of equity. For example, if a trader with leverage \lambda=10 faces an insurance cost of 0.5% for a yield of 8%, the net solvency gain is 0.08-10(0.005)=0.03 per unit equity. Constructing the optimal risk model. This suggests the optimal weights w^{\star}_{i}=\rho_{i}(\lambda_{T,i}) and risk model g^{\star}(\lambda)=\rho(\lambda)/\lambda . Proposition 7.1 (Informal) . For any weighted pro-rata rule comonotone with w^{\star} , the residual risk vector is weakly submajorized by that of \mathrm{RAP}(g^{\star}) . This implies that \mathrm{RAP}(g^{\star}) minimizes the total risk for any convex risk measure, assuming the shock process follows the kernel K . The proof is in Appendix F.2 . This result implies that if we have prior knowledge about the kernel K ( e.g. from historical data or backtesting), then constructing g^{*} via the perspective transform yields the optimally robust and fair haircut model. 7.3 Limitations of One-Step Optimality While RAP minimizes the one-step next deficit, it may not be optimal under multiple correlated shocks or broader exchange objectives. Correlated Shocks. Consider sequential shocks Z_{t+1},Z_{t+2} with positive correlation. High-leverage positions might act as a hedge against future shocks. In such cases, aggressively liquidating high-leverage winners (as in RAP) can increase the two-step deficit compared to pro-rata. Appendix F.1 details an AR(1) shock example where the sum of deficits is lower for pro-rata. Exchange Incentive Compatibility. Exchanges must also consider exchange long–term value (LTV) — the future fees and liquidity provided by traders. RAP targets high-leverage, often high-volume, traders. Fully liquidating these accounts to minimize immediate risk can reduce the exchange’s long-term utility. Appendix F.3 provides an example where preserving a high-value trader (via pro-rata) yields higher total utility than the risk-minimizing RAP. 8 Multiple–Round ADL as a Stackelberg Control Problem As the previous section illustrates, risk-aware pro-rata mechanisms work well as robust, static strategies but not in a dynamic setting. Both future exchange revenue and correlated shocks require including a model of the dynamics of ADL over multiple rounds. We use the intuition gained from RAP mechanisms for a single round to help extend the model to the multiple round setting. A common place where there is a difference between one-shot equilibria and multi-round equilibria is in the difference between Nash and Stackelberg games. We will illustrate how the multi-round ADL problem is naturally a Stackelberg game whereas the ADL policies that we have studied so far are more like Nash optimal strategies. To do this, we will first briefly describe Stackelberg games and then provide examples demonstrating that it is the right formalism for this extension. 8.1 ADL is a Stackelberg Game Definition. A Stackelberg (leader–follower) game is sequential: the leader first commits to a policy, the follower observes it, and then best–responds; the leader chooses its commitment anticipating that response [ 113 , 56 , 17 ] . 11 11 11 In finance and control, this appears as “dynamic optimal control with commitment” or a principal–agent model with rational expectations [ 94 , 19 , 77 ] . Commitment here means the policy is observable and credible to followers. The move order is therefore leader first, follower second, and the leader optimizes against the follower’s best–response set. Over many rounds, the leader can learn a near–optimal commitment by updating \{\theta_{t},h_{t}\} using feedback from realized follower responses and shocks, recovering standard online-learning guarantees when losses are convex (or have convex surrogates) [ 114 , 100 , 65 , 42 ] . The Stackelberg view also supports robust design: the exchange can pick policies that hedge against worst–case follower responses and price/oracle shocks, steering the system toward states with smaller tail externalities [ 5 , 110 ] . ADL and Stackelberg games. ADL naturally fits the setup of a Stackelberg game: the exchange (leader) publishes its ADL policy each round by choosing a severity budget \theta_{t}\in[0,1] and a haircut rule. As we saw in § 2.4 , the queueing rules used by Binance and Hyperliquid imply both a static severity and haircut rule and are published on their websites (which is their form of commitment). Market participants ( e.g. traders, LPs) and the stochastic environment (order flow, depth, liquidation behavior, oracle and price shocks) then respond as followers given the announced policy. After market participants (followers) respond, the residual exposure ( i.e., the remaining negative equity) is measured and the leader decides on a next action (which could include to stop the game and not perform an ADL policy). The commitment of the exchange allows followers to construct a local best response that can adapt as the number of rounds of the game increases. Single vs. Multi-Round Models. One-shot (static) ADL treats each deficit in isolation, optimizing a fixed severity \theta and haircut rule h for that round. The multi-round Stackelberg model links rounds: the leader commits to a policy path \{\theta_{t},h_{t}\} , and followers adapt, creating state dependence via churn, liquidity, and leverage. This coupling makes commitment valuable: a policy that is optimal in one round can be dominated once cross-shock feedback is considered. Stackelberg vs. Nash. Nash equilibria are one–shot, simultaneous–move fixed points where each player best–responds to the other’s action but no one commits ex ante [ 56 ] . By contrast, Stackelberg equilibria embed the leader’s commitment advantage, often producing different (and more robust or revenue–enhancing) outcomes [ 113 , 17 ] . Static ADL strategies such as venue queues (Binance/Hyperliquid) or single–round RAP can be analyzed under a Nash lens, as we assume there is no further response by a leader after a single execution of an ADL policy. In practice, ADL controllers are used repeatedly (such as on October 10, 2025; see § 9 ) which more resembles a Stackelberg game. In Appendix G.3 we give an explicit example for ADL where a Stackelberg equilibrium differs from a Nash outcome and in which the Stackelberg equilibrium strictly improves exchange revenue and robustness. 8.2 Why do we need a dynamic model? Stackelberg games are inherently dynamic due to the alternating move order between the leader and follower. A natural question is whether we really need to use a dynamic method or if a static method is ‘good enough.’ In this section, we will provide our first formal results showing that dynamic ADL rules are necessary if you want to optimize both time to recover solvency and exchange revenue after repeated shocks. This will motivate the construction of the dynamic ADL policy in the sequel. Exchange Long-Term Value (LTV) and the Trilemma. Recall the ADL Trilemma from § 2.5 , which posits a conflict between Solvency ( S ), Fairness ( F ), and Revenue ( R ). To quantify the Revenue objective, we define the Exchange Long-Term Value (LTV). Unlike immediate fee capture, LTV accounts for the long-run impact of ADL on trader participation: heavy haircuts on winners cause them to exit or reduce activity (“churn”), eroding future fees. For a policy \pi , let h_{t,i}\in[0,1] be the haircut fraction on winner i at time t . We model trader retention via a revenue retention curve r_{t,i}(h_{t,i}) which is decreasing in the haircut size (larger haircuts drive away more volume). The per-period expected revenue from trader i is then R_{t,i}=e_{t,i}r_{t,i}(h_{t,i}) , where e_{t,i} is their equity. The LTV is the discounted sum of these revenues: \mathrm{LTV}_{T}(\pi)=\sum_{t=0}^{T}\beta^{t}\sum_{i\in W_{t}}e_{t,i}\,r_{t,i}(h_{t,i}). Maximizing LTV corresponds directly to the (R) vertex of the trilemma. Competing Time Scales. To compare policies dynamically, we track two opposing clocks starting from a default event at \tau_{\mathrm{def}} : \tau_{\mathrm{solv}},\tau_{\mathrm{rev}} . Intuitively, \tau_{\mathrm{solv}} is how quickly deficits are cleared whereas \tau_{\mathrm{rev}} is how quickly fee revenue rebounds. • Solvency Recovery Time ( \tau_{\mathrm{solv}} ): The time required for the insurance fund (or deficit) to fully recover to a safe level \delta . • Revenue Recovery Time ( \tau_{\mathrm{rev}} ): The time required for the exchange’s expected LTV to return to pre-shock levels (1-\epsilon)\mathrm{LTV}_{\text{pre}} . Formally, \tau_{\mathrm{solv}}=\inf\{t\geq\tau_{\mathrm{def}}:\mathsf{IF}_{t}\geq\delta\},\qquad\tau_{\mathrm{rev}}=\inf\{t\geq\tau_{\mathrm{def}}:\mathop{\bf E{}}[\mathrm{LTV}_{t}]\geq(1-\epsilon)\mathrm{LTV}_{\text{pre}}\}. As we will show, static policies trade these quantities off one another off. We also show that the concentration of how haircuts are distributed amongst winning traders controls this trade-off. Example. We can rank policies by how concentrated their haircuts are using the Schur order (§ 3 ): • Queue (concentrated): Haircuts hit the largest winners first, yielding a highly unequal (Schur-convex) vector. Deficits clear quickly (small \tau_{\mathrm{solv}} ), but the biggest fee payers churn, so LTV recovers slowly (large \tau_{\mathrm{rev}} ). • Pro-Rata (diffuse): Haircuts are spread evenly (Schur-concave). Solvency takes longer because shallow accounts contribute little (larger \tau_{\mathrm{solv}} ), but everyone stays engaged, so revenue rebounds faster (small \tau_{\mathrm{rev}} ). Any intermediate policy traces this frontier: more concentration shortens \tau_{\mathrm{solv}} but lengthens \tau_{\mathrm{rev}} . This intuition is formalized in the following proposition, which states that any policy that concentrates haircuts (like Queue) will recover solvency faster but revenue slower than a diffuse policy (like Pro-Rata). Opposing Schur orderings. Let z_{t}(\pi) be the vector of post-haircut residual equities. If policy A is more concentrated than policy B (i.e., z_{t}(A)\succ_{\text{Schur}}z_{t}(B) ), then A recovers solvency faster but revenue slower. Proposition 8.1 (Informal) . Under separable convex stage losses and monotone shock dynamics, if the residual exposure of policy A majorizes policy B (e.g. Queue vs. Pro-Rata), then: \tau_{\mathrm{solv}}(A)\leq\tau_{\mathrm{solv}}(B)\quad\text{but}\quad\mathrm{LTV}_{t}(A)\leq\mathrm{LTV}_{t}(B)\quad\text{for all }t. This implies no static policy can simultaneously minimize both recovery times. 8.3 Incentive Compatibility and Constraints We frame the problem as a Stackelberg game: the exchange (leader) commits to a policy, and traders (followers) best-respond. We impose follower incentive compatibility (FIC) and leader-side revenue and solvency constraints (LIC) to ensure the policy is feasible for traders and sustainable for the venue. Follower Incentive Compatibility (FIC). Winners must remain solvent and within haircut caps: 0\;\leq\;h_{t,i}\;\leq\;\beta_{t,i},\qquad(1-h_{t,i})e_{t,i}^{+}\;\geq\;\underline{e}_{t,i}, where \beta_{t,i} enforces per-account haircut limits and \underline{e}_{t,i} enforces minimum post-ADL equity (cf. ( 22 )–( 23 )). These bounds guarantee feasibility (no negative winners) and rule out haircut paths that would violate venue-level haircut caps (as we saw in § 2.4 ). Leader Incentive Compatibility (LIC). Revenue must stay above a floor and solvency above a safety threshold: \mathop{\bf E{}}[\mathrm{LTV}_{t}]\;\geq\;(1-\epsilon)\,\mathrm{LTV}_{\text{pre}},\qquad\mathsf{IF}_{t}\;\geq\;\delta\;\;\text{or}\;\;\mathrm{CVaR}_{\alpha}(-\mathsf{IF}_{t})\;\leq\;\kappa. These ensure the policy is not revenue-destructive (per the churn model in § 9 ) and keeps the exchange solvent both on-path and in the tails (§ 2.3 ). These constraints define the feasible set for any policy path \{\theta_{t},h_{t}\} ; we defer the full optimization program to Appendix G.3 . Stackelberg vs. Nash Equilibria. We model the interaction between the exchange and traders as a Stackelberg game where the exchange (leader) commits to a policy \pi_{t} , and traders (followers) subsequently respond ( e.g. by adjusting liquidity or closing positions). This commitment power is crucial. As we show in Appendix G.3 (Proposition G.6 ), a simultaneous-move (Nash) game admits a “bad” equilibrium where traders withdraw liquidity anticipating high severity, which in turn forces the exchange to set high severity to cover the deficit, often violating the LIC floor on revenue. In the Stackelberg model, the exchange commits to a policy that satisfies FIC/LIC and rules out this inefficient equilibrium, coordinating the market toward a high-liquidity, lower-severity outcome that keeps both trader feasibility and venue sustainability intact. 8.4 Learning the Optimal ADL Policy Given these constraints, we can treat severity and haircuts as an online control problem: choose \{\theta_{t},h_{t}\} after each price shock, conditioned on past shocks and responses, to minimize loss while respecting FIC/LIC. Because losses admit convex surrogates, we can apply classical online schemes ( e.g. mirror descent) and enforce constraints via primal–dual updates so FIC/LIC remain satisfied at each round. We use mirror descent because it naturally handles convex losses with simple geometry (RAP/Pro-Rata) and pairs cleanly with primal–dual updates, matching the Stackelberg setting of committing to a policy while respecting per-round constraints [ 61 , 62 , 114 , 100 , 65 ] . Mirror Descent with IC constraints (MDIC). We adopt a primal–dual mirror–descent scheme tailored to the RAP geometry and non–smooth constraints: 1. Choose a mirror map \psi on the policy domain \Pi ( e.g. a separable entropy or a Bregman geometry aligned with capped pro–rata). 2. Initialize \pi_{1}\in\Pi and dual multipliers \lambda_{1}\!\geq 0 for constraints c(\cdot;\cdot)\leq 0 . 3. For rounds t=1,2,\dots : (a) Observe state s_{t} ; publish \pi_{t} (commitment). The follower/environment best–responds; incur loss \ell_{t}(\pi_{t}) and observe a subgradient g_{t}\in\partial\ell_{t}(\pi_{t}) and constraint feedback c_{t}=c(\pi_{t};s_{t}) . (b) Primal update (mirror step with penalties): \pi_{t+1}\;=\;\mathop{\rm argmin}_{\pi\in\Pi}\;\Big\{\langle g_{t}+\nabla_{\pi}\langle\lambda_{t},c(\pi;s_{t})\rangle,\,\pi\rangle\;+\;\tfrac{1}{\eta_{t}}D_{\psi}(\pi\,\|\,\pi_{t})\Big\}. (c) Dual update (projected subgradient ascent on violations): \lambda_{t+1}\;=\;\big[\lambda_{t}+\gamma_{t}\,c_{t}\big]_{+}. 4. Tune (\eta_{t},\gamma_{t}) as O(t^{-1/2}) to balance regret and constraint violations. This controller reduces to standard OCO when constraints are absent, while handling non–smooth IC/solvency constraints via the dual iterates. Why MDIC. The IC set is convex but non-smooth ( e.g. caps, max over scenarios). Mirror descent matches this geometry (KL on the simplex, log-barrier on \theta ) and keeps updates stable while preserving O(\sqrt{T}) rates. Algorithmic Guarantees and Why Regret Matters. If f_{t} is Lipschitz, the follower is \varepsilon -best-response, and the IC set has bounded diameter, MDIC with \eta_{t}\propto 1/\sqrt{T} yields \mathrm{Regret}_{T}=O\!\Big(\sqrt{T\,D_{\phi}(\theta^{\star}\|\theta_{1})}+\sqrt{T\,D_{\Phi}(h^{\star}\|h_{1})}\Big)+\varepsilon T, with per-round IC feasibility (or sublinear average violation in the long-term CVaR variant). We care about regret because it benchmarks any adaptive policy against the best dynamic policy in hindsight. Showing that MDIC achieves O(\sqrt{T}) regret means MDIC learns fast, while \Omega(T) regret shows static rules (Queue, RAP, Pro-Rata) can be worst-case bad. Proofs are in Appendix G.2 . Static Policies Have Linear Regret. In an alternating two-regime example (liquidity vs. stress) any fixed \theta incurs \Omega(T) regret, whereas MDIC adapts and achieves O(\sqrt{T}) (proven in Appendix G.2 ). This captures why static Queue, RAP, Pro-Rata are fragile in adversarial environments. 8.5 Follower Robustness So far, we have focused on the leader ( e.g. the exchange), as they have to commit to a policy. However, it is possible that if the follower ( i.e., a trader who reduces the deficit) knows enough about the leader’s strategy to adversely select against other traders. We address the strategic behavior of traders (“followers”) in response to ADL policies, focusing on adverse selection and timing games. Our description of follower behavior will be minimal with most details in Appendix G.4 . Adverse Selection and the Pro-Rata Death Spiral. As we saw earlier, if an ADL policy socializes losses uniformly without regards to risk (like Pro-Rata), low-risk traders subsidize high-risk traders. If the cost of subsidy exceeds the utility of trading for low-risk traders, they exit. This increases both the exchange’s average risk and probability of future deficits and can be viewed as a form of adverse selection. This is a direct consequence of the follower’s strategic response: low-risk traders, observing a policy that penalizes them disproportionately, rationally choose to exit (or not participate), leaving the exchange with a riskier pool of traders. Let \mu_{i} be the baseline utility of trader i and let H_{\pi}(\lambda_{i}\mathcal{P}_{n}) be the random haircut variable for a trader with leverage \lambda_{i} . The "utility is greater than subsidy" condition can be described as \mu_{i}-\mathop{\bf E{}}[H_{\pi}(\lambda_{i},\mathcal{P}_{n})]\geq u_{0} , where u_{0} is a baseline minimum utility a low-risk trader accepts. Under Pro-Rata, \mathop{\bf E{}}[H_{\pi_{PR}}] depends on the average leverage \overline{\lambda}=\frac{1}{n}\sum_{i}\lambda_{i} , which penalizes low-risk traders with \lambda_{i}<\overline{\lambda} . The worst case is if there is a ‘death spiral’ of exits, where low-risk traders leaving sequentially increase the probabilty of other traders leaving, as the average \overline{\lambda} increases on each exit. This is adverse selection that the exchange faces as the pool of traders becomes increasingly risky from a leverage standpoint. We formalize this in Appendix G.4.1 and provide explicit examples of a death spiral. The Waiting Game. Traders may act as “Backstop Liquidity Providers” (BLP) by voluntarily filling liquidation orders to reduce the deficit D_{t} . For instance, traders who deposit to Hyperliquid’s HLP pool around the time of an ADL event act as BLPs. This presents an optimal stopping problem: a BLP can absorb the deficit immediately (incurring market risk and execution costs) or wait, hoping that the exchange reduces ADL severity \theta_{t} (and thus the potential haircut) in subsequent rounds. If the exchange employs a policy like an exponential backoff that lowers severity over time, it incentivizes traders to wait, potentially exacerbating the deficit. To prevent such strategic delays, the exchange needs to provide a financial incentive to ensure that BLPs add liquidity in a timely manner. This incentive often comes in the form of yield premium \Gamma_{t} . This premium can be viewed as an incentive (e.g., a rebate or a yield) that the exchange must pay to compensate BLPs for the risk of absorbing the deficit early. Intuitively, \Gamma_{t} quantifies the cost of immediate intervention, capturing the execution slippage and inventory risk premium required for a BLP to step in. By adjusting these incentives, an exchange can encourage "no-wait" conditions to speed up solvency recovery. Intuitively, these “No-Wait” conditions correspond to solvency-like constraints: \theta_{t}D_{t}\geq\Gamma_{t} . We formalize this with the following proposition: Proposition 8.2 (No-Wait Condition) . Let \Gamma_{t} be the liquidity premium required for a Backstop Liquidity Provider (BLP) to absorb deficit D_{t} immediately rather than waiting for \Delta t . If the severity policy \theta_{t} is a decreasing function of time (e.g. exponential backoff), a BLP will withhold liquidity unless the immediate haircut cost is cheaper than the discounted future cost: \theta_{t}D_{t}\;\leq\;\mathop{\bf E{}}_{t}[\theta_{t+\Delta t}D_{t+\Delta t}]-\Gamma_{t}. Violating this condition induces a “Waiting Game” where solvency recovery is delayed purely by the follower’s strategy. Appendix G.4.2 details the construction of \Gamma_{t} and proves this proposition. 8.6 Dynamic Phase Transition in ADL In Section 5 , we established that static ADL rules face fundamental scaling limits. However, our results in that section were qualitative in nature, making it hard to use those results to design better mechanisms. One question that one might have is if there is a way to classify, based on properties of an asset ( e.g. volatility, liquidity, etc.) whether one can use a simple static ADL strategy or if one needs a full dynamic strategy. Here we will construct conditions for quantifying an answer to this question. To quantify the efficiency gap between static (Nash) and dynamic (Stackelberg) control, we evaluate the system using welfare functions W(\pi) corresponding to the trilemma (Proposition J.7 ) objectives. Welfare functionals quantify how fair, profitable, or solvent the entire system is (as opposed to individual traders). Specifically, we show there is a phase transition that depends on the liquidity and volatility of the asset pair that determines when one needs a dynamic methods (like MDIC) or if one can use a simpler algorithm (like RAP). The phase transition is defined by an order parameter , which is a dimensionless quantity that captures the relative strength of the ADL severity to the market’s liquidity and volatility. This phase transition occurs in the efficiency gap between static and dynamic methods — i.e., how much better at preserving solvency and/or revenue that a dynamic method is over static method. Price of Anarchy for Nash vs. Stackelberg. The Price of Anarchy (PoA) is the standard metric for quantifying efficiency loss from strategic behavior across equilibrium concepts [ 97 , 98 ] . In Stackelberg settings, a leader’s commitment reshapes follower best responses and can systematically lower inefficiency relative to simultaneous-move (Nash) play. This is well documented in dynamic game models [ 17 ] and in smoothness-based PoA analyses that extend uniformly across equilibrium notions, including sequential and composed mechanisms [ 109 , 98 ] . In our ADL context, the venue is a natural leader that can commit to a severity path, while traders react myopically to current and anticipated haircuts. This makes a PoA comparison between one-shot (Nash-like) and multi-round (Stackelberg) control both natural and informative. We define the PoA for a welfare function W as the ratio of the optimal dynamic Stackelberg welfare to the welfare of a static, one-shot policy \pi^{\mathrm{stat}}_{n} : \mathrm{PoA}_{n}(W)=\frac{W(\pi^{\mathrm{dyn}}_{n})}{W(\pi^{\mathrm{stat}}_{n})} (35) We consider both a fairness welfare W_{\text{Fair}}(\pi)=\mathsf{PTSR}_{T}(\pi) and a revenue welfare W_{\text{LTV}}(\pi)=\text{LTV}_{T}(\pi) . The severity load \kappa_{n}=\theta_{n}n/b_{n} serves as the order parameter for the phase transition in fairness, while the heavy-tail index \alpha (see § 3.1.2 ) governs the phase transition in revenue. Using extreme-value scaling and mean-field equilibrium assumptions, we obtain PoA bounds that are robust to the precise equilibrium concept. Appendix H formalizes the scaling assumptions and presents the theorem. Informally: Proposition 8.3 (Informal) . Let \kappa_{n}=\theta n/b_{n} be the normalized severity relative to the winner equity scale b_{n} . • Bounded PoA (Static Sufficient): If the severity load stays bounded ( \sup_{n}\kappa_{n}<\infty ), leverage masses are comparable ( \ell_{n}^{+}\asymp\ell_{n}^{-} ), and deficits are light-tailed, then static ADL is constant-factor optimal: \sup_{n}\mathrm{PoA}^{\text{Fair}}_{n}<\infty and \sup_{n}\mathrm{PoA}^{\text{LTV}}_{n}<\infty . • Unbounded PoA (Dynamic Necessary): If the load diverges ( \kappa_{n}\to\infty ) or leverage is concentrated ( \ell_{n}^{+}/\ell_{n}^{-}\to 0 ), Fairness PoA blows up. If deficits are heavy-tailed ( \alpha<2 ) and solvency is enforced, Revenue PoA also diverges. Static policies must sacrifice at least one objective, while a dynamic controller can maintain both. This implies a screening rule: if estimates satisfy \widehat{\kappa}_{n}\leq K and \widehat{\Lambda}_{n}\in[c,C] , static ADL suffices; otherwise, dynamic control is required to navigate the Trilemma. Practically, this result can be used to provide simple heuristics for screening assets using historical data to determine whether a simple static rule suffices or if a dynamic policy is required. Formal statements and proofs are given by Theorem H.3 and Proposition H.5 in Appendix H , and by Example H.4 . 9 Empirical Analysis: The October 10 Event We evaluate the proposed ADL mechanisms using a high-fidelity replay 12 12 12 The author profusely thanks Mauricio Trujillo ( @conejocapital ) and Hydromancer for providing, cleaning, and verifying this data. of the October 10, 2025 liquidation cascade on Hyperliquid [ 96 ] . We use this replay to stress-test the ADL Trilemma (§ 2.5 ), quantify fairness via PTSR/PMR (§ 2.5 and Figure 6 ), and benchmark RAP and other static baselines (§ 7 ). 9.1 Experimental Setup Dataset. We utilize the canonical reconstruction of the event [ 41 ] , covering a 12-minute window (21:16–21:27 UTC) with $2,103,111,431 in liquidations across roughly 160 assets. The replay comprises T=1097 ADL shocks (201 with D_{t}>0 ). Each shock records the realized deficit D_{t} (total negative equity of the losers) and the winner-equity vector e^{\mathcal{W}}_{t}=(e_{t,1},\dots,e_{t,|\mathcal{W}_{t}|}) . The winner equity vector gives us the maximum haircut mass , W(e^{\mathcal{W}}_{t})=\sum_{i=1}^{|\mathcal{W}_{t}|}e_{t,i} . This is the maximum profit that could be seized to cover a deficit. Across the 201 shocks with D_{t}>0 , the realized shortfall sums to \sum_{t}D_{t}=\$23{,}245{,}151.37 . The feasible haircut mass \sum_{t}\min\{D_{t},W(e^{\mathcal{W}}_{t})\} is only $6,620,946.51. Consequently at least $16.6M of the realized deficit is structurally uncovered regardless of policy, establishing a hard lower bound on cumulative residuals. As an explicit example, consider the asset WLD on Hyperliquid. There was a realized deficit of D_{t}=\$11{,}558{,}884.49 despite having a maximum haircut W(e^{\mathcal{W}}_{t})=\$2{,}507.11 . This means that every ADL strategy exits that round with $11,556,377.38 of residual bad debt. We note that the dataset provides the exact sequence of exogenous price shocks and trader positions, allowing for a counterfactual analysis of ADL responses holding market conditions fixed. Policies. We compare the static benchmark \pi_{\text{queue}} against the dynamic controllers defined in Appendix I.3 : • Static Priority ( \pi_{\text{queue}},\pi_{\text{smart}} ): The standard greedy mechanism (Queue) and its deficit-capped variant (Smart Queue). \pi_{\text{smart}} enforces H_{t}\leq D_{t} but retains the greedy priority ranking. • Dynamic Severity ( \pi_{\text{exp}},\pi_{\text{md}} ): The Exponential Backoff and Mirror Descent controllers that optimize the scalar severity \theta_{t} while allocating haircuts pro-rata. • Vector Optimization ( \pi_{\text{vec}} ): The full allocation policy minimizing the composite loss L_{t} via high-dimensional mirror descent. • Hybrid Blend ( \pi_{\text{hyb}} ): A convex combination of the production Queue and optimized Levered Pro-Rata allocations (20%/80% mix). This approximates the recommended pairing of queue-style guardrails with pro-rata fairness without retraining the live mechanism. Revenue proxy. We construct a revenue proxy that estimates the expected fee and revenue loss for the exchange given a set of ADL haircuts. At a high level, we model how much churn traders experience post haircut, akin to other customer retention models [ 1 , 25 , 99 ] . Given the churn, we model a fee proxy that estimate the loss in fees per unit of notional size that churns. Formally, define the churn probability of winner i as the probability that the account exits the venue after receiving a haircut in round t . Empirically, this quantity controls how much future revenue the exchange forfeits. We model churn with the exponential hazard p_{t,i}=1-\exp(-\beta h_{t,i}/w_{t,i}) , which keeps responses linear for small haircuts yet saturates toward one for severe cuts, matching the account-level attrition we measure in the Hyperliquid replay. This mirrors the survival-style retention curves widely used in both classic and modern churn models in economics [ 25 , 99 , 13 , 78 , 14 ] . Full details of the calculation and the fee proxy are in Appendix I.2 . 9.2 Results Overshoot and Efficiency. We measure overshoot on each shock as (H_{t}-D_{t})_{+} , the haircuts applied beyond the realized deficit D_{t} . Recall that for our optimized algorithms, we enforce the feasibility constraint ( 18 ), so H_{t}\leq D_{t} . This means that most of the strategies will have very low if not zero overshoot. 13 13 13 The non-zero overshoot is due to the fact that the strategies are generally local gradient steps, which accumulate some noise and error in how well they enforce constraints. The production queue \pi_{\text{queue}} fully liquidates accounts and ignores feasibility, accumulating $653.6M of overshoot with a $47.1M single-shock spike. All other controllers keep overshoot negligible: \pi_{\text{smart}} is exactly capped with H_{t}=D_{t} ; \pi_{\text{md}} and \pi_{\text{dyn2}} have maxima of $89,537.21 and $268,670.09, respectively; \pi_{\text{exp}} peaks at $223,886.86; the vector optimizer peaks at $974,644.37. We also study the effect of the hybrid policy \pi_{\text{hyb}} which trades solvency for revenue smoothly. This strategy reduces queue overshoot by \approx 80\% (to $134.4M total, $9.4M max) while retaining much of the revenue retention of the dynamic controllers. Figure 3 : ADL overshoot ( H_{t}-D_{t} ). Dashed: per-shock overshoot. Solid: cumulative overshoot. The static policy \pi_{\text{queue}} accumulates \approx\$653 M of excess haircutting. Dynamic policies ( \pi_{\text{md}},\pi_{\text{vec}} ) keep overshoot negligible by construction, while \pi_{\text{exp}} maintains it within a bounded constant factor. The ADL Trilemma. We analyze the ADL trilemma (Proposition 2.1 ) empirically by reporting, for each policy, its solvency (residual shortfall), fairness (PTSR/PMR), and revenue (fee-retention) metrics. These three objectives summarize the trade-offs that each ADL policy makes. Figure 7 anchors the “solvency-at-any-cost” corner of the trilemma: \pi_{\text{queue}} slashes residual deficits ( i.e., higher solvency) yet incurs runaway overshoot and fairness penalties ( i.e., lower fairness and revenue). Figure 8 shows that capping overshoot via \pi_{\text{smart}} still leaves concentrated losses ( i.e., low fairness) and elevated residual deficits once churn feedback kicks in ( i.e., lower long term revenue). Figures 9 and 10 illustrate how dynamic mirror-descent controllers match the queue’s residual deficits without its welfare cost, i.e., they have better revenue preserving properties than Queue while preserving approximately the same amount of solvency. On the other hand, Figure 11 demonstrates that (static) exponential backoff strategies can be competitive with dynamic policies if the deficit is sufficiently bounded. By jointly optimizing allocation and severity, Figure 12 shows \pi_{\text{vec}} delivering the fairest loss sharing and the steepest long term revenue recovery. Finally, the hybrid \pi_{\text{hyb}} in Figure 13 blends the production queue with Levered Pro-Rata, eliminating \approx 80\% of Queue’s overshoot and cutting revenue loss by nearly an order of magnitude while keeping residual deficits low. Figure 4 : Outstanding negative equity (cumulative residual deficits). Lower is better. Despite its aggression, \pi_{\text{queue}} fails to clear the deficit effectively due to feedback loops. \pi_{\text{exp}} achieves competitive solvency without the welfare cost. Figure 5 : Largest winner haircut (USD). \pi_{\text{queue}} places a massive, spikey burden on single participants. Dynamic policies ( \pi_{\text{md}},\pi_{\text{exp}} ) distribute the load, respecting fairness constraints. Figure 6 : PTSR (top) and PMR (bottom) on log scale. \pi_{\text{queue}} exhibits ratios >10^{6} , indicating extreme moral hazard. Adaptive policies remain within the theoretical corridor ( \approx 1 – 10 ). Regret Decomposition. Figure 7 makes clear that overshoot (orange) and fairness (red) dominate the queue baseline. Figure 8 cuts the overshoot bar almost entirely but replaces it with a larger residual (blue) mass as liquidity flees. Mirror-descent controllers in Figures 9 and 10 shrink every component simultaneously by aligning severity with observed deficits, with the warm-started variant tightening the residual tail. Figure 11 trades a small overshoot allowance for even lower fairness cost, while Figure 12 compresses all three components and traces the Pareto frontier across solvency, fairness, and revenue. Figure 7 : Regret decomposition for the production Queue baseline \pi_{\text{queue}} . Overshoot (orange) and fairness (red) penalties dominate, illustrating static inefficiency. Figure 8 : Regret decomposition for the Smart Queue \pi_{\text{smart}} . Capping overshoot helps, but churn-driven residual deficits and fairness costs still dominate regret. Figure 9 : Regret decomposition for Mirror Descent \pi_{\text{md}} . Adaptive severity minimizes overshoot while balancing fairness and residual losses. Figure 10 : Regret decomposition for the Dynamic2 controller \pi_{\text{dyn2}} . Warm-started mirror descent keeps overshoot tame while moderating fairness penalties. Figure 11 : Regret decomposition for Exponential Backoff \pi_{\text{exp}} . Feedback-tuned severity contains overshoot without sacrificing solvency or fairness. Figure 12 : Regret decomposition for Vector Mirror \pi_{\text{vec}} . Joint severity and allocation updates compress every component, tracing the Pareto frontier. Figure 13 : Regret decomposition for the Hybrid blend \pi_{\text{hyb}} (20% Queue, 80% Levered Pro-Rata). Mixing the production policy with optimized allocations slashes overshoot and revenue loss while keeping residual deficits comparable to Queue. 9.3 Interpretation Taken together, the replay shows the production Queue is behaving exactly as the unbounded PoA story predicts: it buys solvency with overshoot and churn, and pays with fairness and future fees. Policies that separate “how much” ( \theta_{t} ) from “who” ( h_{t} ) — e.g. Exponential Backoff ( \pi_{\text{exp}} ) or Mirror Descent ( \pi_{\text{md}} ) — land in a strictly better region of the trilemma: they keep solvency comparable while lifting PTSR/PMR and retaining revenue. The convex hybrid \pi_{\text{hyb}} makes this trade-off explicit: a simple 20%/80% mix of Queue and Levered Pro-Rata inherits most of the fairness and revenue gains of the vector policy without giving up the familiar solvency profile. Based on these results, we offer three concrete prescriptions for Hyperliquid and similar venues: 1. Decouple severity from allocation. Use a scalar feedback rule ( e.g. \pi_{\text{exp}} or \pi_{\text{md}} ) to set \theta_{t} from the realized deficit D_{t} , then allocate separately. 2. Adopt levered pro-rata. Replace the greedy queue with Levered Pro-Rata (Eq. 21 ) or the optimized vector h_{t} ; this keeps PTSR/PMR near 1 and aligns haircuts with capacity. 3. Blend for transparency. A light hybrid (20% Queue, 80% LPR) preserves the familiar queue feel while cutting overshoot by \approx 80\% and recovering most of the revenue and fairness gains. 10 Conclusion and Future Work In this paper, we provide the first formalism for ADL mechanisms that allows us to compare the performance of different policies. We first that a negative result: it is impossible for a perpetuals to simultaneouslyoptimize for exchange solvency, long term revenue, and fairness to traders. We then try to get around the negative result by analyzing strategies that optimize each of these components individually. Our results demonstrate that the heuristic strategy employed by Hyperliquid, Binance, and others that stems from 2015 is actually suboptimal in all dimensions. We empirically validate our results on Hyperliquid data from October 10, 2025 and demonstrate the superiority of dynamic and even other static algorithms to the live policy. Our results suggest a few directions for future inquiry. Implementing these policies in production has a number of challenges that we don’t consider in the paper. For instance, as exchanges grow and have many accounts with very smaller notation sizes, it makes more sense to choose a subset of users who are “eligible for ADL”. This lowers the computational burden of executing ADL during times of duress (when execution latency is high) while also ensuring that smaller users are not subsidizing larger users. Practical limits on ADL applicability likely change the results we have here and need to be studied further. ADL policies also likely change in their efficacy if they were able to be executed in a fully privately manner. In this paper, we ignored modeling execution costs for exchanges upon liquidation and position closure. The modeling of such execution costs is nuanced and likely leads to incorrect conclusions about ADL if not carefully handled 14 14 14 See, e.g. 106 , 107 for examples of overly naive analyses that conflate execution costs with ADL mechanism design. . When private execution is possible, the impact of these costs is muted as follower strategies are not able to react to ADL shocks. While centralized exchanges effectively offer ADL privacy ( i.e., other users do not know who else was autodeleveraged besides themselves), they still leak information to the market via public changes to the order book. With superior privacy guarantess (likely provided by fully homomorphic encryption, zero knowledge proofs, and secure multi-party computation), one could imagine ADL policies being able to avoid the adverse selection effects we describe in the follower strategies section. As ADL mechanisms rely increasingly on backstop liquidity vaults (such as Hyperliquid’s HLP and Lighter’s LLP), privacy of ADL execution becomes increasingly important to reduce costs for the exchange and traders. Finally, we note that the results in this paper focused on a single margin model, where the posted collateral was the numéraire. Many exchanges, including Hyperliquid, have cross-margin ADL support. This changes the modeling of execution costs and forces us to explicitly model market impact on cash and/or collateral balances. 11 Acknowledgments The author would like to thank Udai Parvathaneni, Nathan Sheng, JD Maturen, Kamil Yusubov, and Luke Sterle from Gauntlet for helpful dicussions around how to quantify realistic ADL scenarios (such as October 10, 2025). The author would also like to thank Yi Sun, Anirudh Pai, Kshitij Kulkarni, Theo Diamandis, Matheus V. X. Ferreira, Guillermo Angeris, Victor Xu, and Vinayak Kurup for helpful discussions. Finally, the author really appreciates the help with procuring and cleaning Hyperliquid data provided by SonarX, Hydromancer, and Mauricio Trujillo (@conejocapital). Appendix Appendix A Notation and conventions Throughout the appendix we use consistent notation: • Shocks are indexed by t=1,2,\dots,T ; winners W_{t} with equities e_{t,i}>0 and losers L_{t} . • Deficit D_{t}\geq 0 ; severity \theta_{t}\geq 0 ; haircut vector h_{t}\in[0,1]^{|W_{t}|} with survivors s_{t,i}=(1-h_{t,i})e_{t,i} . • Per–round budget B_{t}=\min\{\theta_{t}D_{t},\ \sum_{i}w_{t,i}\} for severity policies and B_{t}=w_{t}^{\top}h_{t} for vector policies; B_{t}^{\star}=\min\{D_{t},\sum_{i}w_{t,i}\} . • Per–account caps are \beta_{t,i}\in[0,1] so that 0\leq h_{t,i}\leq\beta_{t,i} . • Risk weights: \rho(\lambda)=\lambda\,\psi(1/\lambda) and g(\lambda)=\rho(\lambda)/\lambda ; when ordering by risk we use \rho . • Orders: x\prec_{w}y denotes weak submajorization (on decreasing rearrangements). • Asymptotics: X_{n}\asymp_{p}Y_{n} means there exist constants c,C>0 such that c|Y_{n}|\leq|X_{n}|\leq C|Y_{n}| with high probability. Appendix B Liquidations, Autodeleveraging, and Insurance Funds B.1 Bankruptcy Price Example We illustrate the bankruptcy price calculation with an example. Fix \ell^{\max}=10 (so m_{I}=0.10 ) and p_{0}=1 . Consider the five running positions from \mathcal{P}_{5} : \displaystyle\mathfrak{p}_{A} \displaystyle=(q,c,b)=(1,\,2,\,+1), \displaystyle\mathfrak{p}_{B} \displaystyle=(1,\,2/3,\,+1), \displaystyle\mathfrak{p}_{C} \displaystyle=(4,\,8/3,\,-1), \displaystyle\mathfrak{p}_{D} \displaystyle=(1,\,2/19,\,+1), \displaystyle\mathfrak{p}_{E} \displaystyle=(1,\,10/99,\,-1). Applying Eq. ( 10 ) with \Gamma=0 and p_{t}=p_{0}=1 gives \displaystyle p^{bk}(\mathfrak{p}_{A}) \displaystyle=\max\{0,\,1-2\}=0, \displaystyle p^{bk}(\mathfrak{p}_{B}) \displaystyle=1-\tfrac{2}{3}=\tfrac{1}{3}, \displaystyle p^{bk}(\mathfrak{p}_{C}) \displaystyle=1-\tfrac{\,8/3\,}{-4}=1+\tfrac{2}{3}=\tfrac{5}{3}\ (1.6667), \displaystyle p^{bk}(\mathfrak{p}_{D}) \displaystyle=1-\tfrac{2}{19}\approx 0.8947, \displaystyle p^{bk}(\mathfrak{p}_{E}) \displaystyle=1+\tfrac{10}{99}\approx 1.1010. Thus A is robust to a full drop to zero; B (long 1.5x) has a low bankruptcy price; C (short 1.5x) bankrupts only if the mark rises above \tfrac{5}{3} ; D/E (long 9.5x/9.9x) have high bankruptcy prices close to 1 , making negative equity likely if liquidations lag. B.2 Liquidation Price Example For \mu=0.10 the liquidation prices evaluate to factors \tfrac{1}{1-\mu} for longs and \tfrac{1}{1+\mu} for shorts. Using the same five positions with p_{t_{i}}=1 and \Gamma=0 , \displaystyle\hat{p}^{liq}(\mathfrak{p}_{A},0.10) \displaystyle=\tfrac{1}{0.9}\cdot 0=0, \displaystyle\hat{p}^{liq}(\mathfrak{p}_{B},0.10) \displaystyle=\tfrac{1}{0.9}\cdot\tfrac{1}{3}\approx 0.3704, \displaystyle\hat{p}^{liq}(\mathfrak{p}_{C},0.10) \displaystyle=\tfrac{1}{1.1}\cdot\tfrac{5}{3}\approx 1.5152, \displaystyle\hat{p}^{liq}(\mathfrak{p}_{D},0.10) \displaystyle=\tfrac{1}{0.9}\cdot\tfrac{17}{19}\approx 0.9942, \displaystyle\hat{p}^{liq}(\mathfrak{p}_{E},0.10) \displaystyle=\tfrac{1}{1.1}\cdot\tfrac{109}{99}\approx 1.0010. Long A would liquidate only if the oracle fell to 0 ( i.e., never occurs in practice). The short C becomes liquidatable only when the oracle exceeds its threshold; the high-leverage long D and short E become liquidatable close to 1 if collateral is not topped up. B.3 Execution Price Example We summarize execution with a directional linear impact rule consistent with our notation: selling to close a long uses P^{sell}(x)=p_{t}-\alpha x and buying to close a short uses P^{buy}(x)=p_{t}+\alpha x with \alpha>0 ; the volume–weighted execution for a slice is \;p^{exec}=p_{t}-\tfrac{\alpha}{2}\Delta q if b_{i}=+1 (sell) and p^{exec}=p_{t}+\tfrac{\alpha}{2}\Delta q if b_{i}=-1 (buy). Directional linear impact with a single \alpha : selling (closing a long) uses P^{sell}(x)=p_{t}-\alpha x , buying (closing a short) uses P^{buy}(x)=p_{t}+\alpha x . The slice VWAP over [0,\Delta q] is p^{exec}=p_{t}\mp\tfrac{\alpha}{2}\Delta q (minus for sells, plus for buys). Fix \alpha=1.0 and choose \Delta q per case: • \mathfrak{p}_{A} (Long): p_{t}=1.30 , \Delta q=0.5 gives p^{exec}=1.30-0.5\cdot 0.5=1.05 . Here p^{bk}(\mathfrak{p}_{A})=\max\{p_{t}-2,0\}=0 , so p^{exec}>p^{bk} . • \mathfrak{p}_{B} (Long): p_{t}=0.95 , \Delta q=0.2 gives p^{exec}=0.95-0.5\cdot 0.2=0.85 . With p^{bk}(\mathfrak{p}_{B})=\max\{0.95-\tfrac{2}{3},0\}\approx 0.2833 , we have p^{exec}>p^{bk} . • \mathfrak{p}_{C} (Short): p_{t}=1.60 , \Delta q=2.0 gives p^{exec}=1.60+0.5\cdot 2.0=2.60 . Since p^{bk}(\mathfrak{p}_{C})=p_{t}+\tfrac{8/3}{4}=p_{t}+\tfrac{2}{3}=2.2667 , p^{exec}>p^{bk} (adverse for a short). • \mathfrak{p}_{D} (Long; targeted): p_{t}=0.98 , \Delta q=0.4 gives p^{exec}=0.98-0.5\cdot 0.4=0.78 . With p^{bk}(\mathfrak{p}_{D})=p_{t}-\tfrac{2}{19}\approx 0.8747 , we achieve p^{exec}p^{bk} . B.4 Liquidation Costs Example To ground the fee model, let \tau(\Delta q)=\tau^{fix}+\phi^{mark}p_{t}\,\Delta q+\phi^{exec}p^{exec}\,\Delta q as in practice. Consider p_{t}=1.30 , a slice \Delta q=0.50 , and a realized p^{exec}=1.32 . Two parameterizations: • Binance: (\tau^{fix},\phi^{mark},\phi^{exec})=(0,\,40\,\mathrm{bps},\,0) [ 21 ] . Then \tau=0.0040\cdot 1.30\cdot 0.50=0.0026 . • Hyperliquid: (\tau^{fix},\phi^{mark},\phi^{exec})=(0,\,20\,\mathrm{bps},\,10\,\mathrm{bps}) [ 68 ] . Then \tau=0.0020\cdot 1.30\cdot 0.50+0.0010\cdot 1.32\cdot 0.50\approx 0.00130+0.00066=0.00196 . Rates and formulas vary by venue and contract; the above are illustrative parameterizations consistent with public documentation that liquidation fees are charged and, on centralized venues like Binance, credited to the insurance fund. B.5 Liquidation Strategy Example Consider short \mathfrak{p}_{E} when the mark jumps to p_{t}=5.5 (ignore funding for this step). Equity before liquidation is e\approx c_{E}-q_{E}(p_{t}-p_{0})=\tfrac{10}{99}-1\cdot 4.5\approx-4.399 . Let \mu=0.10 and a linear fee \tau(\Delta q)=\phi\,p_{t}\,\Delta q with \phi=30 bps. Suppose execution is p^{exec}=5.55 . Using ( 11 ) and b=-1 , the minimal slice that restores maintenance solves \Delta q\;=\;\frac{\mu p_{t}q-e}{\,b(p^{exec}-p_{t})-\phi p_{t}+\mu p_{t}\,}\;=\;\frac{0.1\cdot 5.5\cdot 1-(-4.399)}{-0.05-0.003\cdot 5.5+0.1\cdot 5.5}\ \approx\ \frac{4.949}{0.4835}\ \approx\ 10.24. Since \Delta q>q_{E} , a greedy policy would fully close E (cap at \Delta q=q_{E}=1 ). B.6 Bad Debt Example Consider the high-leverage long \mathfrak{p}_{D} and a slice of size \Delta q=0.4 at p_{t}=0.98 . Suppose the realized execution is p^{exec}_{D}=0.78 while the bankruptcy level is p^{bk}_{D}\approx 0.8747 . Since p^{exec}_{D}p^{bk} ) realizes a positive contribution to D_{t} . B.7 Anatomy of a Liquidation Given the bankruptcy, liquidation, and execution prices, we can now describe the high-level algorithm that liquidations follow. We note that many live liquidation systems will have much more complex liquidation algorithms. These complexities deal with the coordination costs of coordinating many parties ( e.g. oracle provider, liquidators, spot order book liquidity) and precise models that exchanges use for their liquidation strategy. However, we effectively lump all of these complexities into the definition of the liquidation strategy. The following liquidation loop is run on every oracle update received by a perpetuals exchange: • For \mathfrak{p}_{i,t}\in\mathcal{P}_{n} – If the maintenance margin condition ( 7 ) is violated for \mathfrak{p}_{i,t} 1. Remove the position \mathcal{P}_{n}\leftarrow\mathcal{P}_{n}-\{\mathfrak{p}_{i,t}\} 2. Estimate quantity to liquidate \Delta q_{i}\leftarrow L(\mathfrak{p}_{i,t},p_{1:T},\hat{p}_{1:T}) 3. Liquidator executes \Delta q_{i} -sized liquidation and returns their execution price p^{exec}(\Delta q_{i}) 4. Update position: \mathfrak{p}^{\prime}_{i,t}=(q_{i}-\Delta q_{i},c_{i}+p^{exec}\Delta q_{i}-\tau_{t}(\Delta q_{i}),t_{i},b_{i}) 5. Re-add the position position: \mathcal{P}_{n}\leftarrow\mathcal{P}_{n}\cup\{\mathfrak{p}^{\prime}_{i,t}\} 6. Update equity using ( 12 ) • If \mathfrak{p}_{i,t} has bad debt, \tilde{e}(\mathfrak{p}_{i,t},p_{1:T},\hat{p}_{1:T},\Delta q_{i})<0 , then – Attempt to use the insurance fund, if it exists, to cover the bad debt (§ 2.3 ) – If the insurance fund is insufficiently sized, utilize an ADL mechanism (§ 2.4 ) Example. We illustrate a five–step path using the running set \mathcal{P}_{5} from above. Take T=5 , p_{0}=1 and p_{0:5}=(1.00,\ 0.96,\ 0.94,\ 0.97,\ 1.05,\ 1.12),\qquad\hat{p}_{t}=p_{t}\ \ (t=0,\dots,5),\qquad\mu=m_{I}=0.10. Executions follow the directional linear impact rule introduced in the execution example: for a slice of size \Delta q at time t , the volume-weighted execution is \displaystyle p^{exec}\;=\;p_{t}-\tfrac{\alpha}{2}\,\Delta q \displaystyle\text{(sell to close a long, $b=+1$)}, \displaystyle p^{exec}\;=\;p_{t}+\tfrac{\alpha}{2}\,\Delta q \displaystyle\text{(buy to close a short, $b=-1$)}. with \alpha>0 . We take \alpha=1.0 and choose \Delta q via the loop’s liquidation size \Delta q_{i}=L(\mathfrak{p}_{i,t},p_{1:T},\hat{p}_{1:T}) . D liquidates at t=2 (no bad debt). At t=2 we have p_{2}=0.94 and the maintenance condition ( 7 ) is violated for \mathfrak{p}_{D,2} , so the loop attempts a partial liquidation. Take \Delta q_{D}=L(\mathfrak{p}_{D,2},\cdot)=0.20 for illustration. By ( 10 ), p^{bk}(\mathfrak{p}_{D,2})\;=\;p_{2}-\tfrac{2}{19}\;\approx\;0.8347,\qquad p^{exec}_{D}\;=\;p_{2}-\tfrac{\alpha}{2}\Delta q_{D}\;=\;0.94-0.10\;=\;0.84. Since p^{exec}_{D}>p^{bk}(\mathfrak{p}_{D,2}) , this slice executes without bad debt; the position is updated to \mathfrak{p}^{\prime}_{D,2}=(q_{D}-\Delta q_{D},\ c_{D}+p^{exec}_{D}\Delta q_{D}-\tau_{2}(\Delta q_{D}),\ t_{D},\ b_{D}) and equity is updated per ( 12 ) before reinserting \mathfrak{p}^{\prime}_{D,2} into \mathcal{P}_{n} . E becomes bad debt at t=4 (short; liquidation fails). At t=4 we have p_{4}=1.05 and ( 7 ) is violated for \mathfrak{p}_{E,4} with b_{E}=-1 . The loop selects a liquidation size; take a full close \Delta q_{E}=L(\mathfrak{p}_{E,4},\cdot)=1 . By ( 10 ), p^{bk}(\mathfrak{p}_{E,4})\;=\;p_{4}+\tfrac{10}{99}\;\approx\;1.1510,\qquad p^{exec}_{E}\;=\;p_{4}+\tfrac{\alpha}{2}\Delta q_{E}\;=\;1.05+0.50\;=\;1.55. For a short, p^{exec}>p^{bk} realizes bad debt. The loop records the shortfall D_{4}\;=\;\big(p^{exec}_{E}-p^{bk}(\mathfrak{p}_{E,4})\big)\,\Delta q_{E}\;\approx\;0.399,\qquad\tilde{e}\big(\mathfrak{p}_{E,4},p_{1:5},\hat{p}_{1:5},\Delta q_{E}\big)\;=\;-D_{4}<0, and then attempts coverage via the insurance fund (up to \min\{\mathsf{IF}_{4},D_{4}\} ); any residual shortfall R_{4} defined by Eq. ( 16 ) is socialized by ADL (see § 2.4 ). B.8 Optimal Capital Structure Derivation In this section, we compute the optimal static insurance fund size IF^{\star} that trades off the opportunity cost of capital and expected uncovered losses beyond IF . Setup. Let D_{T} denote the round deficit with pdf f_{D} and tail \bar{F}_{D}(x)=\Pr[D_{T}>x] . Let r>0 be the per-unit capital cost and \kappa>0 the per-unit social loss weight of uncovered deficits. The objective is \min_{IF\geq 0}\ \mathcal{J}(IF)\;=\;r\,IF\;+\;\kappa\,\mathbb{E}\big[(D_{T}-IF)_{+}\big] which equals r\,IF+\kappa\int_{IF}^{\infty}(x-IF)f_{D}(x)\,dx when D_{T} is continuous. Optimality condition. Differentiating yields, \mathcal{J}^{\prime}(IF)=r-\kappa\,\bar{F}_{D}(IF). Hence any interior minimizer satisfies \bar{F}_{D}(IF^{\star})=r/\kappa , i.e., IF^{\star}\;=\;\bar{F}_{D}^{-1}\!\Big(\tfrac{r}{\kappa}\Big)\;=\;\mathrm{VaR}_{\,1-r/\kappa}(D_{T}). Assumptions. In order for this argument to hold, we assume that \mathcal{J} is convex and differentiable. Moreover, if r\geq\kappa then we define IF^{\star}=0 , whereas if r\to 0 , then IF^{\star}\rightarrow\sup D_{T} . Appendix C Moral Hazard and Extreme Value Analysis In this appendix, we formalize the moral hazard properties of ADL mechanisms. We analyze the optimal control of the Profitability-to-Total-Solvency Ratio (PTSR) and the Profitability-to-Maximum Solvency Ratio (PMR) defined in § 3.1.2 , and derive their asymptotic behavior under distributional assumptions. C.1 Setup and Assumptions We work in the large-market limit ( n\to\infty ) under the heavy-tailed assumptions characteristic of crypto markets. Recall that D^{\pi}_{T}=\theta_{\pi}D_{T} is the total socialized loss and \Delta^{\pi}_{T}=\theta_{\pi}\Delta_{T} is the maximum socialized shortfall under policy \pi . The survivor of the top winner is denoted \omega^{\pi}_{T} . Assumption A (regular variation). The right tail of the winner equity distribution \bar{F}_{+}(x) and the right tail of the loser shortfall distribution \bar{F}_{-}(x) are regularly varying with indices \alpha_{+}>0 and \alpha_{-}>0 , respectively. That is, \bar{F}_{\pm}(x)=L_{\pm}(x)x^{-\alpha_{\pm}} where L_{\pm} are slowly varying functions. Assumption B (LLN and EVT). We assume the standard Law of Large Numbers (LLN) and Extreme Value Theory (EVT) scaling limits apply: • Aggregates: W_{T}/n\xrightarrow{p}\mu_{+} and D_{T}/n\xrightarrow{p}\mu_{-} , for constants \mu_{\pm}\in(0,\infty) . • Extremes: The maximum winner \omega_{T} scales as b_{k_{n}}^{+}=F_{+}^{\leftarrow}(1-1/n) , and the maximum loser shortfall \Delta_{T} scales as b_{m_{n}}^{-}=F_{-}^{\leftarrow}(1-1/n) . C.2 Optimal Control of Moral Hazard C.3 Queue maximizes top-winner damage We first establish that the Queue (or Top-First) rule minimizes the moral hazard metrics defined in the main text for any fixed budget. Proposition C.1 (Queue Minimizes Top Survivor) . Fix a budget H=D^{\pi}_{T} . Let \omega_{T} be the equity of the largest winner. For any feasible haircut vector h satisfying \sum h_{i}e_{i}=H , the top-winner survivor \omega^{\pi}_{T} satisfies \omega^{\pi}_{T}\;\geq\;\max\{\omega_{T}-H,0\}. Equality is attained by the Queue rule, which sets the haircut on the top winner to h_{(1)}=\min(H/\omega_{T},1) and others to 0 (until h_{(1)} saturates). Proof. Let h_{(1)} be the haircut applied to the top winner. Since h_{i}e_{i}\geq 0 for all i , we have h_{(1)}\omega_{T}\leq\sum_{i}h_{i}e_{i}=H . The survivor is \omega^{\pi}_{T}=\omega_{T}-h_{(1)}\omega_{T}\geq\omega_{T}-H . Since equity cannot be negative, \omega^{\pi}_{T}\geq\max\{\omega_{T}-H,0\} . The Queue rule greedily allocates the budget to the largest position, achieving h_{(1)}\omega_{T}=\min(H,\omega_{T}) , thus attaining the lower bound. ∎ Corollary C.2 (Minimality of PTSR/PMR) . Since D^{\pi}_{T} and \Delta^{\pi}_{T} are fixed for a given policy severity, the Queue rule minimizes both \mathsf{PTSR}_{T} and \mathsf{PMR}_{T} among all budget-balanced policies. Gap versus pro-rata. The Queue rule minimizes moral hazard but concentrates the entire loss on the top winner (extreme inequality). In contrast, the Pro-Rata rule spreads the loss proportionally across all winners, prioritizing smoothness (treating similar positions similarly) over minimizing the top survivor’s burden. For H\leq\omega_{T} , the survivor gap is \omega^{\mathrm{PR}}_{T}-\omega^{\mathrm{Queue}}_{T}\;=\;H\left(1-\frac{\omega_{T}}{W_{T}}\right). This gap scales linearly with the budget H , quantifying the “cost of fairness”: by choosing the smoother Pro-Rata allocation, the system allows the top winner to retain more profit than is strictly necessary to cover the deficit. C.4 Asymptotic Scaling Results We now characterize the asymptotic behavior of PTSR and PMR under “gentle” policies (like Pro-Rata) where the top winner is not specifically targeted. Theorem C.3 (PTSR scaling) . Under Assumptions A and B, for any policy \pi with severity \theta_{n} where \omega^{\pi}_{T}\sim\omega_{T} (e.g., Pro-Rata with H\ll W_{T} ), the PTSR scales as \mathsf{PTSR}_{T}(\pi)\;\asymp_{p}\;\frac{b_{k_{n}}^{+}}{\theta_{n}n}. Proof. By definition, \mathsf{PTSR}_{T}(\pi)=\mathop{\bf E{}}[\omega^{\pi}_{T}/D^{\pi}_{T}] . Under the hypothesis, the numerator scales as \omega_{T}\sim b_{k_{n}}^{+} . The denominator is D^{\pi}_{T}=\theta_{n}D_{T} . By the LLN, D_{T}\sim\mu_{-}n , so D^{\pi}_{T}\sim\theta_{n}\mu_{-}n . Thus, the ratio scales as b_{k_{n}}^{+}/(\theta_{n}n) . Using bounded convergence for the expectation yields the result. ∎ Implication. The behavior of PTSR depends critically on the tail class of winner equities: • Pareto (Heavy) Tails: b_{k_{n}}^{+}\asymp n^{1/\alpha_{+}} . Here \mathsf{PTSR}_{T}\asymp n^{1/\alpha_{+}-1}/\theta_{n} . Moral hazard vanishes ( \mathsf{PTSR}\to 0 ) if and only if winners have finite mean ( \alpha_{+}>1 ). If \alpha_{+}<1 , the top survivor grows faster than the aggregate deficit, making the moral hazard wedge permanent. • Exponential/Gaussian (Light) Tails: b_{k_{n}}^{+}\asymp(\log n)^{\gamma} . Here \mathsf{PTSR}_{T}\asymp(\log n)^{\gamma}/(n\theta_{n}) . Since polylog growth is slower than linear, moral hazard vanishes rapidly for any non-vanishing severity \theta_{n} , as the aggregate deficit overwhelms the largest individual winner. Theorem C.4 (PMR Scaling) . Assume winner equities have mass \ell_{n}^{+} and loser deficits have mass \ell_{n}^{-} (representing total leverage), and that the underlying normalized distributions satisfy Assumption A. The PMR scales as: \mathsf{PMR}_{T}(\pi)\;\asymp_{p}\;\frac{1}{\theta_{n}}\cdot\frac{\ell_{n}^{+}}{\ell_{n}^{-}}\cdot\frac{b_{k_{n}}^{+}}{b_{m_{n}}^{-}}\;\asymp\;\frac{1}{\theta_{n}}\cdot\frac{\ell_{n}^{+}}{\ell_{n}^{-}}\cdot n^{\frac{1}{\alpha_{+}}-\frac{1}{\alpha_{-}}}. Proof. We have \mathsf{PMR}_{T}(\pi)=\mathop{\bf E{}}[\omega^{\pi}_{T}/\Delta^{\pi}_{T}] . The top winner scales with total winner leverage mass: \omega_{T}\sim\ell_{n}^{+}b_{k_{n}}^{+} . The maximum loser shortfall scales with total loser leverage mass: \Delta_{T}\sim\ell_{n}^{-}b_{m_{n}}^{-} . The budget balance condition implies \Delta^{\pi}_{T}=\theta_{n}\Delta_{T} . Thus, the ratio scales as \frac{\ell_{n}^{+}b_{k_{n}}^{+}}{\theta_{n}\ell_{n}^{-}b_{m_{n}}^{-}}\;=\;\frac{1}{\theta_{n}}\frac{\ell_{n}^{+}}{\ell_{n}^{-}}\frac{b_{k_{n}}^{+}}{b_{m_{n}}^{-}}. Substituting the regular variation scalings b_{k_{n}}^{+}\sim n^{1/\alpha_{+}} and b_{m_{n}}^{-}\sim n^{1/\alpha_{-}} yields the result. ∎ Theorem C.4 decomposes moral hazard into three components: (1) Policy Severity ( 1/\theta_{n} ): Lower severity amplifies PMR. (2) Leverage Imbalance ( \ell_{n}^{+}/\ell_{n}^{-} ): If the winning side holds more leverage mass, PMR increases. (3) Tail Risk ( n^{1/\alpha_{+}-1/\alpha_{-}} ): Heavier winner tails relative to losers drive PMR divergence. This decomposition highlights that even with fair tails ( \alpha_{+}=\alpha_{-} ), a systemic leverage imbalance ( \ell_{n}^{+}\gg\ell_{n}^{-} ) can sustain a high PMR. Specifically, if the exchange allows winners to be significantly more leveraged than losers (a "risk-on" imbalance), the top winner’s survival will systematically outstrip the worst-case socialized loss, creating a persistent moral hazard where maximal profits are privatized while maximal losses are capped. C.5 Relationship to Classical Risk Measures These two metrics have natural interpretations in terms of financial risk measures. The deficit D_{T} corresponds to the aggregate Expected Shortfall (ES) of the losing tail, while \Delta_{T} corresponds to the Value-at-Risk (VaR) at the extreme quantile ( 1/n ). Specifically, PTSR compares the Maximum Profit to the Aggregate Socialized Loss (ES-like), measuring efficiency in bulk. PMR compares the Maximum Profit to the Maximum Socialized Loss (VaR-like), measuring efficiency in the extreme tail. A high PMR implies that the system permits “unicorn” wins that vastly exceed the worst-case individual losses, potentially incentivizing excessive risk-taking if traders perceive a capped downside but unbounded upside. We further strengthen the connection to classical risk measures by showing that Queue not only minimizes the top survivor in expectation, but also minimizes it in the sense of VaR and ES at every tail level. Proposition C.5 (Queue minimizes VaR/ES of the top survivor) . Fix any budget h\geq 0 and \alpha\in(0,1) . For any feasible haircut vector h with \sum_{i}h_{i}e_{i}=h , \omega^{\pi}_{T}\;\geq\;(\omega_{T}-h)_{+}\quad\text{a.s.} Consequently, \mathrm{VaR}_{\alpha}(\omega^{\pi}_{T})\;\geq\;\mathrm{VaR}_{\alpha}\big((\omega_{T}-h)_{+}\big),\qquad\mathrm{ES}_{\alpha}(\omega^{\pi}_{T})\;\geq\;\mathrm{ES}_{\alpha}\big((\omega_{T}-h)_{+}\big). The Queue rule attains equality. Moreover, the following identities hold: \mathrm{VaR}_{\alpha}\big((\omega_{T}-h)_{+}\big)\;=\;\max\{\mathrm{VaR}_{\alpha}(\omega_{T})-h,\,0\}, \mathrm{ES}_{\alpha}\big((\omega_{T}-h)_{+}\big)\;=\;\frac{1}{1-\alpha}\int_{\alpha}^{1}\max\{\mathrm{VaR}_{u}(\omega_{T})-h,\,0\}\,du. Proof. The pointwise lower bound \omega^{\pi}_{T}\geq(\omega_{T}-h)_{+} follows from the budget constraint and nonnegativity of haircuts, as in Proposition C.1 . Monotonicity of risk measures implies that if X\geq Y almost surely, then \mathrm{VaR}_{\alpha}(X)\geq\mathrm{VaR}_{\alpha}(Y) and \mathrm{ES}_{\alpha}(X)\geq\mathrm{ES}_{\alpha}(Y) . For the identities, observe that x\mapsto(x-h)_{+} is nondecreasing; hence quantiles shift: \mathrm{VaR}_{\alpha}((X-h)_{+})=\max\{\mathrm{VaR}_{\alpha}(X)-h,0\} . The ES identity follows from the Kusuoka representation [ 75 ] \mathrm{ES}_{\alpha}(Z)=\frac{1}{1-\alpha}\int_{\alpha}^{1}\mathrm{VaR}_{u}(Z)\,du applied to Z=(X-h)_{+} . ∎ Implication for severity design. For a random budget H=\theta_{n}D_{T} , apply Theorem C.5 conditionally on H to conclude that Queue minimizes the conditional VaR/ES of the top survivor at every tail level. When \alpha_{+}>1 (finite mean winners), the tail-equivalence property of regularly varying distributions yields \frac{\mathrm{ES}_{u}(\omega_{T})}{\mathrm{VaR}_{u}(\omega_{T})}\;\to\;\frac{\alpha_{+}}{\alpha_{+}-1}\qquad\text{as }u\uparrow 1, so VaR- and ES-based moral hazard conclusions coincide asymptotically with those of PTSR and PMR. C.6 Randomized constructions for moral-hazard examples Extreme-value moral hazard (principal–agent). Fix \rho\in(0,1) and k_{n}=\lfloor\rho n\rfloor . Draw winner equities Y_{i}^{(n)} i.i.d. Pareto (\alpha_{+}) and loser equities X_{i}^{(n)} with mean \mu . Then M_{n}^{+}=\max Y_{i}^{(n)}\asymp n^{1/\alpha_{+}} while non-max winners sum to o(M_{n}^{+}) . Losers sum to D_{T}\approx\mu n . For fixed severity \theta_{n}\equiv\bar{\theta} , the haircut H_{n}\approx\bar{\theta}\mu n exceeds the capacity of non-max winners, forcing the top winner to cover the bulk. Post-ADL equity is (M_{n}^{+}-\bar{\theta}\mu n)_{+}\to 0 since n^{1/\alpha_{+}}\ll n for \alpha_{+}<1 . Leverage-imbalance construction. Fix leverage masses \ell_{n}^{-}\gg\ell_{n}^{+} . Draw loser equities X_{i}^{(n)} i.i.d. Pareto (\alpha_{-}) , so D_{T}\approx M_{n}^{-}\asymp n^{1/\alpha_{-}} . Assign winner leverage c\,\ell_{n}^{+} to a random index I_{n} and distribute the rest evenly. Then \omega_{n}\asymp(\ell_{n}^{+}/\ell_{n}^{-})n . This satisfies Proposition 5.2 assumptions, yielding the claimed threshold. Appendix D Theoretical Properties of Capped Pro-Rata We formalize the theoretical properties of the capped pro-rata rule. We note that the capped pro-rata algorithm in Algorithm 1 is a standard water-filling algorithm [ 28 ] . The most similar known prior work to this appendix is the study of how such algorithms provide sybil resistance in concave games in decentralized systems [ 71 ] . One can view our result as a generalization of this result. Properties of ADL rules. Fix time T , state \mathcal{P}_{n} , winners \mathcal{W}_{T} , and equities e_{i}=(e_{T}(\mathfrak{p}_{i}))_{+} . Let s_{\pi,i}=(1-h_{\pi,i})e_{i} be the surviving equity of position i under ADL policy \pi . We say that a feasible ADL rule \pi (§ 2.4 ) satisfies: 1. Sybil resistance: Outcomes are invariant to splitting/merging accounts. For any split e_{i}=\sum_{a=1}^{r}z_{a} , the sum of survivors equals the original survivor: \sum_{a}s^{(i\to z)}_{\pi,a}=s_{\pi,i} . 2. Scale invariance: s_{\pi}(ce;\theta_{\pi})=c\,s_{\pi}(e;\theta_{\pi}) for c>0 . 3. Monotonicity: If e_{1}\geq\dots\geq e_{k} , then s_{\pi,1}\geq\dots\geq s_{\pi,k} . 4. Interior regularity: The map (e,H)\mapsto s_{\pi}(e;H) is C^{1} on the interior, i.e., for e_{i}>0 for all i and 0m\} leaves A , contributing a fixed amount \sum_{j>m}e_{j}\beta_{j} to the budget, and the same water-filling argument applies on the remaining head with reduced budget. Concatenating the solution across all intervals I_{\ell} yields the reverse–waterfilling form h_{i}=\min\{\eta^{\star},\beta_{i}\} with \eta^{\star} chosen so that \sum_{i}e_{i}h_{i}=H , which is exactly capped pro–rata. Uniqueness follows either from the strict convexity of the Euclidean projection onto \{h\in[0,1]^{k}:\ \sum_{i}e_{i}h_{i}=H\} or from the monotone one–dimensional search that defines \eta^{\star} . ∎ Convex optimality We now formalize the convex-welfare interpretation of capped pro-rata from § 6 . Fix time T , winners \mathcal{W}_{T} with equities e_{i}=e_{T}(\mathfrak{p}_{i})_{+} , and effective caps \beta_{i}=\min\{\overline{h}_{i},1-\underline{e}_{i}/e_{T}(\mathfrak{p}_{i})\} defined by the haircut and equity constraints ( 22 )–( 23 ). Let B_{T}=\theta_{\pi}D_{T}(\mathcal{P}_{n}) denote the haircut budget from ( 30 ), and let \phi:[0,1]\to{\mbox{\bf R}} be a strictly convex increasing function representing per-unit haircut disutility as in ( 31 ). We consider choosing haircuts h=(h_{i})_{i\in\mathcal{W}_{T}} to minimize the equity-weighted total disutility \sum_{i\in\mathcal{W}_{T}}e_{i}\phi(h_{i}) subject to the per-account bounds 0\leq h_{i}\leq\beta_{i} and the aggregate budget constraint \sum_{i\in\mathcal{W}_{T}}e_{i}h_{i}=B_{T} . Proposition D.2 (Convex optimality) . For any strictly convex increasing \phi , the unique solution to \min_{h}\ \sum_{i\in\mathcal{W}_{T}}e_{i}\,\phi(h_{i})\quad\text{s.t.}\quad\sum_{i\in\mathcal{W}_{T}}e_{i}h_{i}=B_{T},\quad 0\leq h_{i}\leq\beta_{i} is the capped pro-rata rule ( 29 ), i.e., h_{\pi_{CP},i}^{\star}=\min\{\eta^{\star},\beta_{i}\}, where \eta^{\star} satisfies \sum_{i\in\mathcal{W}_{T}}e_{i}h_{\pi_{CP},i}^{\star}=B_{T} . Proof. The optimization problem is convex with a strictly convex objective and linear constraints, so any point satisfying the Karush–Kuhn–Tucker (KKT) conditions is the unique global minimizer [ 28 , Ch. 5] . For B_{T} in the interior of the feasible region ( 00 , so there is a unique c=\eta^{\star} solving this equation. Thus every KKT point has the capped pro-rata form h_{i}=\min\{\eta^{\star},\beta_{i}\} with \eta^{\star} determined by the budget, which is exactly the rule in ( 29 ). Strict convexity of the objective implies this KKT point is the unique global minimizer, proving the claim (see also the standard water-filling derivations in [ 28 , Ch. 5] ). ∎ Appendix E Algorithms for Pro-Rata Haircut Rules This appendix collects the explicit water-filling procedures for both the capped pro-rata rule from Section 6 and the Risk-Aware Pro-Rata (RAP) rule from Section 7 . Each algorithm takes the winner equities \{e_{i}\} , effective caps \{\beta_{i}\} , and the target budget B_{T}=\theta_{\pi}D_{T}(\mathcal{P}_{n}) , returning the optimal haircut vector h or declaring infeasibility if the aggregate capacity \sum_{i}e_{i}\beta_{i} is insufficient. E.1 Capped Pro-Rata Water-Filling The procedure below enforces the constraints in Equations 29 and 30 by leveling caps until the target budget is met. Algorithm 1 Capped Pro-Rata Haircut Allocation (Water-Filling) 1: Winner equities e=\{e_{1},\dots,e_{n}\} , Effective caps \beta=\{\beta_{1},\dots,\beta_{n}\} , Target budget B_{T} 2: Haircut vector h=\{h_{1},\dots,h_{n}\} or Infeasible 3: C\leftarrow\sum_{i=1}^{n}e_{i}\beta_{i} \triangleright Compute total maximum capacity 4: if B_{T}>C then 5: return Infeasible 6: end if 7: Sort indices p such that \beta_{p_{1}}\leq\beta_{p_{2}}\leq\dots\leq\beta_{p_{n}} 8: \beta_{p_{0}}\leftarrow 0 9: V\leftarrow 0 \triangleright Cumulative value covered 10: R\leftarrow\sum_{i=1}^{n}e_{i} \triangleright Remaining uncapped equity mass 11: for k=1 to n do 12: \Delta\beta\leftarrow\beta_{p_{k}}-\beta_{p_{k-1}} 13: V_{\mathrm{step}}\leftarrow\Delta\beta\cdot R 14: if V+V_{\mathrm{step}}\geq B_{T} then 15: \eta\leftarrow\beta_{p_{k-1}}+(B_{T}-V)/R \triangleright Found the water level \eta 16: break 17: end if 18: V\leftarrow V+V_{\mathrm{step}} 19: R\leftarrow R-e_{p_{k}} \triangleright User p_{k} becomes fully capped 20: end for 21: if VC then 5: return Infeasible 6: end if 7: Compute ratios r_{i}\leftarrow\beta_{i}/w_{i} for all i (treat w_{i}=0 as r_{i}=\infty ) 8: Sort indices p such that r_{p_{1}}\leq r_{p_{2}}\leq\dots\leq r_{p_{n}} 9: r_{p_{0}}\leftarrow 0 10: V\leftarrow 0 \triangleright Cumulative value covered 11: W_{\mathrm{rem}}\leftarrow\sum_{i=1}^{n}e_{i}w_{i} \triangleright Remaining weighted equity mass 12: for k=1 to n do 13: \Delta\tau\leftarrow r_{p_{k}}-r_{p_{k-1}} 14: V_{\mathrm{step}}\leftarrow\Delta\tau\cdot W_{\mathrm{rem}} 15: if V+V_{\mathrm{step}}\geq B_{T} then 16: \tau\leftarrow r_{p_{k-1}}+(B_{T}-V)/W_{\mathrm{rem}} \triangleright Found the scaling factor \tau 17: break 18: end if 19: V\leftarrow V+V_{\mathrm{step}} 20: W_{\mathrm{rem}}\leftarrow W_{\mathrm{rem}}-e_{p_{k}}w_{p_{k}} \triangleright User p_{k} becomes fully capped 21: end for 22: if VD_{T}. This illustrates a failure mode for pro-rata when the shock kernel scales strongly with leverage: pro-rata shrinks all winners uniformly and leaves effective leverages \lambda_{T,i} unchanged, so the shock magnitude \zeta_{T} is unaffected while residual exposure remains large on high-leverage winners. Correlated shocks example. Consider two winners with equal equity e and leverage levels \lambda_{t,1}>\lambda_{t,2}\geq 1 , and budget b_{t}=2\varepsilon e . Assume price shocks are AR(1): Z_{t+2}=\rho Z_{t+1}+\varepsilon_{t+2} , \rho\in(0,1) . RAP with w_{t,i}\propto\lambda_{t,i}\psi(1/\lambda_{t,i}) puts more haircut mass on account 1 (the higher leverage account). Assume account 1’s exposure to Z_{t+1} offsets the loss term (a "hedge") in the next step deficit: D^{\text{next}}_{t+1}=(\alpha-\beta s_{t,1})Z_{t+1} . Shrinking s_{t,1} (winner 1’s residual equity) weakens the hedge into t+2 . Since s^{\mathrm{RAP}}_{t,1}\lambda_{L} ) and high-revenue; user L is safer but generates less fee volume. The exchange must raise a budget b via haircuts h=(h_{H},h_{L}) to cover a deficit. Its objective combines immediate safety (minimizing insolvency risk) and future revenue (LTV): U^{\mathrm{exch}}(h)\;=\;\underbrace{-\mathrm{Loss}(h)}_{\text{Immediate Safety}}\;+\;\underbrace{\beta\sum_{i\in\{H,L\}}\theta_{i}(1-h_{i})\lambda_{i}}_{\text{Future Revenue (LTV)}}, where \mathrm{Loss}(h)=L_{0}-\alpha_{H}h_{H}-\alpha_{L}h_{L} is the expected insurance fund draw, and \theta_{i}\lambda_{i} is the expected future fee revenue per unit of equity from user i . We assume \alpha_{H}/e_{H}>\alpha_{L}/e_{L} , meaning user H provides the cheapest risk reduction per dollar of haircut. Policy comparison. We compare two policies: • RAP (Risk-Minimizing): Prioritizes risk reduction above all. Since H offers the best “bang for the buck” in safety ( \alpha_{H}/e_{H}>\alpha_{L}/e_{L} ), 15 15 15 The marginal reduction in loss per unit of budget is \frac{\partial\mathrm{Loss}}{\partial h_{i}}\frac{dh_{i}}{d(\text{budget})}=\frac{\alpha_{i}}{e_{i}} . Since user H has higher leverage, they have a higher risk coefficient \alpha_{H} , making \alpha_{H}/e_{H} the steepest descent direction for the loss function. RAP fully targets H first: h^{\mathrm{RAP}}=(b/e_{H},0) (assuming b0 . Specifically, PR dominates RAP if the relative revenue of the high-leverage user exceeds a threshold: \frac{\theta_{H}}{\theta_{L}}\;\geq\;\Theta^{\star}\;=\;\frac{h^{\mathrm{PR}}_{L}}{\Delta h_{H}}\cdot\frac{\lambda_{L}}{\lambda_{H}}\;+\;\frac{\alpha_{H}-\frac{h^{\mathrm{PR}}_{L}}{\Delta h_{H}}\alpha_{L}}{\beta\,\lambda_{H}\,\theta_{L}}. While RAP is “optimal” for preventing immediate insolvency, it can be myopic. If high-leverage traders are the exchange’s cash cows, the exchange has a rational incentive to use Pro-Rata to keep them active, even at the cost of slightly higher short-term risk. Appendix G Stackelberg Control In this appendix, we formalize the results of § 8 , where we model ADL as a Stackelberg game. G.1 Opposing Schur orderings for time to solvency and LTV We formalize the fundamental trade-off between aggressive debt reduction (safety) and trader fee retention (value), formalizing the example in Appendix F.3 . Let n_{t}=|\mathcal{W}_{t}| . Given any feasible strategy \pi , write z_{t}(\pi)\in{\mbox{\bf R}}_{+}^{n_{t}} for the vector of residual debts at time t (sorted in decreasing order). Let h_{t,i}^{\pi}\in[0,1] be the haircut fraction for agent i with equity e_{t,i} , so that the haircut mass is m_{t,i}(\pi)=h_{t,i}^{\pi}e_{t,i} . We write m_{t}(\pi)\in{\mbox{\bf R}}_{+}^{n_{t}} for the corresponding vector of haircut masses. Let Z_{t}\in{\mbox{\bf R}}_{+}^{n_{t}} denote the equity shock at time t , following the notation of Section 7 . These evolve componentwise as z_{t+1,i}(\pi)=z_{t,i}(\pi)+Z_{t+1,i}-m_{t,i}(\pi), so summing from \tau=0 to t-1 yields the conservation–of–mass identity z_{t}(\pi)=z_{0}+\sum_{\tau=1}^{t}Z_{\tau}-\sum_{\tau=0}^{t-1}m_{\tau}(\pi). (37) This ensures that the equity at time t is either initial equity, was gained or lost in a price shock, or haircut. Proposition G.1 (Solvency-Revenue Trade-off) . Let A and B be two strategies facing the same shock sequence (Z_{t})_{t} . Assume: (i) Safety Dominance: For all t<\tau_{\mathrm{solv}}(A) , strategy A maintains weakly smaller residuals than B in the weak submajorization order: z_{t}(A)\preceq_{w}z_{t}(B) . (ii) Retention Value: Let M_{t}(\pi):=\sum_{\tau=0}^{t-1}m_{\tau}(\pi) be the cumulative haircut vector and suppose the lifetime value takes the form \mathrm{LTV}(\pi)=\sum_{t}\beta^{t}G_{t}(M_{t}(\pi)), where each stage value G_{t}:{\mbox{\bf R}}_{+}^{n_{t}}\to{\mbox{\bf R}} is Schur–concave and coordinate-wise nonincreasing in M_{t} (more cumulative liquidations in the weak submajorization order reduce exchange LTV). Then: (a) \tau_{\mathrm{solv}}(A)\leq\tau_{\mathrm{solv}}(B) (Strategy A is safer). (b) \mathrm{LTV}(A)\leq\mathrm{LTV}(B) (Strategy B generates more value). Proof. We prove this in two steps. Step 1: Solvency time. For any t<\tau_{\mathrm{solv}}(A) we have z_{t}(A)\preceq_{w}z_{t}(B) by (i). If B is solvent at some such time t so that z_{t}(B)=0 , then weak submajorization on {\mbox{\bf R}}_{+}^{n_{t}} forces z_{t}(A)=0 as well, since the zero vector is minimal in this order. Hence B cannot become solvent strictly before A , and \tau_{\mathrm{solv}}(A)\leq\tau_{\mathrm{solv}}(B) almost surely. Step 2: LTV. From the conservation–of–mass identity ( 37 ) and the fact that z_{0} and (Z_{\tau})_{\tau} are common across strategies, the cumulative haircuts M_{t}(\pi):=\sum_{\tau=0}^{t-1}m_{\tau}(\pi) satisfy M_{t}(\pi)=z_{0}+\sum_{\tau=1}^{t}Z_{\tau}-z_{t}(\pi), so that M_{t}(A)-M_{t}(B)=z_{t}(B)-z_{t}(A). For each t<\tau_{\mathrm{solv}}(A) , assumption (i) gives z_{t}(A)\preceq_{w}z_{t}(B) , and subtracting from the common vector z_{0}+\sum_{\tau=1}^{t}\xi_{\tau} reverses the weak submajorization order, yielding M_{t}(A)\succeq_{w}M_{t}(B) . By Schur–concavity and coordinate-wise monotonicity of each G_{t} in (ii), this implies G_{t}(M_{t}(A))\leq G_{t}(M_{t}(B)) for all t , so \mathrm{LTV}(A)\;=\;\sum_{t}\beta^{t}G_{t}(M_{t}(A))\;\leq\;\sum_{t}\beta^{t}G_{t}(M_{t}(B))\;=\;\mathrm{LTV}(B). ∎ Examples. We first give a one–step illustration of Proposition G.1 and then show how its hypotheses can fail for the literal queue versus capped pro–rata policies. Single–period trade-off. Consider a single round with two winners and common initial residuals z_{0}=(1,1) . Let strategy A use aggressive haircuts M_{1}(A)=(1,1) , fully clearing both accounts so that z_{1}(A)=(0,0) . Let strategy B use milder haircuts M_{1}(B)=(1,0) , clearing only the first account and leaving z_{1}(B)=(0,1) . Then z_{1}(A)\preceq_{w}z_{1}(B) and M_{1}(A)\succeq_{w}M_{1}(B) , so the hypotheses of Proposition G.1 hold with T=1 . For a Schur–concave, coordinate-wise nonincreasing stage value such as G_{1}(M)\;:=\;-\|M\|_{2}^{2}, we obtain G_{1}(M_{1}(A))=-2 and G_{1}(M_{1}(B))=-1 , so \mathrm{LTV}(A)\leq\mathrm{LTV}(B) , exactly exhibiting the safety–versus–value trade-off. Queue versus capped pro–rata. Now consider the familiar one–round example with two winners, equities e=(1,1) , and budget b=1 . Under capped pro–rata we have haircuts h^{\mathrm{PR}}=(\tfrac{1}{2},\tfrac{1}{2}) , masses m^{\mathrm{PR}}=(\tfrac{1}{2},\tfrac{1}{2}) , and residuals z^{\mathrm{PR}}=(\tfrac{1}{2},\tfrac{1}{2}) . Under a queue policy we instead have h^{\mathrm{Q}}=(1,0) , so m^{\mathrm{Q}}=(1,0) and z^{\mathrm{Q}}=(0,1) . In weak submajorization order, z^{\mathrm{PR}}\prec_{w}z^{\mathrm{Q}} and likewise m^{\mathrm{PR}}\prec_{w}m^{\mathrm{Q}} . Thus no choice of labels A,B can make pro–rata simultaneously satisfy the safety-dominance condition z_{t}(A)\preceq_{w}z_{t}(B) and the “more cumulative haircuts” condition M_{t}(A)\succeq_{w}M_{t}(B) in Proposition G.1 . Moreover, for any Schur–concave, coordinate-wise nonincreasing G (for instance G(M)=-\|M\|_{2}^{2} ), we have G(m^{\mathrm{Q}})\leq G(m^{\mathrm{PR}}) , so in this toy case the safer policy (pro–rata) also delivers higher user value. This shows that while Proposition G.1 captures a structural opposing–orders phenomenon, its hypotheses do not hold mechanically for every queue versus capped pro–rata comparison. G.2 Regret Analysis In this appendix, we unify the regret analysis for the severity (scalar) and MDIC (vector) controllers. We present a master theorem for Online Mirror Descent (OMD) with constraints and then specialize it to our specific settings. Master mirror descent bound. Consider a sequence of convex loss functions f_{t}:\mathcal{X}\to\mathbb{R} on a convex set \mathcal{X} . A learner chooses x_{t}\in\mathcal{X} and updates using Online Mirror Descent (OMD) with a proximal function (Bregman divergence) D(\cdot\|\cdot) . Theorem G.2 (OMD Regret) . Let subgradients be bounded by \|g_{t}\|_{*}\leq G in the dual norm, and let the domain diameter be bounded by D_{\max}^{2}\geq\max_{x}D(x\|x_{1}) . With step size \eta_{t}=\frac{D_{\max}}{G\sqrt{t}} , the regret satisfies: \sum_{t=1}^{T}f_{t}(x_{t})-\min_{x\in\mathcal{X}}\sum_{t=1}^{T}f_{t}(x)\;\leq\;2D_{\max}G\sqrt{T}. When convex constraints c_{t}(x)\leq 0 are imposed, applying OMD to the Lagrangian guarantees the same O(\sqrt{T}) regret and O(T^{-1/2}) average constraint violation [ 65 ] . We refer the interested reader to the standard reference [ 65 ] for a detailed proof. Residual value function and subgradients. We now describe the residual value function, which is the main subject of mirror descent analysis. For each round t , let \mathcal{W}_{t} be the set of winners with equities e_{t,i}>0 , haircut caps \beta_{t,i}\in[0,1] , and weights w_{t,i}\geq 0 . The residual value function parametrized by a haircut budget b is \tilde{L}_{t}(b)\;=\;\min_{h\in[0,1]^{|W_{t}|}}\;\sum_{i\in W_{t}}(1-h_{i})\,\lambda_{t,i}e_{t,i}\quad\text{s.t.}\quad\sum_{i\in W_{t}}e_{t,i}h_{i}=b,\;\;0\leq h_{i}\leq\beta_{t,i}. Let \tau_{t}(b) be the KKT multiplier of the budget constraint at b . Lemma G.3 (Convexity and subgradient) . For each t , b\mapsto\tilde{L}_{t}(b) is convex, nonincreasing, and piecewise-linear on [0,\bar{b}_{t}] ; any KKT multiplier -\tau_{t}(b)\in\partial\tilde{L}_{t}(b) is a valid subgradient. Moreover |\tau_{t}(b)|\leq\max_{i\in W_{t}}w_{t,i} . Proof. The program is a linear minimization with a right-hand-side parameter b . Sensitivity analysis implies that the optimal value is convex and piecewise-linear in b , and that the negative of the budget multiplier is a subgradient. Complementary slackness yields h_{i}=\min\{\beta_{t,i},\tau_{t}(b)w_{t,i}\} on active coordinates, which bounds |\tau_{t}(b)| by the maximum weight. ∎ Lemma G.3 verifies the curvature and bounded-subgradient assumptions required by the master OMD regret theorem (Theorem G.2 ) hold, so we can directly plug \tilde{L}_{t} into that framework. Severity optimization. In the main text, the severity controller selects a scalar severity \theta_{t}\in[0,\Theta_{t}] that determines the haircut budget via b_{t}=\theta_{t}D_{t} . Optimizing over b_{t} or \theta_{t} is equivalent; we keep b_{t} as the decision variable in the appendix for notational convenience. The loss is f_{t}(b)=\tilde{L}_{t}(b) , which is convex by Lemma G.3 . We use the Euclidean divergence D(x\|y)=\tfrac{1}{2}(x-y)^{2} , reducing OMD to projected gradient descent. Corollary G.4 (Severity Regret) . Let G=\max_{t,i}w_{t,i} be the bound on subgradients (marginal haircut savings). The severity controller achieves: \mathrm{Regret}_{T}^{(\mathrm{sev})}\;\leq\;2\bar{b}G\sqrt{T}. Proof. The domain diameter is \bar{b} . By Lemma G.3 , subgradients correspond to dual variables bounded by the maximum weight G . The result follows directly from Theorem G.2 . ∎ Haircut optimization (MDIC). The MDIC controller optimizes u_{t}=(\theta_{t},v_{t}) , where \theta_{t} is severity and v_{t} are ranking weights. We use a block-separable divergence D=D_{\phi}\oplus D_{\Phi} , where D_{\Phi} is the KL-divergence for the weights. Corollary G.5 (MDIC Regret) . The MDIC controller achieves regret bounded by: O\left(\sqrt{TD_{\phi}(\theta^{\star}\|\theta_{1})}\;+\;\sqrt{TD_{\Phi}(v^{\star}\|v_{1})}\right). Initializing v_{1} as the uniform distribution over the active winners (so every coordinate is strictly positive) minimizes D_{\Phi}(v^{\star}\|v_{1}) to O(\log|\mathcal{W}_{t}|) , yielding better scaling than Euclidean approaches for high-dimensional weight vectors. Proof of the \mathcal{O}(\log|\mathcal{W}_{t}|) claim. The divergence D_{\Phi} induced by the entropy mirror map equals the Kullback–Leibler divergence: D_{\Phi}(v^{\star}\|v_{1})=\sum_{i\in W_{t}}v^{\star}_{i}\log\frac{v^{\star}_{i}}{v_{1,i}}. Uniform initialization over active winners sets v_{1,i}=1/|\mathcal{W}_{t}| . Hence D_{\Phi}(v^{\star}\|v_{1})=\sum_{i}v^{\star}_{i}\log v^{\star}_{i}+\log|\mathcal{W}_{t}|. The first term is the negative Shannon entropy of v^{\star} and is therefore non-positive, implying D_{\Phi}(v^{\star}\|v_{1})\leq\log|W_{t}| . Thus the initialization costs at most O(\log|\mathcal{W}_{t}|) . ∎ Linear regret for static policies. The following toy instance shows that any static severity \bar{\theta} can incur \Omega(T) regret. Consider two regimes A (liquidity) and B (stress) alternating every round, with loss f_{t}(\theta)=\begin{cases}\theta&t\in A\quad(\text{minimize severity to protect revenue}),\\ \bar{\theta}-\theta&t\in B\quad(\text{maximize severity to clear deficits}).\end{cases} The per-round optimizer is \theta^{\star}_{t}=0 in A and \theta^{\star}_{t}=\bar{\theta} in B , so \sum_{t=1}^{T}f_{t}(\theta)-f_{t}(\theta^{\star}_{t})=\tfrac{T}{2}\theta+\tfrac{T}{2}(\bar{\theta}-\theta)=\tfrac{T}{2}\bar{\theta}=\Omega(T) for any fixed \theta\in[0,\bar{\theta}] . By Theorem G.2 , OMD (and MDIC) with \eta_{t}\propto 1/\sqrt{T} attains O(\sqrt{T}) regret on the same sequence. G.3 Stackelberg vs. Nash in a Two-Round ADL Game This appendix illustrates how the timing of moves affects equilibrium selection in ADL scenarios. We show that while simultaneous moves (Nash) can result in a coordination failure where no one unwinds, sequential moves (Stackelberg) allow a leader to induce the efficient high-unwind outcome. Setup. Consider two agents i\in\{1,2\} , each holding one unit of position. At t=1 , each agent chooses whether to unwind (voluntarily close) their position ( x_{i}=1 ) or maintain it ( x_{i}=0 ). Let X=x_{1}+x_{2} be the total volume of voluntary unwinds. We assume that forced ADL occurs at t=2 if this volume is insufficient, i.e., if X0 . However, if ADL is triggered (because Xf , regardless of their individual choice. Simultaneous play (Nash). In simultaneous play, there are two pure Nash equilibria and we effectively have a Coordination Game [ 56 ] : • Coordination failure (0,0) : If the opponent plays 0 , playing 1 results in volume 1c . Thus, the best response is 0 , making (0,0) stable. • Coordination success (1,1) : If the opponent plays 1 , playing 1 achieves volume 2\geq T at cost f . Since f5 . In Stackelberg play, the leader plays 1 , knowing the follower will respond with 1 (cost 1 ) rather than triggering ADL (cost 5 ). From the exchange’s perspective, if ADL losses exceed 2f , the sequential outcome (1,1) is strictly preferred as it collects fees and preserves solvency. G.4 Follower Strategic Responses We study two types of follower strategic responses. First, we show that pro-rata haircuts can lead to low leverage users responding by leaving an exchange earlier than higher leverage users. This imposes a negative feedback loop as the exchange’s remaining users are higher risk. Secondly, we study traders who aim to add liquidity to the exchange to cover a deficit. These traders are speculating on profits that can be made after an ADL event. We show that such users are incentivized to wait long than the exchange solvency time. G.4.1 Adverse Selection Under Pro-Rata We model the ADL interaction as a repeated Stackelberg game: in every round t the exchange (leader) moves first and the surviving winners (followers) best respond. Each stage looks like a one-round Stackelberg problem, but the outcomes feed into subsequent rounds through the evolving of winner equities e_{T,i} and the winning set \mathcal{W}_{t} . At the start of round t the exchange publicly commits to a severity/haircut rule ( e.g. queue, pro-rata, RAP) that maps the realized deficit D_{t} and winner book \mathcal{W}_{t} to haircut shares. After observing \theta_{t} and anticipating D_{t} , each winner chooses whether to keep its position active (accepting the induced haircut) or to exit/migrate, receiving outside option u_{0} . Payoffs are U_{i}^{(\pi)}=\mu_{i}-\mathop{\bf E{}}[H_{t,i}^{(\pi)}] ; type i exits whenever this falls below u_{0} . A death spiral occurs when pro-rata haircuts force the safest (low-leverage) winners to churn first, shrinking W_{t} , which in turn raises the future haircut share for the remaining winners, triggering additional exits and further eroding liquidity. We show that RAP breaks this feedback loop by tilting the follower game against high-leverage accounts. Setup. Let i index a profitable trader with effective equity e_{t,i} , leverage \lambda_{t,i} , and expected per-round utility \mu_{i} . Normalize severity and deficits by \bar{\theta}=\mathop{\bf E{}}[\theta_{t}] , \bar{D}=\mathop{\bf E{}}[D_{t}] , and write \bar{W}=\mathop{\bf E{}}[W_{t}] for the expected equity mass of winners. Under pro-rata, the haircut share of i is s^{\mathrm{PR}}_{t,i}=e_{t,i}/W_{t} , so the realized haircut mass is H^{\mathrm{PR}}_{t,i}=\theta_{t}D_{t}\,s^{\mathrm{PR}}_{t,i}. For RAP with a nondecreasing weight g , the share becomes s^{\mathrm{RAP}}_{t,i}=\frac{e_{t,i}\,\lambda_{t,i}g(\lambda_{t,i})}{\sum_{j\in W_{t}}e_{t,j}\,\lambda_{t,j}g(\lambda_{t,j})},\qquad H^{\mathrm{RAP}}_{t,i}=\theta_{t}D_{t}\,s^{\mathrm{RAP}}_{t,i}. Risk-intensity comparator. Define the equity-weighted market risk intensity at round t by \mu^{(g)}_{t}\ :=\ \frac{\sum_{j\in W_{t}}e_{t,j}\,\lambda_{t,j}g(\lambda_{t,j})}{\sum_{j\in W_{t}}e_{t,j}}. Lemma G.7 (When RAP burdens a trader less than Pro-Rata) . For any winner i , s^{\mathrm{RAP}}_{t,i}\ \leq\ s^{\mathrm{PR}}_{t,i}\quad\Longleftrightarrow\quad\lambda_{t,i}\,g(\lambda_{t,i})\ \leq\ \mu^{(g)}_{t}. If g is strictly increasing and \lambda_{t,i} is strictly below the equity-weighted market average in the g -scale, the inequality is strict. Proof. Compute \frac{s^{\mathrm{RAP}}_{t,i}}{s^{\mathrm{PR}}_{t,i}}\ =\ \frac{e_{t,i}\lambda_{t,i}g(\lambda_{t,i})/\sum_{j}e_{t,j}\lambda_{t,j}g(\lambda_{t,j})}{e_{t,i}/\sum_{j}e_{t,j}}\ =\ \frac{\lambda_{t,i}g(\lambda_{t,i})}{\mu^{(g)}_{t}}. The claim follows immediately. ∎ Participation thresholds. Each trader type i has a reservation utility u_{0} : the expected per-round payoff it can secure outside the ADL venue ( e.g. by migrating flow to another exchange, posting liquidity in a different product, or simply investing idle cash in a risk-free instrument). We treat u_{0}>0 as exogenous and, unless stated otherwise, common across trader types. We note that heterogeneity in reservation utility can be captured by indexing it as u_{0,i} without changing the argument. A trader remains active only if the ADL-adjusted payoff exceeds this fallback value. We formalize this by defining the net utility under policy \pi as U_{i}^{(\pi)}:=\mu_{i}-\mathop{\bf E{}}[H_{t,i}^{(\pi)}], and saying that i participates in a given regime iff U_{i}^{(\pi)}\geq u_{0} . Equivalently, the participation threshold is the maximum haircut burden \mathop{\bf E{}}[H_{t,i}^{(\pi)}] that keeps i indifferent, namely \mu_{i}-u_{0} . Corollary G.8 (Pro-Rata death spiral vs. RAP retention) . Fix a type i and suppose there is a set of rounds of positive probability on which \lambda_{t,i}g(\lambda_{t,i})\leq\mu^{(g)}_{t} (so s^{\mathrm{RAP}}_{t,i}\leq s^{\mathrm{PR}}_{t,i} by Lemma G.7 ). If, over the same distribution of rounds, \mu_{i}-\mathop{\bf E{}}\big[\theta_{t}D_{t}\,s^{\mathrm{PR}}_{t,i}\big]\ <\ u_{0}\ \ \leq\ \ \mu_{i}-\mathop{\bf E{}}\big[\theta_{t}D_{t}\,s^{\mathrm{RAP}}_{t,i}\big], then the participation constraint fails under pro-rata but holds under RAP: type i exits in the pro-rata regime while remaining under RAP. Examples and calibration. Consider two winners, L (low leverage) and H (high leverage), who trade for two rounds. Equities are (e_{L},e_{H})=(60,40) , leverage levels are (\lambda_{L},\lambda_{H})=(2,6) , expected per-round utilities are (\mu_{L},\mu_{H})=(12,40) , and the outside option is u_{0}=2 . Each round the deficit equals the total haircut budget ( \theta_{t}=1 ) with D_{1}=40 and D_{2}=30 . Pro-rata. Shares equal equity weights: s_{i}^{\mathrm{PR}}=e_{i}/(e_{L}+e_{H}) , so s^{\mathrm{PR}}=(0.6,0.4) even though both traders lose the same haircut factor h^{\mathrm{PR}}=H_{i}^{\mathrm{PR}}/e_{i}=\theta_{t}D_{t}/W_{t}=0.4 . Round 1 haircut masses are H^{\mathrm{PR}}=(24,16) and utilities are U^{\mathrm{PR}}=(\!-12,24) . Trader L churns because U_{L}^{\mathrm{PR}}u_{0} , so both types remain for round 2. With both accounts active in round 2, shares remain tilted toward H and haircuts (4.3,25.7) keep both traders above u_{0} , preventing churn and stabilizing W_{t} . This concrete two-player, two-round example mirrors the equilibria predicted by Appendix C.6 and the empirical replay in § 9 : pro-rata drives the safest capital away first, whereas RAP reallocates the burden toward high-leverage accounts and keeps the equity base intact. G.4.2 Waiting Game and MDIC-NW Game. When an ADL event creates a deficit D_{t} , the exchange moves first: it announces the contemporaneous severity \theta_{t} (hence the haircut budget \theta_{t}D_{t} ) together with the liquidity premium \kappa_{t} it is willing to pay per unit of external capital. 16 16 16 In practice, this occurs via either an increase in the expected payment for users who stake to an insurance fund ( e.g. [ 47 ] ) or add assets to an HLP/LLP style vault [ 69 , 79 ] A Backstop Liquidity Provider (BLP) then decides whether to intervene immediately by injecting any q_{t}\in[0,D_{t}] units, or to wait u\geq 1 additional rounds before posting the same quantity. Waiting exposes the BLP to time discounting (with a factor \beta^{u} ) and to the future premium schedule (\theta_{t+u},\kappa_{t+u}) . The BLP’s payoff from intervening in round t+u with size q is \beta^{u}q(\theta_{t+u}-\kappa_{t+u}) , while the exchange’s objective is to restore solvency before a deadline by ensuring that the entire deficit is filled (so delay harms solvency). This Stackelberg game involves the exchange posting incentives as leader and BLPs optimally choose a stopping time and quantity as a follower. The setup captures the “waiting game” intuition: unless the contract guarantees non-negative per-unit surplus right now, rational liquidity providers will defer, pushing resolution beyond the solvency window. We note that this resembles other waiting games in Maximal Extractable Value (MEV) auctions that have been studied empirically on live systems [ 83 , 80 ] . Per-unit surplus and waiting. Let a Backstop Liquidity Provider (BLP) be able to absorb up to D_{t} units at time t . Write the per-unit liquidity premium as \kappa_{t}\geq 0 (execution cost plus risk per unit, e.g., \kappa_{t}=\Gamma_{t}/D_{t} when the premium is linear in size) and define the per-unit net surplus \delta_{t}\ :=\ \theta_{t}-\kappa_{t}. If the BLP executes q\in[0,D_{t}] units at time t , the immediate surplus is q\,\delta_{t} ; deferring the same q to a later time t+u yields discounted surplus \beta^{u}q\,\delta_{t+u} . No-wait condition. We say the exchange enforces a per-unit “No-Wait” constraint when \delta_{t}\geq 0 (equivalently, \theta_{t}D_{t}\geq\Gamma_{t} in the linear-premium case). Lemma G.9 (Per-unit No-Wait implies immediate action) . Suppose \beta\in(0,1] , the exchange enforces \delta_{t}\geq 0 , and the net per-unit surplus is nonincreasing over time: \delta_{t+u}\leq\delta_{t} for all u\geq 0 (e.g., when \theta_{t+u}\leq\theta_{t} and \kappa_{t+u}\geq\kappa_{t} ). Then for any q\in[0,D_{t}] , executing q immediately at t weakly dominates waiting: q\,\delta_{t}\ \geq\ \beta^{u}\,q\,\delta_{t+u}\qquad\forall\,u\geq 0. In particular, the BLP’s optimal stopping time is \tau^{\star}=t and, if capacity allows, q_{t}^{\star}=D_{t} . Proof. By assumption, \delta_{t+u}\leq\delta_{t} and \beta^{u}\leq 1 for all u\geq 0 , hence \beta^{u}q\,\delta_{t+u}\leq q\,\delta_{t} for any fixed q\in[0,D_{t}] . Summing over an optimal decomposition of D_{t} into infinitesimal units yields the stated dominance and the immediate-execution optimality. ∎ Corollary G.10 (No-Wait bounds solvency recovery) . Let \tau_{\mathrm{def}} denote the default time and recall the solvency recovery clock \tau_{\mathrm{solv}} from § 8.2 . If the exchange enforces \delta_{t}\geq 0 for all rounds between \tau_{\mathrm{def}} and the first round in which the deficit is zero, then \tau_{\mathrm{solv}}=\tau_{\mathrm{def}}+1 . Hence solvency is restored within a single round of the default event. Proof. Lemma G.9 implies that at \tau_{\mathrm{def}} the BLP injects q_{\tau_{\mathrm{def}}}^{\star}=D_{\tau_{\mathrm{def}}} , so the entire deficit is covered immediately. Therefore the insurance fund (or deficit buffer) reaches the safety level \delta after the same round, yielding \tau_{\mathrm{solv}}=\tau_{\mathrm{def}}+1 . ∎ This result states that if the no-wait condition is enforced, BLPs will inject liquidity such that the solvency time is minimized. In theory, an exchange can use some of its future revenue or profits ( e.g. via token issuance) to enforce the no-wait constraint. Proof of Proposition 8.2 Proof. Let U(\tau,q)=\beta^{\tau-t}q(\theta_{\tau}-\kappa_{\tau}) be the discounted utility of a BLP who provides liquidity q at time \tau\geq t . Here, \theta_{\tau} represents the payment per unit of liquidity (derived from the ADL severity) and \kappa_{\tau} represents the cost per unit (liquidity premium). The BLP solves the optimal stopping problem (see, e.g. [ 92 ] ): \max_{\tau\geq t,q\in[0,D_{t}]}\mathop{\bf E{}}_{t}\left[U(\tau,q)\right]. This objective captures the trade-off between acting immediately to capture the current spread versus waiting for potentially higher future premiums, discounted by the time cost of delay. Assuming the BLP is risk-neutral and has capacity q=D_{t} , the condition for immediate stopping at \tau=t is that the immediate payoff exceeds the expected discounted future value: D_{t}(\theta_{t}-\kappa_{t})\;\geq\;\beta\mathop{\bf E{}}_{t}[V_{t+1}(D_{t+1})], where V_{t+1}(D_{t+1})=\max_{\tau\geq t+1,q\in[0,D_{t+1}]}\mathop{\bf E{}}_{t+1}[U(\tau,q)] is the value function from t+1 onwards. Substituting the per-unit surplus \delta_{t}=\theta_{t}-\kappa_{t} and rearranging gives the condition: \theta_{t}D_{t}\;\geq\;\Gamma_{t}+\beta\mathop{\bf E{}}_{t}[V_{t+1}(D_{t+1})]. In the simplified case where the BLP compares acting now vs. acting at t+\Delta t , and assuming capacity constraints are non-binding, the condition reduces to comparing marginal costs. Specifically, if the cost of waiting is strictly positive (due to discounting \beta<1 or decreasing surplus \delta_{t+\Delta t}<\delta_{t} ), then the optimal strategy is to act immediately. If, however, \theta_{t} decays rapidly such that \theta_{t}D_{t}>\mathop{\bf E{}}[\theta_{t+\Delta t}D_{t+\Delta t}] , but the premium \Gamma_{t} makes immediate action costly, the inequality flips. Rearranging the condition in the proposition statement: \theta_{t}D_{t}+\Gamma_{t}\leq\mathop{\bf E{}}_{t}[\theta_{t+\Delta t}D_{t+\Delta t}] implies that the future expected payout (even after discounting) is higher than the current payout net of costs, incentivizing delay. Thus, to enforce no-wait, the exchange must ensure the reverse inequality holds. ∎ Appendix H Price of Anarchy Phase Transitions We characterize the efficiency gap between static (Nash) and dynamic (Stackelberg) ADL policies via Price of Anarchy (PoA) phase transitions. We analyze two distinct welfare objectives: Fairness (minimizing haircuts to winners) and Revenue (maximizing exchange value). In both cases, we find a sharp transition from a bounded regime, where static policies are constant-factor optimal, to an unbounded regime, where dynamic control is strictly necessary. Throughout, we work with the terminal book \mathcal{P}_{n} of size n as n\to\infty . H.1 Fairness Phase Transition We first analyze fairness using the Profitability-to-Total-Solvency Ratio (PTSR), which measures the survival rate of winner equity relative to the total deficit covered. H.1.1 Welfare and Assumptions Fairness welfare. We define the fairness welfare of a policy \pi as its expected PTSR: W_{\mathrm{Fair}}(\pi)\;:=\;\mathop{\bf E{}}\left[\frac{\omega_{T}^{\pi}}{D_{T}^{\pi}}\right]. This metric captures the efficiency of haircuts: higher values imply that the policy covers deficits D_{T}^{\pi} while preserving maximal winner equity \omega_{T}^{\pi} . Extreme-value scaling implies W_{\mathrm{Fair}} scales inversely with the severity load. Price of anarchy. We compare the welfare of a static policy \pi^{\mathrm{stat}} (simultaneous move) against the optimal dynamic Stackelberg policy \pi^{\star} . The Price of Anarchy is defined as the ratio: \mathrm{PoA}_{\mathrm{Fair}}\;:=\;\frac{W_{\mathrm{Fair}}(\pi^{\star})}{W_{\mathrm{Fair}}(\pi^{\mathrm{stat}})}. We require the following regularity assumptions. LLN and EV Scaling (Prop. H.1 ) establish the baseline scales for deficits ( O(n) ) and equity ( O(b_{n}) ). Anti-concentration (Prop. H.2 ) ensures that b_{n}\ll n , creating the scarcity of winner equity that drives the phase transition. Proposition H.1 (LLN and EV scaling) . The number of winners k_{n} and losers m_{n} satisfy k_{n},m_{n}\asymp n . Winner equity and loser deficits satisfy extreme-value limits with scales b_{n}:=b^{+}_{k_{n}} and b^{-}_{m_{n}} . Proposition H.2 (Anti-concentration) . (i) Equity: The top winner is not dominant: b_{n}=o(n) . (ii) Leverage: Max leverage scales with average leverage: \max_{i}\lambda_{i,T}^{\pm}\leq C\ell^{\pm}_{n}/n . (iii) Balance: Winner and loser leverage masses are comparable: \ell^{+}_{n}\asymp\ell^{-}_{n} . H.1.2 Phase Transition The efficiency of static ADL depends on the load \kappa_{n}=\theta_{n}n/b_{n} , which measures the severity intensity relative to the tail of the winner distribution. Theorem H.3 (Fairness PoA Phase Transition) . Suppose Assumptions H.1 – H.2 hold. Let \pi^{\star} be the optimal dynamic policy and \pi^{\mathrm{stat}} be any static policy with load \kappa_{n}^{\mathrm{stat}} . 1. Bounded Regime (Low Load): If \sup_{n}\kappa_{n}^{\mathrm{stat}}<\infty , then static ADL is constant-factor optimal: \limsup_{n\to\infty}\mathrm{PoA}_{\mathrm{Fair}}\;\leq\;C<\infty. 2. Unbounded Regime (High Load): If \kappa_{n}^{\mathrm{stat}}\to\infty (e.g., due to heavy tails or fixed severity with b_{n}=o(n) ), then the Price of Anarchy diverges: \mathrm{PoA}_{\mathrm{Fair}}\;\asymp\;\kappa_{n}^{\mathrm{stat}}\;\to\;\infty. Proof. We prove the result by establishing the scaling limits of the dynamic benchmark, the static cost, and their asymptotic ratio. First, for the dynamic benchmark, the optimal Stackelberg policy \pi^{\star} minimizes haircuts ex-post to cover the realized deficit D_{T}\asymp n . By targeting the haircut to preserve the top winner’s equity \omega_{T}\asymp b_{n} , the dynamic policy achieves a Profitability-to-Total-Solvency Ratio (PTSR) that concentrates around a constant, W_{\mathrm{Fair}}(\pi^{\star})\asymp 1 (Theorem C.3 ). This is possible because the controller can observe the realization of heavy-tailed variates and adjust the severity \theta precisely to the minimal necessary level. Second, for the static policy, the severity \theta_{n} is fixed ex-ante and applies a uniform pressure \theta_{n}n on the book, which must be absorbed by individual winners with capacity scaling as b_{n} . Under heavy-tailed scaling, Proposition 5.1 shows that this mismatch leads to a welfare decay W_{\mathrm{Fair}}(\pi)\asymp b_{n}/(\theta_{n}n)=1/\kappa_{n} , as the policy blindly destroys small winners or fails to extract sufficient capital from the tail without excessive rates. Crucially, as n\to\infty , the gap between the aggregate load O(n) and individual capacity O(b_{n}) widens (since b_{n}=o(n) ), forcing \kappa_{n} to grow if \theta_{n} does not vanish rapidly enough. Finally, combining these estimates yields the Price of Anarchy \mathrm{PoA}_{\mathrm{Fair}}\asymp 1/(1/\kappa_{n}^{\mathrm{stat}})=\kappa_{n}^{\mathrm{stat}} . In the bounded regime ( \kappa_{n}^{\mathrm{stat}}=O(1) ), the ratio is constant, but in the unbounded regime ( \kappa_{n}^{\mathrm{stat}}\to\infty ), the efficiency of the static policy collapses relative to the dynamic optimum, proving the divergence. ∎ Example H.4 (Light-tailed Failure) . If winner equities are sub-Gaussian ( b_{n}\asymp\sqrt{\log n} ) but the exchange uses fixed severity \theta>0 , then \kappa_{n}^{\mathrm{stat}}\asymp n/\sqrt{\log n}\to\infty . Static ADL unnecessarily destroys winner equity compared to a dynamic policy that scales \theta\sim 1/n , leading to infinite PoA. H.2 Revenue Phase Transition We now extend the analysis to the Revenue objective, formalizing the trade-off between solvency and capital efficiency (LTV). H.2.1 Joint Welfare Solvency-revenue welfare. We define the joint welfare W_{\mathrm{Rev}}(\pi) as the risk-adjusted LTV, penalizing insolvency R_{T} with weight \lambda>1 : W_{\mathrm{Rev}}(\pi)\;:=\;\mathop{\bf E{}}\left[\mathrm{LTV}_{T}(\pi)-\lambda\cdot R_{T}(\pi)\right]. The tension arises from provisioning: Dynamic policies provision for the average deficit, while static policies must provision for the tail to ensure solvency. H.2.2 Phase Transition Proposition H.5 (Revenue PoA Phase Transition) . Suppose deficits have heavy tails with index \alpha\in(1,2) (infinite variance) and the exchange operates in the structural deficit regime ( \mu_{-}>\mu_{\Phi} ). Let W_{\mathrm{Rev}}^{\star}=\sup_{\pi}W_{\mathrm{Rev}}(\pi) . 1. Bounded Regime (Light Tails): If deficits are light-tailed, static policies that provision for the mean are efficient: \mathrm{PoA}_{\mathrm{Rev}}\;:=\;\frac{W_{\mathrm{Rev}}^{\star}}{W_{\mathrm{Rev}}(\pi^{\mathrm{stat}})}\;\leq\;C<\infty. 2. Unbounded Regime (Heavy Tails): If deficits are heavy-tailed ( \alpha<2 ), any static policy \pi^{\mathrm{stat}} satisfying solvency condition (S) diverges: \mathrm{PoA}_{\mathrm{Rev}}\;\to\;\infty. Proof. We establish the result by comparing the linear scaling of dynamic welfare with the sub-linear or negative welfare of static policies under heavy tails. First, the optimal dynamic policy \pi^{\star} operates as a regulator that clears the market based on realized deficits, diverting fees \Phi_{T} only as strictly needed to cover D_{T} . By the Law of Large Numbers, both \Phi_{T} and D_{T} scale linearly with n , yielding an expected welfare W_{\mathrm{Rev}}^{\star}\asymp n(\mu_{\Phi}-\mu_{-}) that is positive and proportional to market size. Second, a static policy is parameterized by a fixed fee diversion rate \delta\in[0,1] chosen ex-ante, meaning it diverts a constant fraction of fees \mathcal{D}_{t}=\delta\phi_{t} (where \Phi_{T}=\sum\phi_{t} follows the scaling in Assumption J.2 ) to the insurance fund. To build a fund K_{t} capable of absorbing heavy-tailed shocks with infinite variance ( \alpha<2 ), Standard ruin theory [ 15 , 51 ] implies that to ensure Solvency Condition (S) (Definition J.4 ) against the maximum jump \Delta_{T}\sim n^{1/\alpha} , the policy must essentially set \delta\to 1 to handle the timing mismatch where large shocks occur before the fund accumulates. Any policy that attempts to maintain \delta<1 will fail solvency with probability approaching 1, while a policy with \delta\approx 1 consumes the entire revenue stream, driving W_{\mathrm{Rev}}(\pi^{\mathrm{stat}})\to 0 or into negative territory due to insolvency penalties. Finally, the Price of Anarchy is the ratio of the linear dynamic payoff to the vanishing static payoff: \mathrm{PoA}_{\mathrm{Rev}}\asymp n/o(n)\to\infty . This divergence confirms that in the heavy-tailed regime, the information advantage of the dynamic controller ( i.e., knowing exactly when to divert funds) is infinitely valuable compared to a static rule. ∎ H.3 The Aggregation Paradox We conclude by observing that the divergence of PoA depends on how objectives are aggregated. Proposition H.6 (Sum vs. Min Aggregation) . Let the normalized combined objectives be W_{\Sigma}=W_{\mathrm{Fair}}+W_{\mathrm{Rev}},\qquad W_{\min}=\min(W_{\mathrm{Fair}},W_{\mathrm{Rev}}). 1. Sum-Welfare is Bounded. A static policy can always choose to satisfy one objective fully, achieving at least half the optimal total score; consequently \mathrm{PoA}_{\Sigma}\leq 2. 2. Min-Welfare is Unbounded. In the heavy-tailed regime, static policies face the ADL Trilemma and must drive at least one objective to zero, while dynamic policies maintain both, so \mathrm{PoA}_{\min}\to\infty. This implies that static ADL is sufficient if objectives are substitutes, but catastrophically inefficient if they are complements (i.e., if the exchange requires both fairness and revenue to survive). Appendix I Empirical Methodology We backtest the mechanisms of § 9 on Hyperliquid’s October 10, 2025 autodeleveraging episode. Price shocks are represented by timestamps where the chain records an ADL tranche and are indexed by discrete times t=1,\dots,T and grouped by coin c . Each shock carries a realized deficit D_{t}\geq 0 , the total negative equity of the losers in that liquidation cluster, and an account-level winner capacity vector w_{t}=(w_{t,1},\dots,w_{t,W_{t}})\in{\mbox{\bf R}}_{+}^{W_{t}} measured in USD of available positive PNL. Summing D_{t} across shocks therefore reports the aggregate shortfall that must be socialized during the event. Controllers either select a scalar severity \theta_{t}\geq 0 or a haircut vector h_{t}\in[0,1]^{\mathcal{W}_{t}} , generating a per-round budget B_{t}=\theta_{t}D_{t} or B_{t}=w_{t}^{\top}h_{t} , respectively. Budgets are always truncated to the realized winner capacity \sum_{i}w_{t,i} . The release contains T=1097 shocks across 160 coins. There are 201 positive-deficit shocks and 896 shocks with zero deficit (for which policies abstain). Across the positive-deficit shocks this reconstruction captures 23.2 M USD of loser shortfall, while the corresponding feasible haircut mass B_{t}^{\star}=\min\{D_{t},\sum_{i}w_{t,i}\} only totals 6.6 M USD, leaving at least 16.6 M USD structurally uncovered irrespective of policy. I.1 Data construction Event sample. The data (provided by Hydromancer and SonarX) captured Hyperliquid’s core exchange logs covering 21:15–21:30 UTC and retain every coin with at least one liquidation cluster. Clustering. Within each coin, fills are sorted by timestamp and grouped into shocks via a fixed inter-arrival rule: a new cluster begins whenever the gap since the previous fill exceeds \Delta=5 s. If t_{k} denotes the time of fill k , the cluster index obeys \kappa_{1}=0 and \kappa_{k}=\kappa_{k-1}+\mathbf{1}\{t_{k}-t_{k-1}>\Delta\} . All statistics below are computed at the cluster level. Account aggregates and capacities. We aggregate filled trades (‘fills’) by account within a cluster. Positive realized PNL marks winners and contributes to capacity, whereas negative PNL marks losers and contributes to the deficit D_{t}=\sum_{i\in\mathcal{L}_{t}}(-\mathrm{PNL}_{t,i}) . Capacities are inferred in the order notional \rightarrow |\texttt{start\_position}\times\texttt{price}| \rightarrow |\texttt{closed\_pnl}| , providing a conservative haircut limit when full notional quotes are unavailable. Queue priority scores replicate the production ranking by summing realized PNL per account within the cluster. Production queue replay. We reconstruct the realized queue budgets B_{t}^{\mathrm{Q}} and haircuts by replaying the published priority order and shaving capacity greedily until the recorded budget is exhausted. This reproduces the overshoot and participation statistics observed on chain and serves as our baseline. I.2 Losses and objectives Scalar severity surrogate. Controllers that only choose \theta_{t} minimize the convex surrogate f_{t}(\theta)=-\lambda\,\theta D_{t}+\mu\,(M_{t}-\theta D_{t})_{+}+\nu\,(\theta D_{t}-D_{t})_{+}^{2}, where M_{t}=\max_{i}w_{t,i} is the largest winner, and \lambda,\mu,\nu\geq 0 trade off solvency, shortfall, and overshoot. The subgradient satisfies \partial f_{t}(\theta)=-\lambda D_{t}-\mu D_{t}\,\mathbb{1}\{M_{t}>\theta D_{t}\}+2\nu(\theta D_{t}-D_{t})_{+}\,D_{t}. We tune (\lambda,\mu,\nu) and the initialization/step-size grid (\theta_{\text{init}},\eta_{0}) by coarse search and fix the best setting for all severity controllers. Lagged severity publication. To mirror venue operations, severities are published before a shock begins. We therefore treat the iterate produced after shock t-1 as the action applied during shock t : \widehat{\theta}_{t} is broadcast, capped by the PoA limit once the actual deficit D_{t} is known, and only then do we update the controller via f_{t} . Budgets use a coin-specific forecast \widehat{D}_{t}=D_{t-1} (falling back to D_{t} on the first shock) so that B_{t}=\widehat{\theta}_{t}\,\widehat{D}_{t} is set prior to observing D_{t} . This forecast also drives the pre-shock churn multiplier that freezes winner participation, ensuring that queue eligibility reflects the published haircut rather than the ex-post realized one. Overshoot therefore reflects forecast error: \widehat{D}_{t}>D_{t} intentionally produces excess haircutting, while \widehat{D}_{t}0 . The weights (\lambda_{\mathrm{vec}},\beta,\mu_{\mathrm{spr}},\phi,\nu_{\mathrm{vec}},\gamma_{\mathrm{vec}},\rho_{\mathrm{vec}}) are fixed to the calibrated values shipped with the release. We enforce the budget equality constraint w_{t}^{\top}h=B_{t}^{\star} with B_{t}^{\star}=\min\{D_{t},\sum_{i}w_{t,i}\} via the projection described below. Revenue loss proxy. To translate haircut allocations into an expected loss of future fees we use a funding-rate-based proxy. For each winner i in shock t we observe the realized haircut ratio f_{t,i}=h_{t,i}/w_{t,i} and treat it as a churn shock with probability p_{t,i}=1-\exp(-\beta f_{t,i}) , where \beta=5 controls sensitivity. The remaining positive PNL w_{t,i} serves as a conservative proxy for the trader’s deployable notional. We combine this with an estimate of per-dollar daily revenue, r^{\text{daily}}_{t}=24\,|f^{\text{fund}}_{t}|+\tau_{\text{turn}}\cdot\text{fee}_{\text{taker}}, where |f^{\text{fund}}_{t}| is the absolute funding rate observed for the coin (defaulting to 1.5\times 10^{-5} when data are sparse), \tau_{\text{turn}}=1 assumes one notional turnover per day, and \text{fee}_{\text{taker}}=4 bps. Multiplying r^{\text{daily}}_{t} by a two-year horizon H=730 days yields the per-dollar lifetime value estimate. The per-shock revenue loss is then \text{RevLoss}_{t}=H\,r^{\text{daily}}_{t}\sum_{i}w_{t,i}\,p_{t,i}, which we aggregate across shocks for each controller. The exponential hazard ensures that zero haircuts map to zero churn, while large cuts asymptotically drive p_{t,i}\rightarrow 1 , mirroring the threshold-like exits we observe in the account-level replay data. We set \beta=5 so that a 10% haircut implies \approx 39\% churn and a 20% haircut implies \approx 63\% churn, matching the attrition rate measured by comparing pre/post-shock winner mass in the Hyperliquid October 10 dataset [ 41 ] . Funding rates f^{\text{fund}}_{t} come directly from the “misc events” stream bundled with the same dataset: we aggregate the absolute funding paid per coin over the preceding hour and divide by the coin’s outstanding notional to obtain an hourly rate. When the logs lack funding entries for a coin during the 12-minute window we substitute the cross-sectional median absolute rate of 1.5\times 10^{-5} (the BTC/ETH average). This proxy ignores second-order follower dynamics (e.g., strategic re-entry) but provides a consistent way to compare policies on a common revenue scale using only observable quantities. I.3 Policies Queue (production). The production policy orders winners by the realized priority score q_{t,i} and applies the greedy queue allocator with the recorded budget B_{t}^{\mathrm{Q}} . Haircuts therefore match the on-chain execution and may overshoot D_{t} . Smart queue. We retain the same ordering but cap the budget at the feasible mass: B_{t}^{\mathrm{SQ}}=\min\{D_{t},\sum_{i}w_{t,i}\} . The greedy queue allocator is applied under this cap, eliminating overshoot while keeping the queue’s concentration. Exponential backoff. We impose the per-round PoA cap \Theta_{t}=\frac{R}{1+R}\,\frac{M_{t}}{D_{t}} (uncapped if R=\infty ) and update \theta_{t}=\min\{\theta^{\mathrm{cand}}_{t},\Theta_{t}\},\qquad\theta^{\mathrm{cand}}_{t}=\begin{cases}\theta_{0},&t=1,\\ \max\{\alpha\theta_{t-1},\theta_{0}\},&t\geq 2,\end{cases} with \alpha\in(0,1) . The resulting budget B_{t}=\min\{\theta_{t}D_{t},\sum_{i}w_{t,i}\} is distributed pro-rata across capacities. Mirror descent. We initialize at \theta_{1}=\theta_{\mathrm{init}} , compute g_{t}\in\partial f_{t}(\theta_{t}) , take \tilde{\theta}_{t+1}=\theta_{t}-\eta_{t}g_{t} with \eta_{t}=\eta_{0}/\sqrt{t} , perform a short backtracking line-search, and project onto [0,\Theta_{t}] . Budgets and allocations mirror the backoff policy and differ only through the learning dynamics. Dynamic2 warm start. Dynamic2 matches mirror descent but sets \theta_{1} to the levered pro-rata fixed point \theta_{\mathrm{LPR}} computed from the first shock before continuing with the same updates. Vector mirror descent. We initialize h_{t}\equiv 0 and iterate for s=1,\dots,S \tilde{h}\leftarrow h-\eta_{s}\nabla\mathcal{L}_{t}(h),\qquad h\leftarrow\Pi_{\mathcal{C}_{t}}(\tilde{h}), where \mathcal{C}_{t}=\{h\in[0,1]^{W_{t}}:w_{t}^{\top}h=B_{t}^{\star}\} . The projection solves \min_{h\in[0,1]^{W_{t}}}\tfrac{1}{2}\|h-\tilde{h}\|_{2}^{2}\ \text{s.t.}\ w_{t}^{\top}h=B_{t}^{\star}, and admits the closed form h_{i}(\tau)=\big[\tilde{h}_{i}-\tau w_{t,i}\big]_{0}^{1} with \tau found by bisection so that \sum_{i}w_{t,i}h_{i}(\tau)=B_{t}^{\star} . I.4 Backtest summary Coverage. Aggregate deficits over the event sum to $23.2M USD. Because instantaneous winner capacity is thin, the feasible budget mass B_{t}^{\star} totals only $6.6M USD, leaving a structural residual of $16.6M USD that no policy can eliminate. This hard floor explains why every controller asymptotes near $18M of unresolved deficit in Figure 4 . Production queue. The replayed Hyperliquid queue expends $658.5M USD of budgets, overshoots deficits by $653.6M USD, and still leaves $18.4M USD of residual loss. Average winner participation is 38.3\% , yet the queue routinely concentrates haircuts: the mean budget-to-deficit ratio exceeds 1.1\times 10^{5} and the largest single haircut reaches $47.2M USD. This misallocation also destroys $584.4M USD of positive PNL through churn. Queue variants. Capping the queue’s budget at feasibility removes the $653.6M USD overshoot and improves average participation to 93.7\% , yet it still leaves $16.7M USD of residual losses and $6.6M USD of revenue destruction due to concentrated cuts. Adaptive severity controllers. The exponential backoff, mirror-descent, and Dynamic2 controllers each deploy between $1.5M and $2.2M USD of budgets. Mirror descent avoids overshoot entirely, while Dynamic2 and backoff keep it within $0.8 M-- 1.4 MUSD.Allthreesettleinthe\$22MUSDresidualbandandlimitrevenuelossesto\$2.9 M– 5.2 M USD. Vector mirror descent. Optimizing the full haircut vector supplies $9.7M USD of budgets, drives overshoot to $5.2M USD (from forecast error), and achieves an $18.8M USD residual with $12.0M USD of revenue loss. Winner participation averages 87.7\% , reflecting the model’s explicit spreading and budget-equality constraint. Appendix J Formal Proof of the ADL Trilemma In this appendix, we provide a complete formal statement and proof of the ADL Trilemma (Proposition 2.1 ). The proof assembles results from Appendices C – H , demonstrating that the three-way tension between solvency, fairness, and revenue is a fundamental structural constraint under heavy-tailed shortfalls. Formal Setup and Definitions. We work in the large-market limit n\to\infty under the standard assumptions established in § 3 and Appendix C . Book and Policy Sequences. Consider a sequence of perpetuals exchanges (\mathcal{P}_{n})_{n\geq 1} with n positions at terminal time T . Let \mathcal{W}_{T} and \mathcal{L}_{T} denote the winner and loser index sets with cardinalities k_{n}=|\mathcal{W}_{T}| and m_{n}=|\mathcal{L}_{T}| . We assume throughout that k_{n},m_{n}=\Theta(n) . We further assume the initial insurance fund capital K_{0} satisfies K_{0}=o(n) , ensuring that solvency depends on flow mechanics rather than initial endowment. A static ADL policy \pi_{n} is characterized by: • A severity parameter \theta_{n}\in[0,1] determining the fraction of deficit socialized; • An allocation rule h_{n}:{\mbox{\bf R}}^{k_{n}}_{+}\to[0,1]^{k_{n}} distributing haircuts across winners; • Insurance parameters determining the diversion of fees into the insurance fund. Distributional Assumptions. We impose the following standard assumptions from Appendix C : Assumption J.1 (Regular Variation) . The right tails of the winner equity distribution \bar{F}_{+}(x) and loser shortfall distribution \bar{F}_{-}(x) are regularly varying with indices \alpha_{+}>0 and \alpha_{-}>0 , respectively: \bar{F}_{\pm}(x)=L_{\pm}(x)x^{-\alpha_{\pm}}, where L_{\pm} are slowly varying functions. Assumption J.2 (LLN and EVT Scaling) . The following scaling limits hold: 1. Aggregates: W_{T}/n\xrightarrow{p}\mu_{+} , D_{T}/n\xrightarrow{p}\mu_{-} , and total fees \Phi_{T}/n\xrightarrow{p}\mu_{\Phi} for constants \mu_{\pm},\mu_{\Phi}\in(0,\infty) . 2. Extremes: The maximum winner equity \omega_{T} and maximum loser shortfall \Delta_{T} satisfy \frac{\omega_{T}}{b_{k_{n}}^{+}}\xrightarrow{p}c_{+},\qquad\frac{\Delta_{T}}{b_{m_{n}}^{-}}\xrightarrow{p}c_{-}, where b_{k}^{\pm}=F_{\pm}^{-1}(1-1/k) are the extreme-value scales. We abbreviate b_{n}:=b_{k_{n}}^{+} . Assumption J.3 (Structural Deficit Regime) . We assume the exchange operates in a regime where insurance alone is insufficient to cover tail risks. Specifically, the expected deficit rate exceeds the maximum sustainable fee diversion rate: \mu_{-}>\mu_{\Phi} . This ensures that the Solvency constraint cannot be trivially satisfied by insurance without impacting LTV or requiring haircuts. Formal Desiderata. We now define the three desiderata precisely: Definition J.4 (Solvency) . A policy family (\pi_{n}) satisfies the solvency condition (S) if: (S1) Bounded cumulative residual: \sum_{t=1}^{T}R_{t}(\pi_{n})=O_{p}(1) as n\to\infty ; (S2) Controlled breach probability: \sup_{n,t}\mathop{\bf Prob}\!\left[R_{t}(\pi_{n})>0\right]<1 . Definition J.5 (Fairness / Bounded Moral Hazard) . A policy family (\pi_{n}) satisfies the fairness condition (F) if: (F1) PTSR stability: There exist constants 00]\to 1 ). J.1 Proof of the Trilemma We first establish a fundamental identity linking the three quantities. Lemma J.8 (Solvency-Revenue Identity) . For any policy \pi , the cumulative deficit D_{T} must be covered by the haircut budget B_{T} , insurance fund diversions \mathcal{D}_{T} , initial capital K_{0} , and residual insolvency R_{T} : D_{T}\;\leq\;B_{T}+\mathcal{D}_{T}+K_{0}+R_{T}. Substituting the LTV definition \mathcal{D}_{T}=\Phi_{T}-\mathrm{LTV}_{T} and using K_{0}=o(n) , we obtain the asymptotic inequality: \mathrm{LTV}_{T}(\pi)\;\leq\;\Phi_{T}(\pi)+B_{T}(\pi)+R_{T}(\pi)-D_{T}(\pi)+o(n). Proof. By definition of residual insolvency, any uncovered shortfall after applying haircuts and diverted fees must appear as R_{T} : R_{T}\;\geq\;D_{T}-B_{T}-\mathcal{D}_{T}-K_{0}, which rearranges to D_{T}\leq B_{T}+\mathcal{D}_{T}+K_{0}+R_{T} , establishing the first inequality. Substituting \mathcal{D}_{T}=\Phi_{T}-\mathrm{LTV}_{T} and using K_{0}=o(n) yields the asymptotic bound. ∎ Proof of Theorem J.7 . (S) and (F) \Rightarrow \neg (R). By (F) and Theorem C.3 , \theta_{n}=O(b_{n}/n) , so B_{T}=o(n) ; (S) gives R_{T}=o_{p}(n) . Lemma J.8 implies \frac{\mathrm{LTV}_{T}}{n}\;\leq\;\mu_{\Phi}+o(1)-\mu_{-}\;<\;0 using Assumption J.3 , contradicting (R) . (S) and (R) \Rightarrow \neg (F). Revenue bounds diversions, so solvency requires B_{T}\gtrsim n , hence \theta_{n}=\Theta(1) . Then \kappa_{n}=\theta_{n}n/b_{n}\to\infty (since b_{n}=o(n) ); Theorem C.3 gives \mathsf{PTSR}_{T}\to 0 , violating (F) . (F) and (R) \Rightarrow \neg (S). Fairness again yields B_{T}=o(n) ; revenue caps \mathcal{D}_{T} . Lemma J.8 gives \frac{R_{T}}{n}\;\geq\;\mu_{-}-(1-c_{R})\mu_{\Phi}-o(1)\;>\;0, so \mathop{\bf Prob}[R_{T}>0]\to 1 , violating (S) . ∎ Sharpness and Attainability. The trilemma bound is tight in the sense that each pair of desiderata can be achieved by an appropriately designed policy: Proposition J.9 (Attainability of Two Desiderata) . Under Assumptions J.1 – J.3 : 1. (S) \wedge (F) is achieved by a high-diversion policy: set diversions \mathcal{D}_{T}\approx\Phi_{T} (taking all revenue) plus potentially external capital if \mu_{-}>\mu_{\Phi} is very large. This covers deficits ( D_{T}\approx\mathcal{D}_{T} ) with minimal haircuts ( B_{T}\approx 0 ), satisfying (S) and (F) , but reducing \mathrm{LTV}_{T}\to 0 , violating (R) . 2. (S) \wedge (R) is achieved by a Queue (concentrated haircut) policy: use high severity \theta_{n}=\Theta(1) to generate B_{T}\approx D_{T} . This ensures solvency and preserves fee revenue (since \mathcal{D}_{T}\approx 0 ), but destroys the top winners ( \mathsf{PTSR}_{T}\to 0 ), violating (F) . 3. (F) \wedge (R) is achieved by a Pro-Rata with low severity policy: use EV-scaled severity \theta_{n}=O(b_{n}/n) and low diversion. This keeps \mathrm{LTV}_{T}\approx\Phi_{T} and \mathsf{PTSR}_{T}=\Theta(1) , but leaves an unhedged deficit R_{T}\approx D_{T}>0 , violating (S) . J.2 Connection to Classical Impossibility Results The ADL trilemma echoes classical impossibility results in mechanism design and finance: • Arrow’s Impossibility Theorem: No voting rule satisfies Pareto efficiency, independence of irrelevant alternatives, and non-dictatorship simultaneously [ 12 ] . • Mundell-Fleming Trilemma: In international finance, a country cannot simultaneously maintain a fixed exchange rate, free capital movement, and independent monetary policy [ 85 , 54 ] . • CAP Theorem: In distributed systems, a database cannot provide consistency, availability, and partition tolerance simultaneously [ 29 , 58 ] . • Credibility Trilemma: Single-item auctions cannot be simultaneously optimal, strategy-proof, and credible, forcing designers to sacrifice at least one desideratum [ 6 ] . These connections suggest the trilemma is a fundamental constraint arising from the heavy-tailed nature of crypto markets, not an artifact of specific mechanism choices. Circumventing Impossibility via Relaxations. While the impossibility results are strict in worst-case settings, recent literature demonstrates that they can be circumvented under probabilistic assumptions or cryptographic commitments: 1. Quantitative Arrow’s Theorem: Recent results in quantitative social choice show that while Arrow’s impossibility holds in the worst case, the probability of paradoxical outcomes (like intransitivity) can be small for many natural distributions of preferences [ 84 ] . Analogously, our ADL trilemma bounds hold with high probability under heavy-tailed distributions, but dynamic policies (like Stackelberg controllers) can minimize the frequency of trilemma-binding events, achieving a “quantitative” relaxation. 2. Probabilistic CAP Theorem: Blockchains circumvent the strict CAP theorem by weakening consistency to probabilistic finality (e.g., Nakamoto consensus) or availability to liveness under synchronous periods [ 89 , 101 , 102 ] . This parallels the (S) vs. (R) trade-off: exchanges effectively accept probabilistic solvency (via insurance funds) to maintain liveness (continuous trading/revenue). 3. Cryptographic Commitments for Credibility: The credibility trilemma of Akbarpour and Li motivates cryptographic mechanisms that make optimal auctions simultaneously credible and strategy-proof by enforcing operator commitments [ 6 , 53 , 52 , 33 ] . For ADL, this suggests that verifiable execution ( e.g. via zero-knowledge proofs or on-chain logic) could allow an exchange to commit to a dynamic policy that balances the trilemma better than any opaque static policy could, by removing the operator’s incentive to deviate during crises.