DeFi Intel

Cross-Chain Liquidation Hunting: Monitoring and Execution

Quick answerCross-chain liquidation hunting involves monitoring positions on Aave, Compound, and Morpho across Ethereum, Polygon, Arbitrum, etc., computing health factors via subgraphs or RPCs, and executing liquidations on the correct chain quickly. It requires capital on each chain, understanding of liquidation parameters, and automated bots.

Cross-chain liquidation hunting is the practice of scanning multiple blockchain networks for undercollateralized positions in decentralized lending protocols and executing liquidations to capture bonuses. Unlike single-chain hunting, this strategy demands monitoring disparate chains, each with its own liquidation mechanics, gas markets, and competition levels, to find profitable opportunities that others miss.

For advanced DeFi operators, cross-chain liquidation hunting offers higher yields due to less efficient markets on emerging L2s and sidechains. However, it requires a robust tech stack—from subgraphs and RPC endpoint management to automated execution scripts—and careful capital allocation across chains to cover gas and seize opportunities instantly.

Key takeaways
  • Cross-chain liquidation hunting requires dedicated monitoring infrastructure per chain, not a one-size-fits-all bot.
  • Profitability depends on choosing chains with low competition and favorable liquidation bonuses (5-15%).
  • Use The Graph subgraphs for broad scanning and direct RPC calls for final confirmation to balance speed and cost.
  • Capital must be allocated across chains for gas, and flashloans are only single-chain – so keep native tokens on each.
  • Private mempools (Flashbots, Bloxroute) are essential on Ethereum and some L2s to avoid frontrunning.
  • Stay updated on protocol governance and oracle delays as they directly impact liquidation opportunities.

What Is Cross-Chain Liquidation Hunting?

Cross-chain liquidation hunting refers to the systematic monitoring of lending protocol positions across multiple blockchains (e.g., Ethereum, Polygon, Arbitrum, Avalanche) to identify accounts whose health factor drops below 1, making them eligible for liquidation. The hunter then repays part of the debt and receives collateral at a discount (the liquidation bonus).

Unlike single-chain hunting, this approach considers chain-specific parameters: for example, Aave v3 on Polygon offers a 5% liquidation bonus, while Compound v2 on Ethereum uses an 8% bonus but a 50% close factor. Cross-chain hunters also factor in gas costs, confirmation times, and mempool congestion. Tools like The Graph subgraphs and DefiLlama APIs provide real-time data across chains, enabling hunters to aggregate health factors and spot opportunities.

Why Hunt Liquidations Across Chains?

Liquidation hunting across chains can be more profitable than focusing on a single chain due to several factors:

For instance, a whale position using wETH as collateral on both Ethereum Aave and Polygon Aave may have a health factor of 1.01 on Ethereum but 0.95 on Polygon due to different oracle prices. A cross-chain hunter can liquidate the Polygon position before the Ethereum one stabilizes.

Core Lending Protocols to Monitor

ProtocolChainsLiquidation BonusClose FactorHealth Factor Threshold
Aave v3Ethereum, Polygon, Arbitrum, Optimism, Avalanche5% (variable per asset)50% (can vary)1.0
Compound v2/v3Ethereum, Optimism (v3)8% (v2), varies by asset (v3)50% (v2), 80% (v3)0.8 (v2), 1.0 (v3)
Morpho BlueEthereum, BaseConfigurable by marketConfigurable1.0
Radiant CapitalArbitrum, BNB Chain10-15%50%1.0

Focus on protocols with high total value locked (TVL) and active borrowing to ensure a steady stream of liquidation events. Aave v3 on Arbitrum and Polygon are often the most active due to high retail activity, while Compound on Ethereum remains a classic target.

Understanding Liquidation Mechanics Per Chain

Each chain and protocol combination has subtle differences that affect profitability. For example:

For a concrete example, consider a position on Aave Polygon where the borrower’s health factor drops to 0.98. The hunter must call liquidationCall with the debt asset and debt amount to cover (up to 50% of the total debt). The bonus is applied to the collateral asset returned, e.g., with 5% bonus on ETH, you get 1.05 ETH for every 1 ETH of collateral you claim.

Setting Up a Monitoring Stack

A reliable monitoring stack is crucial to catch liquidation opportunities. The typical architecture includes:

Example: Set up a cron job on a server running Node.js that queries the Aave Polygon subgraph every 2 seconds, fetches the last 1000 users with healthFactor < 1.05, then locally calls the contract to get exact values and checks if healthFactor < 1.0. When found, trigger a liquidation transaction.

Building a Custom Liquidation Bot

To execute profitable liquidations, you need a bot that can act within blocks. Steps:

  1. Connect to RPCs: Use ethers.js or web3.py with multiple endpoints per chain for redundancy.
  2. Fetch user data: Continuously poll the protocol contracts for user account data (health factor, collateral, debt). Prioritize accounts with healthFactor closest to 1.0 where the debt is in a liquid asset.
  3. Simulate liquidation: Estimate gas required and expected profit. For Aave, profit = collateralAmount * liquidationBonus - debtRepaid - gasCost. Only proceed if profit > minProfit.
  4. Prepare transaction: Build the liquidation call (e.g., liquidationCall(…) on Aave) with the correct collateral asset, debt asset, user, and debtToCover.
  5. Send transaction: Use Flashbots (on Ethereum) to avoid mempool frontrunning or standard txns on L2s. Monitor for inclusion and resend if necessary.
  6. Manage nonces: On each chain, maintain a nonce manager to avoid duplicate liquidations.

For cross-chain, you’ll run separate bot instances per chain, each with its own wallet funded with the appropriate native token for gas.

Cross-Chain Execution Strategies

Executing liquidations across multiple chains requires careful strategy:

For best results, prioritize chains with low competition and high gas limits, such as Arbitrum (low gas, fast blocks) and Polygon (moderate competition). Allocate at least 0.5 ETH worth of native token per chain to cover gas and any minimal debt repayment.

Risk Management and Capital Allocation

Cross-chain liquidation hunting is not risk-free. Key risks and mitigations:

Reallocate capital weekly based on realized profits per chain. Tools like DeBank can show your cross-chain portfolio. Maintain a reserve on the highest profitability chain.

Comparison Table: Monitoring Approaches

ApproachData FreshnessLatencyCustomizationCostBest For
Manual via DefiLlama1-5 minutesHighLowFreeBeginners / research
Subgraph polling (The Graph)~subgraph latency (2-60s)MediumMediumFree (limited queries) or paidAdvanced users with bots
Direct RPC + contract callsReal-timeLowHighRPC costs (credits)Professional hunters
Full node + custom indexerReal-timeLowestMaximumHigh (node hosting)Institutional / MEV shops

Choose based on your budget and technical ability. Most advanced hunters use a combination: subgraphs for broad scanning and direct RPC for final confirmation and execution.

Common Mistakes and How to Avoid Them

Future Trends: Cross-Chain Liquidation Automation

The future of cross-chain liquidation hunting lies in native cross-chain keepers and automation. Protocols like Chainlink CCIP and LayerZero enable smart contracts on one chain to trigger actions on another. Already, projects like DeFi Saver offer automated liquidation protection, but the inverse – automated liquidation hunting – is emerging.

Imagine a smart contract that monitors health factors across chains via oracles and automatically repays debt on one chain while claiming collateral on another using a single cross-chain transaction. This reduces capital requirements and latency. As these technologies mature, cross-chain liquidation hunting will become more efficient and accessible to capital-efficient funds.

Step-by-step

  1. 1. Identify target chains (e.g., Ethereum, Polygon, Arbitrum) and lending protocols (Aave, Compound, Morpho) based on TVL and liquidation frequency.
  2. 2. Set up real-time monitoring using The Graph subgraphs or DefiLlama API to track users with health factors below 1.05.
  3. 3. Spin up a server with ethers.js or web3.py, connecting to multiple RPC endpoints per chain for redundancy.
  4. 4. Fetch user account data (getUserAccountData for Aave, getAccountSnapshot for Compound) for identified candidates.
  5. 5. Simulate the liquidation transaction: estimate gas, compute profit after bonus, and filter for minimum profitability.
  6. 6. Prepare the liquidation call with correct parameters (debt to cover, collateral asset, user address) and sign the transaction.
  7. 7. Submit the transaction via Flashbots (on Ethereum) or a private mempool (on L2s) to avoid frontrunning, using appropriate priority fees.
  8. 8. Monitor chain for transaction inclusion and resend if not mined within a few blocks; track success/failures per chain.
  9. 9. Rebalance capital across chains weekly, keeping a reserve in native tokens for gas based on historical gas costs.

Common mistakes to avoid

Frequently asked questions

What is the minimum capital required to start cross-chain liquidation hunting?

You need native tokens (ETH, MATIC, etc.) on each chain to pay for gas and possibly to cover a small portion of debt. For a basic setup, start with $500–$1000 in total across 2-3 chains.

How do I handle liquidations that require repaying debt with a flash loan?

Flash loans are single-chain; you cannot use them across chains. Instead, you must have sufficient stablecoins or native tokens on each chain to repay the debt upfront and then sell the discounted collateral.

Which chain offers the best liquidation opportunities currently?

Opportunities shift, but historically Polygon and Arbitrum have lower competition than Ethereum while maintaining high TVL in Aave. Monitor liquidation volumes on DefiLlama daily.

Do I need to run a full node for each chain?

No, you can use managed RPCs like Alchemy or QuickNode. However, a full node reduces latency and RPC costs for high-frequency operations.

Track the entities behind the concepts

DeFi Intel maps 11,000+ protocols, tokens and companies to a typed knowledge graph — with live data, incidents and regulation.

Entities mentioned