MEV in liquidations refers to the profit-seeking activity where network participants, known as searchers, compete to be the first to execute a liquidation transaction on a blockchain. This occurs when a borrower's collateral in a protocol like Aave or Compound falls below the required health factor, triggering a state where their position can be closed by any external actor. The searcher who successfully submits the transaction first earns a liquidation bonus or fee, making this a classic form of arbitrage MEV driven by public, on-chain data.
MEV in Liquidations
What is MEV in Liquidations?
An analysis of how Maximal Extractable Value (MEV) is extracted from the forced closure of undercollateralized positions in DeFi lending protocols.
The extraction process relies on sophisticated infrastructure. Searchers run MEV bots that monitor the mempool for pending transactions that might push a position into insolvency, or they directly scan the blockchain state for undercollateralized positions. Using high-speed connections and often paying elevated gas fees (via techniques like Priority Gas Auctions), these bots front-run other participants to submit the liquidation call. The profit is the difference between the discounted collateral seized and the debt repaid, minus the gas cost, creating a highly competitive, automated market.
This activity has significant systemic implications. While it provides essential liquidity and risk management for lending protocols by ensuring bad debt is quickly cleared, it also leads to network congestion and high transaction fees for regular users. Furthermore, the race to be first can result in negative externalities, such as failed transactions wasting gas, or more complex MEV attacks like time-bandit attacks targeting the reorganization of blockchain history to capture past liquidation opportunities.
How MEV in Liquidations Works
An explanation of the specific arbitrage opportunity where searchers and bots compete to profit from the forced closure of undercollateralized loans in DeFi protocols.
MEV (Maximal Extractable Value) in liquidations is a specialized form of on-chain arbitrage where network participants, known as searchers, compete to profit from executing liquidation transactions on undercollateralized loans. When a borrower's collateral value falls below a protocol's required health factor or collateralization ratio, their position becomes eligible for liquidation. Searchers run sophisticated bots that monitor the mempool for these opportunities, racing to be the first to submit a liquidation transaction and claim the associated liquidation bonus or fee as profit. This process is a critical, albeit competitive, component of DeFi's risk management.
The economic mechanics are driven by protocol incentives. To encourage timely liquidations and protect the system's solvency, protocols offer a reward, typically a percentage of the liquidated collateral or a fixed bonus. Searchers calculate the potential profit from this reward minus the gas costs and any slippage incurred. Their bots employ advanced strategies like gas bidding wars and bundle building to outbid competitors. This creates a classic MEV scenario: value is extracted not from creating new economic output, but from prioritizing and capturing a transaction with a predefined financial reward embedded in the protocol's logic.
Common strategies include liquidator arbitrage and sandwich liquidation. In a straightforward liquidation, a searcher simply repays the borrower's outstanding debt in exchange for the discounted collateral. More complex cross-protocol liquidations may involve instantly selling the seized collateral on a DEX to lock in profits. The liquidate() or liquidatePosition() function call is the primary target. This competition, while ensuring liquidations occur, can have negative externalities, such as network congestion and increased gas prices for all users during periods of high market volatility.
The impact of MEV in liquidations is twofold. Positively, it creates a robust, decentralized incentive for risk management, helping to keep DeFi protocols solvent. Negatively, it can lead to centralization pressures, as successful searchers require significant capital for gas bidding and access to advanced infrastructure like private mempools or Flashbots bundles. Furthermore, the race to liquidate can sometimes result in suboptimal execution for the borrower, as searchers prioritize speed over achieving the best price for the collateral being sold, potentially increasing the borrower's loss.
Key Features of MEV in Liquidations
MEV in liquidations refers to the extraction of value by searchers who compete to be the first to execute a liquidation transaction on an undercollateralized position. This process is fundamental to DeFi risk management and creates a competitive, automated market for capital efficiency.
The Liquidation Trigger
A liquidation is triggered when a borrower's collateral value falls below the protocol's required collateralization ratio. This creates a time-sensitive opportunity for searchers to repay the debt and seize the collateral at a discount. The specific trigger is defined by the protocol's smart contract logic, such as a health factor dropping below 1.0.
The Searcher's Role
Searchers run sophisticated bots that monitor the blockchain for undercollateralized positions. Upon detecting a trigger, they compete in a priority gas auction (PGA) to have their liquidation transaction included in the next block. Their profit is the difference between the discounted collateral they receive and the debt they repay, minus transaction costs.
The Priority Gas Auction (PGA)
This is the core competitive mechanism. Searchers bid by incrementally increasing their transaction's gas price to incentivize block builders (validators) to include their transaction first. The winner pays a high gas fee but secures the liquidation reward. PGAs can drive network congestion and spike gas prices during market volatility.
Liquidation Incentives & Discounts
Protocols set a liquidation bonus or discount (e.g., 5-10%) to incentivize searchers. This bonus is the searcher's profit margin. Key variables include:
- Liquidation penalty: Paid by the borrower from their collateral.
- Close factor: The maximum percentage of a position that can be liquidated in one transaction.
- Collateral auction: Some protocols use a Dutch auction instead of a fixed discount.
MEV-Boost & Proposer-Builder Separation (PBS)
With MEV-Boost, validators (proposers) outsource block building to specialized builders. Builders aggregate profitable transactions, including liquidations, into bundles and bid for block space. This centralizes the competition among builders, who can offer searchers more sophisticated execution strategies like backrunning or sandwiching related trades.
Risks & Negative Externalities
MEV from liquidations creates systemic risks:
- Network Congestion: PGAs can clog the network, increasing costs for all users.
- Centralization Pressure: High capital requirements for profitable MEV extraction favor large, professional searchers and builders.
- Liquidation Cascades: Aggressive front-running can exacerbate market moves, triggering further liquidations in a feedback loop.
Visualizing the Liquidation MEV Race
An examination of the competitive, high-frequency environment where searchers and bots compete to profit from liquidating undercollateralized positions on lending protocols.
The liquidation MEV race is a high-stakes, sub-second competition where specialized bots, known as searchers, compete to be the first to execute a profitable liquidation transaction on a blockchain. When a borrower's collateral value falls below the required health factor or collateralization ratio on a protocol like Aave or Compound, their position becomes eligible for liquidation. The first searcher to successfully submit the liquidation transaction earns a liquidation bonus or penalty fee, creating a direct financial incentive for speed. This competition is a primary source of Maximal Extractable Value (MEV) on DeFi lending platforms.
Searchers employ sophisticated strategies to win these races, primarily focusing on transaction ordering and latency optimization. They run proprietary algorithms that monitor the memepool for pending transactions that might affect collateral prices and use flashbots or private transaction relays to bypass public memepool exposure, reducing the risk of being frontrun. The race is visualized as a constant, invisible battle occurring in the seconds between block production, where the winner is determined by who can construct, sign, and propagate the most optimally ordered bundle of transactions to a block builder or validator the fastest.
The economic dynamics of this race are defined by the liquidation incentive, typically a percentage of the collateral seized or debt repaid, which must outweigh the gas costs and operational expenses of running the bots. Searchers must calculate complex profitability thresholds, balancing the bonus against network congestion and the probability of winning the race. This environment creates a latency arms race, where participants invest in infrastructure—such as geographically co-located servers near validators—to shave milliseconds off their transaction propagation time.
The prevalence of liquidation MEV races has significant systemic implications. While they provide a crucial liquidity backstop for lending protocols by ensuring undercollateralized loans are promptly resolved, they also contribute to network congestion and can exacerbate gas price volatility during market downturns. Furthermore, the competitive pressure can lead to centralization risks, as only well-capitalized entities can afford the advanced infrastructure required to compete consistently, potentially marginalizing smaller participants.
Protocol designers have implemented various mechanisms to manage this race, such as Dutch auction liquidations (used by MakerDAO's Collateral Auction System) or fixed discount liquidations, which aim to reduce the winner-take-all nature of the competition. These designs attempt to distribute the MEV more broadly or make the liquidation process less sensitive to pure transaction speed, thereby mitigating some of the negative externalities like excessive network load and centralization, while still ensuring the protocol's solvency is protected.
Protocols & Chains Where This Occurs
MEV (Maximal Extractable Value) from liquidations is a critical, high-frequency activity across DeFi. The specific mechanisms and prevalence vary significantly by underlying blockchain architecture and protocol design.
Cosmos & App-Chains
MEV dynamics are chain-specific due to sovereign app-chain architecture. Tendermint's deterministic block production reduces some frontrunning but enables time-bandit attacks.
- Example Chain: Osmosis (DEX liquidations).
- Characteristic: More predictable block times can lead to auction-based or keeper network models for liquidations.
Avalanche Subnets
Similar to Cosmos, each subnet controls its own execution environment. MEV in liquidations depends on the subnet's virtual machine and validator set.
- Example: Trader Joe's lending on Avalanche C-Chain (EVM).
- Consideration: Isolated subnets can have less competitive MEV, but high-value subnets attract sophisticated searchers.
Protocol-Specific Keeper Networks
Some protocols mitigate public MEV competition by using permissioned keeper networks or liquidator whitelists. This centralizes the extraction but guarantees liquidation execution.
- Examples: Early versions of Synthetix, certain isolated lending markets.
- Trade-off: Reduces MEV competition but introduces reliance on a specific set of actors.
Cross-Chain & Layer 2 Considerations
Liquidation opportunities can emerge from state discrepancies across chains in cross-chain lending protocols. MEV strategies must account for bridge finality and message delays.
- Complexity: Executing a cross-chain liquidation involves MEV on both the source chain (to trigger) and destination chain (to claim).
- Emerging Issue: As DeFi becomes multi-chain, cross-domain MEV is a growing research area.
Security & Systemic Considerations
Maximal Extractable Value (MEV) in liquidation processes creates a complex interplay of incentives, risks, and systemic dependencies that are critical for protocol stability and user safety.
The Liquidation Sandwich Attack
A predatory MEV strategy where a searcher or bot front-runs a pending liquidation transaction to manipulate the price of the collateral asset, worsening the position's health before the liquidation executes. This is achieved by:
- Front-running: Submitting a transaction with a higher gas fee to execute first.
- Price Impact: Buying the collateral asset to temporarily increase its price, making the loan appear less undercollateralized.
- Back-running: Selling the asset immediately after the liquidation, profiting from the price drop caused by the liquidation's sell pressure. This attack directly harms the borrower by making an otherwise safe position liquidatable and reduces the recovery for the liquidated borrower.
Oracle Manipulation & MEV
Liquidations are triggered by oracle price feeds. Searchers can exploit the latency or design of these feeds to extract MEV.
- Time-weighted average price (TWAP) manipulation: Bots can trade heavily just before an oracle update to skew the average price, artificially pushing a position into liquidation.
- Flash loan attacks: A searcher uses a flash loan to temporarily manipulate the spot price on a decentralized exchange (DEX) that an oracle uses, triggering liquidations at an incorrect price.
- Oracle front-running: Monitoring the mempool for oracle update transactions and liquidating positions in the block before the new price is recorded. These attacks highlight the critical need for robust, manipulation-resistant oracles like Chainlink or custom TWAP implementations.
Systemic Risk & Liquidation Cascades
MEV-driven liquidations can amplify market downturns into liquidation cascades. During high volatility, a wave of liquidations triggered by MEV bots can:
- Create massive sell pressure on collateral assets, causing their prices to plummet (death spiral).
- Overwhelm the available liquidation capacity, leaving positions underwater for longer.
- Drain protocol insurance funds or trigger bad debt if liquidations are not executed efficiently. Protocols mitigate this with circuit breakers, gradual liquidation penalties, and dynamic collateral factors that reduce the incentive for instantaneous, aggressive MEV extraction during stress events.
Centralization of Liquidation Power
The high-stakes, low-latency nature of MEV in liquidations leads to centralization. Professional searchers with sophisticated infrastructure (proprietary mempool access, high-performance nodes) dominate the market.
- Consequences: A small group of actors controls a critical security function (keeping loans solvent).
- Risks: Collusion, censorship of certain liquidations, or creating MEV cartels.
- Mitigations: Protocols implement permissionless liquidation with incentives (e.g., Dutch auctions, fixed discounts) to encourage broader participation and reduce the advantage of specialized bots.
Protocol Design as a Defense
DeFi protocols architect their liquidation mechanisms to minimize harmful MEV and protect users.
- Dutch Auctions (e.g., MakerDAO): Collateral is sold at a price that starts high and decreases over time, reducing the profit from front-running and giving the market time to absorb sales.
- Fixed Discounts (e.g., Aave, Compound): A set bonus is given to the liquidator, capping the extractable value and making attacks less profitable.
- Health Factor Grace Periods: A buffer zone where a position is undercollateralized but not yet liquidatable, allowing the borrower time to rectify it.
- Keeper Networks: Some protocols use designated, permissioned actors (keepers) to perform liquidations, trading off decentralization for predictable execution.
The Role of MEV-Boost & PBS
Proposer-Builder Separation (PBS) via MEV-Boost on Ethereum changes the liquidation MEV landscape.
- Builders now assemble blocks, bundling liquidation opportunities with other transactions.
- Searchers submit bundles to builders, who choose the most profitable ones for inclusion.
- Impact: This can make liquidation execution more reliable and efficient, as builders have an incentive to include profitable liquidations. However, it also centralizes the power to order transactions in the hands of a few block builders, potentially creating new points of failure or censorship.
MEV in Liquidations vs. Other MEV Types
A comparison of the defining characteristics, risks, and economic dynamics of liquidation-based MEV against other common forms.
| Feature / Dimension | Liquidations | Arbitrage | Sandwich Trading |
|---|---|---|---|
Primary Trigger | Protocol-defined health threshold breach (e.g., loan collateral ratio) | Price discrepancy across decentralized exchanges (DEXs) | Visible pending transaction in the mempool |
Source of Profit | Liquidation bonus / penalty from the underwater position | Spread between asset prices on different venues | Spread created around the victim's trade |
Economic Nature | Zero-sum (profit from a specific, identified losing trader) | Positive-sum (corrects market inefficiency, provides liquidity) | Negative-sum (extracts value directly from a specific victim) |
Predictability | High (based on public on-chain state and oracle prices) | Moderate (depends on market volatility and latency) | Low (depends on spotting profitable opportunities in real-time mempool) |
Execution Window | Seconds to minutes (until position is restored or fully liquidated) | Sub-second (until arbitrage opportunity is erased) | Sub-second (within the same block as victim's transaction) |
Risk to Network | Medium (can cause cascading liquidations and systemic instability) | Low (generally improves price efficiency) | High (increases gas costs, degrades user experience) |
Common Searchers | Specialized keeper bots, liquidator networks | Generalized arbitrage bots | Generalized frontrunning bots |
Protocol Dependence | Very High (requires specific lending/borrowing protocol rules) | Low (works across any DEX or AMM) | Low (works against any token swap on a public mempool) |
Real-World Examples & Mechanics
MEV in liquidations refers to the extraction of value by searchers who compete to profitably execute the forced closure of undercollateralized positions on lending protocols.
The Liquidation Trigger
A liquidation is triggered when a borrower's collateralization ratio falls below a protocol's liquidation threshold. This creates a profitable opportunity for searchers to repay the borrower's debt in exchange for their collateral at a discount, known as the liquidation bonus. Searchers compete to be the first to submit this transaction.
The Searcher's Race
Searchers run bots that monitor the mempool and blockchain state for undercollateralized positions. Upon detection, they:
- Construct a liquidation transaction.
- Use priority gas auctions (PGAs) to bid for block space by paying higher transaction fees (gas) to validators.
- The winning transaction is included in the next block, capturing the liquidation bonus minus gas costs.
Example: Aave/Compound Liquidation
A user borrows 50 ETH against 100 ETH of WBTC collateral. If WBTC price drops 30%, their collateral value is now 70 ETH, below the 80% threshold. A seearcher's bot:
- Detects the unsafe position.
- Repays the 50 ETH debt for the borrower.
- Receives ~55 ETH worth of WBTC (a 10% liquidation bonus).
- Profits ~5 ETH, minus gas, by instantly selling the seized WBTC.
Sandwich Attacks on Liquidations
Searchers can extract additional MEV by sandwiching a liquidation. They front-run the liquidation transaction with a large swap to temporarily move the price of the collateral asset, increasing the discount they receive. They then back-run the liquidation with a reverse swap to profit from the price reversion. This amplifies their profit at the expense of the liquidated user.
Protocol Design & Mitigations
Protocols implement mechanisms to manage MEV and protect users:
- Liquidation caps: Limit the size of a single liquidation to prevent market manipulation.
- Dutch auctions: Gradually decreasing liquidation bonus over time (e.g., Euler, Morpho).
- Keeper networks: Permissioned or decentralized networks for liquidation execution (e.g., Keep3r, Gelato).
- MEV-aware oracles: Using time-weighted average prices (TWAP) to reduce oracle manipulation.
MEV-Boost & Proposer-Builder Separation
With Ethereum's PBS, specialized block builders aggregate profitable liquidation transactions (and other MEV) into blocks. They pay validators (proposers) to include their block via MEV-Boost. This outsources the complex competition to builders, who can offer more efficient execution and potentially higher revenue sharing for the searcher's liquidation profits.
Evolution and Mitigation Strategies
This section details the progression of MEV extraction in liquidation markets and the technical countermeasures developed to mitigate its negative externalities.
The evolution of MEV in liquidations began with simple, opportunistic frontrunning and backrunning by independent searchers using public mempools, where they competed to be the first to submit a profitable liquidation transaction. This early phase was characterized by high variance and a gas auction model, where searchers bid up transaction fees to win block space, often resulting in network congestion and inflated gas costs for all users. The primary tools were basic transaction replacement techniques and timing strategies to outpace competitors.
As the ecosystem matured, MEV extraction became more sophisticated and institutionalized. The rise of Flashbots and the MEV-Boost relay architecture introduced a private transaction channel, moving the competitive auction off-chain into a sealed-bid environment. This reduced on-chain congestion but concentrated value extraction among professional operators with advanced infrastructure. Searchers began employing complex bundle strategies, combining liquidation transactions with arbitrage or other MEV opportunities to maximize profit, while block builders aggregated these bundles to construct the most profitable blocks for validators.
In response, a suite of mitigation strategies emerged, targeting both protocol design and market structure. Protocol-level solutions include Dutch auctions for liquidation penalties (as used by MakerDAO and Aave V3), which gradually reduce the liquidation bonus over time, disincentivizing frontrunning and distributing proceeds more fairly. Keeper networks and permissioned liquidator whitelists create a more orderly, first-come-first-served process. Furthermore, MEV-aware design principles, such as FLAIR (Fair Liquidation Auctions In-protocol), aim to bake resistance to value extraction directly into smart contract logic.
Market-level solutions focus on transparency and redistribution. MEV smoothing protocols attempt to distribute extracted value more broadly, for instance, back to the protocol's users or insurance funds. SUAVE (Single Unified Auction for Value Expression), a proposed decentralized block builder, aims to democratize access to MEV opportunities. The ultimate goal of these strategies is to preserve the critical risk management function of liquidations while minimizing their cost, volatility, and centralizing effects on the network, ensuring DeFi remains robust and accessible.
Frequently Asked Questions (FAQ)
Maximal Extractable Value (MEV) in the context of liquidations is a critical and complex area of decentralized finance. These questions address how searchers profit, the risks involved, and the impact on end users.
MEV in DeFi liquidations refers to the profit that blockchain participants, known as searchers, can extract by being the first to execute a liquidation transaction on an undercollateralized loan. This process works by searchers running sophisticated bots that monitor the blockchain for positions where the collateral value falls below the required threshold (the liquidation ratio). When such a position is detected, the searcher's bot submits a transaction to the liquidation contract (e.g., Aave, Compound) with a higher gas fee (priority fee) to outbid competitors. If successful, the searcher repays part of the bad debt and receives the collateral at a discount (the liquidation bonus), which they can then sell on the open market for an instant, risk-free profit. This entire sequence, from detection to arbitrage, often occurs within a single block.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.