Decentralized Perpetual Futures Liquidations

Automated mechanisms that forcefully close a trader's undercollateralized position in DeFi to prevent the protocol from going bankrupt.

Liquidation mechanisms can vary by protocol. Some use direct transfer (the Keeper pays off the debt and takes the collateral), while others use Dutch Auctions to sell the collateral to the market over a short time period to minimize price impact. A poorly designed liquidation engine can lead to cascading liquidations, where selling collateral drives the asset price down further, triggering even more liquidations.

        graph LR
  Center["Decentralized Perpetual Futures Liquidations"]:::main
  Rel_decentralized_perpetual_futures_funding["decentralized-perpetual-futures-funding"]:::related -.-> Center
  click Rel_decentralized_perpetual_futures_funding "/terms/decentralized-perpetual-futures-funding"
  Rel_decentralized_perpetual_futures_risk["decentralized-perpetual-futures-risk"]:::related -.-> Center
  click Rel_decentralized_perpetual_futures_risk "/terms/decentralized-perpetual-futures-risk"
  Rel_decentralized_perpetual_futures_hedging["decentralized-perpetual-futures-hedging"]:::related -.-> Center
  click Rel_decentralized_perpetual_futures_hedging "/terms/decentralized-perpetual-futures-hedging"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 Knowledge Check

1 / 5

🧒 Explain Like I'm 5

Imagine you borrow money from a pawn shop to buy a rare comic book, leaving your watch as [collateral](/en/terms/collateral). If the value of the comic book drops so much that it's worth less than the money you owe, the pawn shop will automatically sell your watch to get their money back. In crypto, there is no pawn shop owner. Instead, a robot (a 'Keeper') constantly checks everyone's math. The moment you owe more than you have, the robot presses a button to sell your collateral, and the robot gets a small tip for doing the math.

🤓 Expert Deep Dive

The Role of Keepers and MEV
Decentralized liquidations are a highly competitive form of Maximal Extractable Value (MEV). Keepers run off-chain infrastructure to monitor Oracle price updates and mempool transactions. When a position becomes liquidatable, multiple Keepers will race (often via Priority Gas Auctions or Flashbots) to submit the liquidation transaction and claim the liquidation penalty/bounty.

Handling Bad Debt: Insurance Funds and Auto-Deleveraging (ADL)
In extreme market crashes (tail-risk events), oracle latency or network congestion may prevent Keepers from liquidating positions in time, resulting in the position's debt exceeding its collateral (Bad Debt). Protocols handle this via an Insurance Fund (a pool of capital meant to absorb the loss). If the Insurance Fund is depleted, protocols resort to Auto-Deleveraging (ADL), which forcefully closes the profitable positions of winning traders to socialize the losses of the bankrupt traders.

❓ Frequently Asked Questions

Who actually triggers a liquidation on the blockchain?

Since smart contracts cannot execute themselves, third-party actors called 'Keepers' or 'Liquidators' run bots to monitor the network. They trigger the liquidation transaction because the protocol rewards them with a bounty.

What is 'Bad Debt' in DeFi?

Bad debt occurs when the market crashes so fast that a position cannot be liquidated before its collateral is worth less than the debt it owes. The protocol must cover this loss, usually from an Insurance Fund.

What is a Maintenance Margin?

It is the minimum amount of collateral (expressed as a percentage of your position size) that you must maintain to keep your leveraged position open. Dropping below this triggers liquidation.

📚 Sources