LogoLogo
Join DiscordFollow on XBridge FundsLong $BERA
  • Doc Bros v1
    • Overview
    • Key Features
      • Speed & Liquidity is Key
      • Bropetual Markets
      • A Hub for Berachain DeFi
    • Proof-of-Liquidity
      • Reward Vault
    • Power of Points
    • Partners & Integrations
    • Campaigns
      • bro.trade Em Up
  • bullish bros
    • SuperBros NFT
  • Technicals
    • What is Proof-of-Liquidity?
    • One-Click Trading
    • Funding Rates
  • Liquidations & Insurance Fund
  • Vertex Edge Sequencer
  • Fees
  • PnL Settlements
  • Withdrawals
  • Pricing (Oracles)
  • links & resources
    • bro.trade Links
      • Website
      • Trade Bropetuals
      • Discord
      • X (Twitter)
      • Medium
      • Swap on OogaBooga
    • Berachain Links
      • Berachain.com
      • Official Bridge
      • BeraHub
      • Berascan
      • Bera Discord
      • Berachain X (Twitter)
      • Berachain Docs
    • FAQ
  • developer bros
    • API
      • Gateway
        • Executes
          • Place Order
          • Cancel Order
          • Cancel and Place
          • Cancel Product Order
          • Withdraw Colleteral
          • Transfer Quote
          • Liquidate Subaccount
          • Mint LP
          • Burn LP
          • Link Signer
        • Queries
          • All Products
          • Contracts
          • Fee Rates
          • Health Groups
          • Insurance
          • Linked Signer
          • Market Liquidity
          • Market Prices
          • Max Lp Mintable
          • Max Order Size
          • Max Withdrawable
          • Min Deposit Rates
          • Nonces
          • Order
          • Orders
          • Status
          • Subaccount Info
          • Symbols
        • Signing
          • Examples
          • Q A
      • Subscriptions
        • Authentication
        • Streams
        • Events
        • Rate Limits
      • Archive (indexer)
        • Candlesticks
        • Events
        • Funding Rate
        • Interest Funding Payments
        • Linked Signer Rate Limit
        • Liquidation Feed
        • Maker Statistics
        • Market Snapshots
        • Matches
        • Merkle Proofs
        • Oracle Price
        • Orders
        • Perp Prices
        • Product Snapshots
        • Rewards
        • Signatures
        • Subaccounts
        • Summary
        • HONEY Price
      • Trigger
        • Executes
          • Place Order
          • Cancel Orders
          • Cancel Product Orders
        • Queries
          • List Trigger Orders
      • V2
        • Apr
        • Assets
        • Contracts
        • Orderbook
        • Pairs
        • Tickers
        • Trades
      • Rate limits
      • Errors
      • Symbols
      • Depositing
      • Withdrawing (on-chain)
      • Integrate via Smart Contracts
      • Definitions / Formulas
    • On-Chain Contracts
Powered by GitBook
On this page
  • Liquidation Price
  • Insurance Fund

Liquidations & Insurance Fund

PreviousFunding RatesNextVertex Edge Sequencer

Last updated 2 months ago

Liquidations on an exchange refer to the automated process of closing leveraged trading positions when a trader's account balance, or "margin," gets too low to cover potential losses.

Just as a car running low on fuel would need to stop to avoid stalling, liquidations prevent traders from going into debt by ensuring their losses don't exceed their initial investment.

Liquidation mechanisms vary for each exchange, which sets unique and publicly available maintenance weights that are used to determine the risk profile of a given market. Some exchanges might have tighter liquidation thresholds, meaning your position could get liquidated more quickly if the market moves against you. Others might offer more leniency, giving you a bit more room before liquidation kicks in.

Liquidations safeguard an exchange's solvency by settling accounts between traders, maintaining fairness, and preventing potential disruptions that could arise from underfunded positions amid volatility.

Efficiently structured liquidation processes on bro.trade are supplemented by risk management tooling for users, including portfolio and position health indicators on the front-end along with trigger orders.


Liquidations on bro.trade happen at the mark oracle price, derived from a third-party oracle (Stork), which you can learn more about in the “” section.

Liquidations protect the protocol and users from the risk of systemic bankruptcy. When an account's maintenance health falls below 0, it enters liquidation. The assets and perpetual positions of the subaccount will be closed in the following order:

  1. Orders are canceled.

  2. Assets are liquidated (Perps).

  3. Liabilities are liquidated (Borrows / Short Spreads).

If, at any point during the liquidation process, the Initial Health of the account exceeds 0, liquidation will cease.

Liquidation Price

When liquidators attempt to liquidate a subaccount, they specify the product and the amount they want to liquidate. The liquidation price for assets is set halfway between the oracle price and the price determined by the maintenance weight.

The net price at which the product is liquidated is calculated as follows:

Long=oracle_price×maintenance_asset_weight+45\text{Long} = \text{oracle\_price} \times \frac{\text{maintenance\_asset\_weight} + 4}{5}Long=oracle_price×5maintenance_asset_weight+4​

The gross profit of liquidators equals:

However, the bro.trade protocol receives 50% of the profit that liquidators generate, and these fees are deposited into the insurance fund to protect protocol health moving forward. Thus, the net profit of liquidators equals:

Insurance Fund

To maintain the creditworthiness of the platform, a segregated pool of HONEY will be available to fund shortfalls in the event that an account goes into bankruptcy – the Insurance Fund. Initially, this will be seeded with funding from the core team but will then be topped up with a percentage of revenue from liquidations.

If accounts are insolvent, the insurance fund steps in to pay off losses to avoid socialization.

Socialized Losses

In the first instance, bankrupt accounts will be paid from the insurance fund.

However, if the insurance fund is depleted, the system will attempt to socialize against other perpetual accounts in that market. If the account has already been settled, its losses will be socialized against all HONEY holders.

In Summary:

  • Step 1: Insurance Fund

  • Step 2: Perp Socialization

  • Step 3: USDC Depositor Socialization

Short=oracle_price×maintenance_liability_weight+45\text{Short} = \text{oracle\_price} \times \frac{\text{maintenance\_liability\_weight} + 4}{5} Short=oracle_price×5maintenance_liability_weight+4​
Long=oracle_price×1−maintenance_asset_weight5\text{Long} = \text{oracle\_price} \times \frac{1 - \text{maintenance\_asset\_weight}}{5}Long=oracle_price×51−maintenance_asset_weight​
Short=oracle_price×maintenance_liability_weight−15\text{Short} = \text{oracle\_price} \times \frac{\text{maintenance\_liability\_weight} - 1}{5}Short=oracle_price×5maintenance_liability_weight−1​
Long=oracle_price×(1−maintenance_asset_weight5)×0.5\text{Long} = \text{oracle\_price} \times \left( \frac{1 - \text{maintenance\_asset\_weight}}{5} \right) \times 0.5Long=oracle_price×(51−maintenance_asset_weight​)×0.5
Short=oracle_price×(maintenance_liability_weight−15)×0.5\text{Short} = \text{oracle\_price} \times \left( \frac{\text{maintenance\_liability\_weight} - 1}{5} \right) \times 0.5Short=oracle_price×(5maintenance_liability_weight−1​)×0.5
Pricing (Oracles)