Jump to content
Onchain Report

Crypto news from every chain

DeFi Lending Liquidation: Debt Repayment and Collateral

How does liquidation work in DeFi lending? A liquidator repays eligible debt and takes collateral with a bonus, restoring coverage while exposure may remain.

Onchain Report Newsroom#5007e22 min read

DeFi Lending Liquidation: Debt Repayment and Collateral

DeFi lending liquidation lets a liquidator repay some or all of an eligible borrower’s debt and take collateral plus a bonus. It rewards restoring lender coverage when collateral no longer adequately covers the debt.

To see how liquidation works, follow the health factor, the repayment and collateral transfer, and the debt that remains afterward.

How liquidation works

An oracle values a borrower’s collateral and debt to calculate the health factor: collateral value multiplied by the market’s liquidation threshold, divided by debt value. Below 1, the position can be liquidated. A fall in collateral prices or a rise in debt value can push the factor below that point.

A liquidator repays eligible debt, and the protocol transfers collateral worth more than the amount repaid. That extra value is the liquidation bonus, which rewards the liquidator. The bonus and the amount repayable in one call depend on market rules.

A lending market lets users supply collateral and borrow other listed assets against it. SparkLend adds a practical setting for checking health and taking steps such as repaying debt or adding collateral.

An illustrative position before and after liquidation

Imagine a position with $10,000 of collateral, $8,000 of debt and a 75% liquidation threshold. Its health factor is $10,000 × 0.75 ÷ $8,000, or 0.9375, so it is eligible for liquidation.

Suppose a liquidator repays $1,000 and receives $1,050 worth of collateral, including a 5% bonus. Afterward, the same position has $8,950 of collateral and $7,000 of debt. Its health factor is about 0.959. The borrower still has collateral and debt, and the position remains below 1.

The close factor sets how much debt can be repaid in one liquidation call. Because this partial liquidation leaves the health factor below 1, another call may be allowed, subject to the market’s limits. Remaining debt keeps accruing, so the borrower’s exposure continues and further liquidations may follow. A liquidation can therefore remove part or, where rules allow, all of a position.

Related questions

Can DeFi liquidation be reversed?

Finalized liquidations have no standard undo operation. The collateral transfer and debt repayment have already changed the position.

Are liquidation bots always profitable?

No. Gas, competition and the cost of selling collateral affect whether a liquidation earns a profit.