Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Cross-Margin Pool

A cross-margin pool is a margin system where all a user's positions and collateral are combined into a single account, sharing risk and buying power.
Chainscore © 2026
definition
DEFINITION

What is a Cross-Margin Pool?

A cross-margin pool is a shared liquidity mechanism in decentralized finance (DeFi) where collateral from multiple users is aggregated into a single pool to backstop leveraged positions, allowing for more capital-efficient borrowing and risk mutualization.

In a cross-margin pool, also known as a shared collateral pool, user deposits are not siloed to individual accounts but are instead commingled into a collective reserve. This pooled collateral acts as a unified backstop for all open leveraged positions or loans taken from the protocol. This architecture is a core component of perpetual futures DEXs like dYdX (v3) and GMX, as well as lending protocols, enabling higher capital efficiency than isolated margin models. The primary advantage is that a user's unused collateral can help secure other users' positions, reducing the overall capital required for the same level of trading activity.

The mechanism relies on a global risk engine that continuously assesses the health of the entire pool. When a leveraged position is opened, it draws against the shared pool, not a user's specific deposit. Liquidation occurs when the pool's total value, relative to its total liabilities (open positions), falls below a predefined threshold, triggering a process to close underwater positions. This contrasts with isolated margin, where liquidation risk is contained to a single user's collateral. Key risks include contagion, where one large, failing position can impact all pool participants by depleting the shared collateral.

From a technical perspective, cross-margin pools utilize sophisticated smart contracts to manage accounting, price oracles for asset valuation, and automated liquidation bots. Protocols often implement a tiered risk system or vaults for different asset classes to segment risk. For example, a pool might contain only stablecoins for lower-risk lending, while a separate pool holds volatile assets like ETH for perpetual swaps. This design prioritizes systemic efficiency and liquidity depth over user-specific risk isolation, making it suitable for high-volume, professional trading environments where maximizing leverage from available capital is paramount.

how-it-works
DEFINITION

How a Cross-Margin Pool Works

A cross-margin pool is a shared liquidity mechanism in decentralized finance (DeFi) where a single collateral position backs multiple debt positions, allowing for more capital efficiency and risk management.

A cross-margin pool is a shared collateral pool used in decentralized finance (DeFi) lending and derivatives protocols. Unlike an isolated margin account, where collateral is siloed to a single position, a cross-margin pool aggregates a user's deposited assets into a single, unified collateral balance. This pooled collateral is then used to secure and margin all of the user's open positions—such as loans, perpetual futures, or options—simultaneously. This architecture allows for netting of profits and losses across positions, which can increase capital efficiency by reducing the total collateral required.

The core mechanism relies on a risk engine that continuously calculates the health factor or margin ratio of the entire pool. This is a measure of the pool's total collateral value against its total debt and potential liquidation liabilities. If the value of the pooled collateral falls below a protocol-defined threshold due to market movements, the entire pool becomes eligible for liquidation. Liquidators can then repay a portion of the debt in exchange for the underpriced collateral, restoring the pool's health. This creates a system of shared risk across all positions within the pool.

Key advantages of a cross-margin pool include increased capital efficiency, as unused margin from one position can automatically cover the requirements of another, and simplified management of a complex portfolio. However, the primary risk is cross-contamination: a significant loss on one leveraged position can deplete the shared collateral, potentially triggering the liquidation of all other healthy positions within the same pool. This contrasts with isolated margin, where losses are contained to a specific position.

Prominent implementations of cross-margin pools are found in protocols like dYdX (v3) for perpetual swaps and various decentralized options platforms. These systems often require sophisticated oracle feeds for accurate price data and robust smart contract logic to manage the complex interactions of collateral allocation, interest accrual, and liquidation logic across multiple asset types and market conditions.

key-features
MECHANISM

Key Features of Cross-Margin

A cross-margin pool is a shared liquidity pool that acts as a single, unified collateral vault for multiple user accounts and positions within a protocol.

01

Unified Collateral Vault

All user-supplied assets are deposited into a single, protocol-controlled smart contract. This pooled collateral is then used to backstop all open positions across the system, rather than isolating collateral per account. This creates a shared risk layer and enables capital efficiency.

02

Risk Mutualization

Losses from liquidated positions are socialized across the entire pool. This mechanism, known as loss mutualization, means all liquidity providers share the downside risk. It is a core trade-off: it protects individual traders from instant insolvency but exposes LPs to counterparty risk from the collective portfolio.

03

Capital Efficiency & Leverage

By aggregating collateral, the pool can support higher effective leverage for traders. Since margin requirements are calculated against the health of the entire pool's equity, not a single account's balance, traders can often open larger positions with the same initial capital, assuming sufficient pool liquidity.

04

Protocol-Managed Liquidation

Liquidations are triggered based on the global pool health ratio, not individual account health. The protocol's liquidation engine sells collateral from the pool to cover bad debt. This system prioritizes the solvency of the entire protocol over individual accounts.

05

Liquidity Provider (LP) Role

LPs deposit assets (e.g., stablecoins) to earn yield from trading fees and interest. In return, they become the ultimate risk absorbers. Their capital is first in line to cover any systemic bad debt that accrues from underwater positions after liquidations.

06

Contrast with Isolated Margin

  • Cross-Margin: Shared pool, mutualized risk, higher capital efficiency for traders, LP risk.
  • Isolated Margin: Collateral ring-fenced per position, defined maximum loss for trader, no risk to other users. Hybrid models also exist, allowing users to choose between margin modes.
examples
CROSS-MARGIN POOLS

Protocol Examples

Cross-margin pools are implemented by various DeFi protocols to provide leveraged trading or lending services. These examples illustrate different architectural approaches.

RISK MANAGEMENT

Cross-Margin vs. Isolated Margin

A comparison of two primary margin account structures used in decentralized finance (DeFi) and centralized exchanges to manage leverage and liquidation risk.

FeatureCross-MarginIsolated Margin

Collateral Pool

All account assets form a single, shared pool.

Collateral is allocated and isolated per position.

Risk Exposure

High. A losing position can liquidate the entire account.

Contained. Losses are limited to the collateral in the isolated position.

Capital Efficiency

High. Unused collateral supports all open positions.

Lower. Capital is siloed and cannot be re-used across positions.

Liquidation Mechanics

Account-wide. Triggered if total equity falls below maintenance margin.

Position-specific. Triggered if the isolated position's equity is depleted.

Best For

Experienced traders managing a diversified, hedged portfolio.

New traders or those taking directional bets on volatile assets.

Margin Call

Aggregated across all positions.

Calculated per isolated position.

Common Use Case

Perpetual futures, options strategies, basis trading.

Speculative trading on single assets, high-leverage bets.

advantages
CROSS-MARGIN POOL

Advantages

Cross-margin pools offer distinct structural benefits over isolated margin systems by aggregating user collateral into a single, shared liquidity reserve.

01

Enhanced Capital Efficiency

By pooling collateral, users can back multiple positions with a single deposit, eliminating the need to over-collateralize each trade individually. This allows for greater leverage and trading power from the same capital base. For example, a single $10,000 deposit can simultaneously secure positions in ETH, SOL, and BTC, rather than requiring separate allocations for each.

02

Reduced Liquidation Risk

The aggregated collateral acts as a mutualized buffer, making the system more resilient to volatility. A price drop in one asset can be offset by the health of other positions or the overall pool equity, reducing the frequency of forced liquidations. This contrasts with isolated margin, where each position is liquidated independently based on its own collateral ratio.

03

Simplified Risk Management

Traders manage a single, unified account equity and margin ratio instead of monitoring multiple isolated positions. This provides a holistic view of portfolio risk. Key metrics include:

  • Total Account Value: Sum of all collateral and open positions.
  • Maintenance Margin: The minimum equity required for the entire portfolio.
  • Margin Call Level: The point at which the portfolio requires additional collateral.
04

Optimized Liquidity Utilization

Idle collateral in one position is automatically available to support new positions or cover losses elsewhere in the portfolio. This prevents capital from being locked and underutilized, a common inefficiency in isolated margin systems. The pool's shared nature allows for dynamic reallocation of liquidity in real-time based on the net risk of all open positions.

05

Protocol-Level Risk Sharing

In decentralized finance (DeFi) protocols like dYdX or Synthetix, cross-margin pools create a shared risk layer among all participants. This mutualization can absorb losses from extreme market events, potentially preventing cascading liquidations. The risk is distributed across the entire pool's capital, not borne by individual traders in isolation.

06

Comparison to Isolated Margin

A direct comparison highlights the core trade-off:

  • Cross-Margin: Higher capital efficiency and lower liquidation risk, but with cross-position liability (one bad trade can affect the entire portfolio).
  • Isolated Margin: Strict risk containment per position, but requires more capital and has higher individual liquidation risk. The choice depends on a trader's strategy and risk tolerance.
risks-considerations
CROSS-MARGIN POOL

Risks & Considerations

While cross-margin pools offer capital efficiency and leverage, they introduce distinct systemic and user-specific risks that must be understood before participation.

01

Liquidation Cascades

A cross-margin pool's interconnectedness creates systemic risk. If a large, highly leveraged position is liquidated, the forced sale of collateral can cause the underlying asset's price to drop. This price drop can trigger margin calls and liquidations for other pool users, creating a self-reinforcing downward spiral. This is a primary mechanism behind protocol insolvency during market crashes.

02

Smart Contract & Oracle Risk

The pool's security is only as strong as its code and data feeds. A smart contract vulnerability could lead to the loss of all pooled funds. Furthermore, the pool relies on price oracles to determine collateral values and trigger liquidations. Oracle manipulation (e.g., flash loan attacks) or failure can result in incorrect liquidations or allow undercollateralized positions to persist, threatening the pool's solvency.

03

Concentration & Correlation Risk

Pools often have concentrated exposure to specific assets (e.g., a pool for blue-chip DeFi tokens). If these assets are highly correlated, a sector-wide downturn can simultaneously affect most positions, overwhelming the pool's liquidation mechanisms and shared insurance fund. This differs from isolated margin, where one user's bad bet doesn't directly endanger others.

04

Liquidity Provider (LP) Impermanent Loss

LPs who deposit assets to fund the pool's lending face impermanent loss. If the price of the deposited assets changes significantly relative to each other while in the pool, LPs may receive back less value than if they had simply held the assets. This is a key consideration for yield, as trading fees and interest income must offset this potential loss.

05

Governance & Parameter Risk

Pool parameters like loan-to-value (LTV) ratios, liquidation penalties, and interest rate models are typically set by governance. Poor parameter choices (e.g., LTV too high) can increase insolvency risk. Sudden, poorly communicated parameter changes via governance votes can also catch users off guard, leading to unexpected liquidations.

06

Counterparty Risk in Lending

Unlike isolated margin, lenders in a cross-margin pool face aggregate counterparty risk from all borrowers. While individual positions may be overcollateralized, a cascade of bad debts across the pool can deplete the shared collateral, potentially leaving lenders with losses. The pool's insurance fund or protocol-owned capital acts as a backstop, but it may be insufficient during extreme events.

liquidation-mechanism
DEFINITION

Liquidation Mechanism in Cross-Margin

A cross-margin liquidation mechanism is the automated process that closes a trader's undercollateralized positions when the total value of their collateral in a shared pool falls below a predefined maintenance margin threshold.

In a cross-margin system, a trader's collateral is pooled to support multiple open positions simultaneously, unlike isolated margin where each position has dedicated collateral. The system continuously monitors the Health Factor or Margin Ratio, which is calculated as the total value of the pooled collateral divided by the total maintenance margin requirement for all open positions. When market movements cause losses, this ratio decreases. A liquidation event is triggered automatically when the ratio falls below 1.0 (or 100%), indicating the pooled collateral is insufficient to cover potential losses, making the account undercollateralized.

Upon triggering, the liquidation mechanism aims to repay the protocol's debt by force-closing the trader's positions, typically starting with the most risky or largest ones. This is often executed via a liquidation auction or a direct sale to liquidators—third-party bots or users incentivized by a liquidation penalty or discount. The liquidator purchases the collateral at a discount, repays the outstanding debt to the protocol, and keeps the difference as profit. This process ensures the solvency of the lending pool or decentralized exchange by preventing bad debt from accumulating.

Key parameters governing this mechanism include the liquidation threshold (the collateral value ratio at which liquidation begins), the liquidation penalty (the fee charged to the trader, often 5-15%), and the close factor (the maximum percentage of a position that can be liquidated in a single transaction). These are set by protocol governance and are critical for managing systemic risk. For example, a lower liquidation threshold provides a larger safety cushion for the protocol but increases the frequency of liquidations for traders.

The mechanism's design involves significant trade-offs. A slow or inefficient process can leave the protocol undercollateralized during volatile markets, while overly aggressive liquidations can cause cascading liquidation spirals and market instability. Modern protocols often implement features like gradual liquidations, soft liquidations that only close enough to restore health, and insurance funds to cover any remaining shortfalls, thereby creating a more robust and trader-friendly system.

From a trader's perspective, managing liquidation risk in cross-margin requires monitoring the aggregate health of all positions, not individual trades. Tools like liquidation price calculators are essential, as the price at which liquidation occurs is a dynamic function of all open positions and the shared collateral pool. This centralized risk, while capital efficient, means a single adverse move can jeopardize the entire portfolio, unlike the compartmentalized risk of isolated margin accounts.

CROSS-MARGIN POOLS

Frequently Asked Questions

Cross-margin pools are a foundational DeFi primitive for lending and borrowing. This FAQ addresses common questions about their mechanics, risks, and use cases.

A cross-margin pool is a shared liquidity pool where users deposit assets as collateral that can be used to back multiple, simultaneous debt positions across different assets. It works by aggregating user-supplied collateral into a single, fungible pool. Borrowers can then draw loans in various supported assets up to a limit determined by their total collateral value and the pool's loan-to-value (LTV) ratios. The system automatically manages the health of all positions by tracking a user's total weighted collateral against their total borrowed value. If the aggregate collateral ratio falls below a liquidation threshold, any of the user's collateral in the pool can be liquidated to repay debts.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team