Skip to main content
Blockfront

Crypto markets, protocols and policy

Self-liquidate DeFi loan vs liquidation near 1: compare the cost

Self liquidate a DeFi loan vs let it get liquidated: repaying yourself usually costs less, because liquidation takes a bonus from collateral on the repaid slice.

Blockfront Editorial

3 min read

Self-liquidate DeFi loan vs liquidation near 1: compare the cost

Closing or partly repaying a SparkLend loan yourself usually costs less than liquidation: you pay gas, and a swap spread only if you sell collateral, while a liquidator takes a bonus from seized collateral. For a very small position, gas can exceed the penalty on the slice that would be liquidated.

Under Aave V3 rules, liquidation is allowed when the health factor falls below 1. To bring it back above that threshold, repay enough debt to restore the health factor; the practical advice is to check your position on SparkLend and compare the transaction gas with the penalty on the amount at risk.

Compare the costs and control

Self-repayment avoids the liquidation bonus; liquidation charges that bonus only against the slice the liquidator closes. Under Aave V3’s close factor, a liquidator can repay up to 50% of debt in one call, or 100% when the health factor is below 0.95. SparkLend sets each collateral asset’s bonus through governance.

Say a liquidator repays 2,000 DAI at a 5% bonus. They take WETH worth 2,100 DAI, so you lose 100 DAI of collateral value beyond the debt cleared. Repaying the same amount yourself costs gas; selling collateral to get the DAI can add swap spread.

Repaying only enough to restore the health factor can limit the cash needed now. The repayment reduces your debt, while the transaction costs gas; the liquidation penalty applies only if a liquidator closes a slice.

Adding collateral keeps the loan open without a liquidation penalty, but ties up more funds and leaves the debt in place. Repayment shrinks the loan and its risk. Liquidation also gives you no control over when it happens or which collateral asset is taken.

Which exit fits your position?

Choose based on the funds you have, transaction costs and whether you need control over the collateral sold.

  • Partial repay: Best when you hold the borrowed asset, such as DAI. Repay enough to restore the health factor; you need funds for that debt reduction and gas, but avoid a bonus on the repaid slice.
  • Add collateral: Suits borrowers without spare borrowed assets who can supply more collateral. It avoids the penalty but commits additional funds while keeping the loan open.
  • Full close: Suits borrowers who want to remove the debt and its liquidation risk. You need the full repayment amount, plus gas and any swap spread if you sell collateral.
  • Let it be liquidated: Consider this only when gas exceeds the bonus on a tiny liquidated slice. Otherwise, a liquidator’s collateral penalty makes this the costlier exit.