Liquidation · DeFi

On this page 7

Liquidation in DeFi is the automatic, forced sale of a borrower’s collateral by a smart contract lending protocol when the value of that collateral no longer covers the debt with a sufficient safety margin. It is the mechanism that keeps overcollateralized lending solvent in crypto & blockchain markets: instead of a court or a collection agency, anyone can repay part of the debt and receive the collateral at a discount.

Protocols such as Aave, Compound and MakerDAO rely on liquidation because they lend without credit checks or legal recourse. The only protection for lenders is collateral that exceeds the loan, and liquidation enforces that protection the moment market prices move against the borrower.

How DeFi liquidation is triggered and executed

A liquidation starts when a position crosses the protocol’s liquidation threshold. Each collateral asset has a parameter, for example 80 percent, that defines how much debt it can safely support. The protocol combines these values into a health factor: the threshold-weighted collateral value divided by the debt value. A health factor below 1.0 makes the position eligible for liquidation.

Prices come from a blockchain oracle, typically an aggregated feed such as Chainlink. Once a position becomes unhealthy, the protocol does not act by itself. External actors called liquidators, usually automated bots, call the liquidation function, repay part of the borrower’s debt and receive collateral worth more than they paid.

  1. The oracle reports a lower collateral price or higher debt value.
  2. The borrower’s health factor drops below 1.0.
  3. A liquidator submits a transaction that repays a permitted share of the debt.
  4. The protocol transfers collateral plus a liquidation bonus to the liquidator.
  5. The borrower keeps the remaining collateral and the reduced debt.

Key liquidation parameters

Governance sets a handful of risk parameters for each collateral asset, and together they decide how early, how much and how expensively a position is liquidated. The ranges below are typical for major lending markets and vary with asset volatility and liquidity.

ParameterTypical rangeWhat it controls
Loan-to-value (LTV)50 to 80 percentMaximum borrowing when opening a position
Liquidation threshold65 to 85 percentPoint at which liquidation becomes possible
Liquidation bonus4 to 15 percentDiscount that rewards the liquidator
Close factor50 to 100 percentShare of debt repayable in one liquidation
Liquidation penalty (vault systems)About 13 percent in some vaultsExtra charge added to the borrower’s debt
Core parameters in lending protocols

The gap between the LTV and the liquidation threshold is the borrower’s buffer against volatility. Volatile assets receive lower thresholds and higher bonuses, because liquidators need a larger incentive to absorb price risk when selling them.

Liquidation models across protocols

Not every protocol liquidates in the same way. The main designs differ in how collateral is sold and how the price is discovered, which affects both borrower losses and the risk of bad debt for the protocol.

ModelHow it worksStrengthWeakness
Fixed-discount liquidationLiquidator buys collateral at a set bonusFast and simpleCan overpay liquidators in calm markets
Dutch auctionCollateral price falls over time until a buyer acceptsMarket-driven price discoverySlower in rapid crashes
Soft liquidationCollateral is gradually converted within a price bandAvoids sudden large lossesOngoing conversion cost and complexity
Backstop poolA pool of depositors absorbs liquidated positionsDoes not depend on external botsPool capacity can run out
Common liquidation mechanisms

MakerDAO, the issuer of Dai, moved from English to Dutch-style collateral auctions after network congestion in March 2020 allowed some bidders to win collateral for nearly zero. That event remains a reference case for auction design failures under stress.

The economics of liquidators and flash loans

Liquidation is a competitive business. Bots monitor every position and race to submit the first valid transaction, often paying high priority fees or using private transaction channels. The profit equals the liquidation bonus minus gas and slippage costs, so small positions may remain unliquidated when gas prices are high.

Flash loans lower the barrier to entry. A liquidator can borrow the repayment asset, liquidate, sell the collateral and repay the flash loan inside one transaction, without holding capital in advance. This makes liquidations more reliable but also intensifies competition and the extraction of MEV, since block builders can reorder or capture these profitable transactions.

For the protocol, this competition is beneficial as long as liquidators act before collateral falls below the debt value. If they cannot, the shortfall becomes bad debt, which is covered by reserves, insurance modules or, in the worst case, losses for lenders.

Risks and common borrower mistakes

Liquidation risk comes from price volatility, oracle behavior and borrower decisions. Many borrowers underestimate how quickly a position can move from safe to liquidated during a market crash. The following table connects frequent mistakes with their causes and remedies.

MistakeCausePrevention
Borrowing near maximum LTVSmall price drop crosses the thresholdKeep the health factor well above 1.5
Correlated collateral and debt ignoredBoth legs move in ways that shrink the bufferPrefer stablecoin debt against stable collateral
No monitoring during volatilityPosition deteriorates while the owner is offlineUse alerts or automated deleveraging tools
Relying on last-minute top-upsNetwork congestion delays the rescue transactionAdd collateral early, not at the threshold
Typical mistakes that lead to liquidation

Systemic risks matter as well. Cascading liquidations occur when forced sales push prices lower and trigger further liquidations. A depeg of a collateral asset, a stale or manipulated oracle feed, or thin market liquidity can all turn routine liquidation into a protocol-wide solvency event.

Put simply

In DeFi, people borrow by locking up crypto worth more than the loan, much like leaving a valuable item at a pawnshop. If the item loses value and no longer safely covers the loan, the system sells part of it automatically to pay the lender back.

Nobody calls or sends a warning letter. A computer program checks prices around the clock, and as soon as the safety line is crossed, other participants can step in, repay part of the loan and buy the locked crypto at a small discount. The lesson for borrowers is simple: borrow well below the maximum and keep an eye on prices.

In practice

A borrower deposits 10 ETH, worth 30,000 dollars at 3,000 dollars per ETH, into a lending protocol with a liquidation threshold of 82.5 percent, and borrows 20,000 dollars in a stablecoin. The health factor is 30,000 multiplied by 0.825 divided by 20,000, or about 1.24.

Overnight, ETH falls to 2,400 dollars. The collateral is now worth 24,000 dollars, and the health factor drops to 0.99. Within seconds, a liquidation bot uses a flash loan to repay 10,000 dollars of debt, the maximum allowed by a 50 percent close factor, and receives ETH worth 10,500 dollars, including a 5 percent bonus. The borrower ends with 5.625 ETH and 10,000 dollars of debt, a healthy position again, but has lost 500 dollars to the liquidation bonus. Keeping the initial health factor near 2.0 would have avoided the event entirely.