Definitions
Account Bankruptcy Amount
For a given trading account, the USDC Settlement Balance represents the USDC balance that this account would have if all open positions were closed at the current Mark Price: The Bankruptcy Amount of an account is equal to: The Bankruptcy Amount is positive only if the account would be bankrupt at current Mark Prices. Otherwise, it is zero.Exchange Bankruptcy Amount
The Exchange Bankruptcy Amount is equal to:Socialized Loss Factor
If the Exchange Bankruptcy Amount is positive, the Socialized Loss Factor is greater than0, and all withdrawals are penalized by this factor.
Only withdrawals are subject to the Socialized Loss penalty. Users who do not withdraw are not affected.
Example
Insurance Fund initially has a 1,000 USDC balance and no open positions. There are three traders on the exchange: Alice, Bob, and Charlie. Each has a 1,000 USDC balance. The oracle price of USDC is 1 USD. Therefore, the Total Exchange USDC Balance is: Alice buys 50 XYZ-USD-PERP against Bob at 100 USD. The Mark Price of XYZ-USD-PERP suddenly crashes to 40. Alice now has Unrealized PnL of: and has a negative account value of: Therefore, Alice’s Bankruptcy Amount is: and the Exchange Bankruptcy Amount is: The Socialized Loss Factor is then: Charlie withdraws 500 USDC:- The Insurance Fund receives:
- Charlie’s withdrawal address receives:
0 and the Socialized Loss Factor to 0%.
Withdrawals are no longer subject to any loss.