For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
Join CommunityStart Trading
HomeOverviewDIME UtilityTradingRisk & LiquidationsVTFsParadex ChainEcosystemREST APIWebSocket APIAgentic AI HubRelease Notes
HomeOverviewDIME UtilityTradingRisk & LiquidationsVTFsParadex ChainEcosystemREST APIWebSocket APIAgentic AI HubRelease Notes
  • Getting Started
    • Overview
    • Margin System
    • Margin Term Reference
    • Paradex Risk Checks
    • Mark Price Calculation
    • Cross Margin Requirement
    • Portfolio Margin
    • Price Bands
    • Position Limit
    • Funding Mechanism
    • Deleveraging
    • Liquidations
    • Socialized Losses
    • Trade flow and busts
Join CommunityStart Trading
On this page
  • Socialised Loss
  • Definitions
  • Account Bankruptcy Amount
  • Exchange Bankruptcy Amount
  • Socialized Loss Factor
  • Example
  • Last Resort Mechanism

Socialized Losses and Last Resort Mechanism

Was this page helpful?
Edit this page
Previous

Trade flow and busts

How trades move from order submission to on-chain settlement, and when they can be reversed.

Next
Built with

Socialised Loss

Socialized Losses happen when Paradex Insurance Fund is bankrupt due to large amounts of unprofitable liquidations. Paradex is built to minimize the probability of such an event but it can still happen. In this case the exchange would have insufficient USDC funds to meet withdrawal requests for all client funds.

During periods of insufficient capitalization Paradex applies Socialized Loss charge to all withdrawals. Socialized Loss Factor represents how much percentage each withdrawal will be charged at current point in time in order to offset the loss. Only users who withdraw during those “shortfall” periods are affected by Socialized Losses.

Once the Insurance Fund is re-capitalized (though profitable liquidations or fund transfer) Paradex stops applying Socialized Loss charge to withdrawals.

Definitions

Account Bankruptcy Amount

For a given trading account, USDC Settlement Balance represents the USDC balance that this account would have if all its open positions were closed at current Mark Price :

Account USDC Settlement Balance=Account USDC Balance+Account Unrealized PnLUSDC Oracle Price\begin{align*} \small\text{Account USDC Settlement Balance} = \\ \text{Account USDC Balance} + \frac{\text{Account Unrealized PnL}}{\text{USDC Oracle Price}} \end{align*}Account USDC Settlement Balance=Account USDC Balance+USDC Oracle PriceAccount Unrealized PnL​​

The Bankruptcy Amount of an account is equal to :

Bankruptcy Amount=max⁡(0, −Account USDC Settlement Balance)\text{Bankruptcy Amount}=\max(0,~-\text{Account USDC Settlement Balance})Bankruptcy Amount=max(0, −Account USDC Settlement Balance)

i.e. Bankruptcy Amount is positive only if account will be bankrupt at current Mark prices. Otherwise it is zero.

Exchange Bankruptcy Amount

The exchange Bankruptcy Amount is equal to :

Exchange Bankruptcy Amount=max⁡(0,Total Users Bankruptcy Amount−Insurance Fund USDC Balance)\begin{align*} &\text{Exchange Bankruptcy Amount}= \\ &\max(0,\small\text{Total Users Bankruptcy Amount}-\small\text{Insurance Fund USDC Balance}) \end{align*}​Exchange Bankruptcy Amount=max(0,Total Users Bankruptcy Amount−Insurance Fund USDC Balance)​

Socialized Loss Factor

Socialized Loss Factor=Exchange Bankruptcy AmountTotal Exchange USDC Balance+Exchange Bankruptcy Amount\small\text{Socialized Loss Factor} = \frac{\text{Exchange Bankruptcy Amount}} {\text{Total Exchange USDC Balance} + \text{Exchange Bankruptcy Amount}}Socialized Loss Factor=Total Exchange USDC Balance+Exchange Bankruptcy AmountExchange Bankruptcy Amount​

If Exchange Bankruptcy Amount is positive (i.e. Insurance fund has negative value or shortfall from bankrupt user accounts is higher than Insurance Fund value), Socialized Loss Factor is greater than 0 and all withdrawals will be penalized by this factor.

Only withdrawals are subject to socialized loss penalty, users who do not withdraw are not affected

Example

Insurance Fund has initially 1’000 UDSC balance and no open positions.

There are three traders on the exchange : Alice, Bob and Charlie. Each of them has a 1’000 USDC balance. The oracle price of USDC is 1 USD.

Therefore. the Total Exchange USDC Balance is 4′0004'0004′000

Alice buys 50 XYZ-USD-PERP against Bob at a 100 USD

The Mark Price of XYZ-USD-PERP suddenly crashes down to 40

Alice now has an Unrealized PnL of : 50∗(40−100)=−3′000 USD50 * (40-100)=-3'000 ~\text{USD}50∗(40−100)=−3′000 USD

and has a negative Account Value (bankrupt account) of 1′000−3′000=−2′000 USD1'000-3'000=-2'000~\text{USD}1′000−3′000=−2′000 USD

Therefore, Alice Bankruptcy Amount is 2’000 USDC and the Exchange Bankruptcy Amount is 2′000−1′000=1′000 USDC2'000-1'000=1'000~\text{USDC}2′000−1′000=1′000 USDC

The Socialized Loss Factor is then equal to 1′0004′000=25%\frac{1'000}{4'000}=25\%4′0001′000​=25%

Charlie withdraws 500 USDC : The Insurance Fund receives 25%∗500=125 USDC25\%*500=125~\text{USDC}25%∗500=125 USDC and Charlie’s withdrawal address receives 75%∗500=375 USDC75\%*500=375~\text{USDC}75%∗500=375 USDC

The Insurance Fund takes over Alice account. Note that Bankruptcy Amount is unchanged (1’000 USDC)

The Mark Price of XYZ-USD-PERP quickly moves up to 70

Now the Insurance Fund position (taken over from Alice) only has 50∗(70−100)=−1′500 USD50*(70-100)=-1'500~\text{USD}50∗(70−100)=−1′500 USD Unrealized PnL. This means that the Insurance Fund is not bankrupt anymore and has 2′000−1′500=+500 USD2'000-1'500=+500~\text{USD}2′000−1′500=+500 USD

This brings the Exchange Bankruptcy Amount to 0 and the Socialized Loss Factor to 0%.

Therefore, withdrawals are now no longer subject to any loss.

Last Resort Mechanism

A time-based Last-Resort (LR) mechanism operates independently of Socialized Loss (SL). Its job is to manage the insurance fund’s exposure in extreme illiquidity scenarios when the fund is unable to unwind or hedge a large position for an extended period. In such cases, it will settle counterparties positions under time-based rules. The difference vs ADL is that users have clear visibility and ability to anticipate any intervention before it takes place. Additionally, the introduction of time allow both solvency and liquidity to recover, which in turn reduces the burden on both mechanisms.