Skip to content

Kadia Lending: what happens in a liquidation

Anyone may liquidate a loan once its LTV reaches its collateral’s liquidation threshold. It doesn’t depend on Kadia or any particular bot.

  • The latest confirmed price on an up-to-date feed, for both the collateral and the debt.
  • A large move the oracle is still holding for confirmation isn’t used. After a fast move, a liquidation waits one more confirmed round.
  • On an out-of-date feed, liquidations are refused until it’s fresh again: “oracle stale”, never “safe”.
  • Partial first. A liquidation repays just enough of your debt to bring the loan back to its maximum LTV, after the liquidator’s bonus.
  • The bonus comes from your collateral. It rises with how far past the threshold the loan is, between a minimum and a maximum per collateral. On testnet:
    • 3% to 10% for ERG collateral (and tUSE collateral in the ERG pool);
    • 5% to 12% for the bridged coins in the tUSE and ERG pools;
    • 3% to 10% in the tBTC and tADA pools.
  • In steps. A liquidator may repay part of that amount at the same bonus. Every step must reduce your debt.
  • No protocol fee. The whole bonus goes to the liquidator.

If a partial liquidation can’t bring the loan back, the loan is closed. The liquidator repays the debt and takes that debt’s worth of collateral plus the bonus. The rest of your collateral comes back to you, in the same transaction, along with a token loan’s ERG deposit.

Two exceptions:

  • Bad debt. If the collateral doesn’t cover the debt, the liquidator takes it all, and the rest of the debt is written off. The pool’s reserve absorbs it first, then every lender’s share value. There’s no insurance and no backstop.
  • Dust. A remainder too small to send goes to the liquidator.

While a loan is liquidatable you can still Repay or add collateral to bring it back. Neither reads a price warning.

Technical details

Source: kadia-lending main at commit a7bea30 (a7bea306537ae4ca4fb2a5ad1c4ff473127099eb, with the final review’s fixes): docs/specs/economic-model-v1.md (EM v1), the prototype’s docs/specs/economic-model.md (EM) for what v1 keeps, and testnet relaunch 2’s launch manifest for the testnet figures: its config, sha256 8f18494e… (8f18494ec1c6d4d44529e53025ac55e28ff1c4a5a8288144a736b6df604a8e9f), from kadia-lending deploy/v1-relaunch2 at 59f43eb, as the lending app pins it.