DeFi

Liquidation Bonus

Liquidation bonus is the extra collateral value paid to liquidators for repaying unhealthy debt.

Liquidation bonus is the discount or reward liquidators get for closing risky debt.

Liquidation Bonus Explained in Detail

Liquidation bonus rewards liquidators for repaying unhealthy debt. A liquidator repays part of a borrower's debt and receives collateral worth slightly more than the repayment.

The bonus compensates for gas, slippage, and market risk.

Smart contract example

collateral seized = repaid debt value * (1 + liquidation bonus)

Protocol fees and close factors may adjust the final amount.

Liquidation Bonus in Auditing

Liquidation bonus must be large enough to make liquidations happen, but not so large that it over-seizes collateral or creates toxic incentives.

Auditors review liquidation math at boundaries and under stress.

Red flags in code

  • Bonus is applied twice.

  • Basis points, wad, or ray scaling is wrong.

  • Protocol fee and liquidator bonus are mixed up.

  • Seized collateral can exceed the user's available collateral unexpectedly.

  • Rounding lets liquidators seize too much in dust positions.

How to test or review it

  • Test partial and max liquidation paths.

  • Compare seized collateral value against repaid debt plus configured bonus.

  • Fuzz collateral and debt token decimals.

  • Test close-factor and dust boundaries.

  • Mock oracle price changes during liquidation.

Sources