Skip to content

Moving a loan

There’s no tool for moving a loan, and none is needed: it takes the same steps you’d use to open and close any loan. This page sets them out, and says how much collateral you need while both loans are open.

Ergo has no flash loans: nothing lends you money for the length of one transaction. So you can’t close the old loan and open the new one in a single step. For a short while you’ll have two loans open, or you’ll repay the old one from your own money first. Each step is an ordinary transaction you sign, and each can be retried.

  • What you owe. Kadia Lending lends one asset per pool. If you owe an asset a Kadia pool lends, you can borrow that asset on Kadia to repay. If you owe something else, you can borrow an asset Kadia lends and swap it on a DEX for what you owe. See the pools and what they lend.
  • Your collateral. Each Kadia pool accepts certain collateral, each with its own maximum loan-to-value. The same page lists them, and Loan-to-value and liquidation explains the levels.
  • How much you’ve borrowed against it. Kadia’s maximum loan-to-value may be lower than what your current loan allows. If your loan is above Kadia’s maximum, you’ll need to add collateral or repay part first.

If nothing Kadia lends can be swapped for what you owe, the loan can’t move this way. Repay it from your own funds instead (below).

Way 1: repay from your own funds, then borrow on Kadia

Section titled “Way 1: repay from your own funds, then borrow on Kadia”

The simplest, if you have the money.

  1. Repay your current loan in full. Your collateral comes back to your wallet.
  2. On Kadia Lending, open a loan: lock that collateral and Borrow.

You need the full amount you owe, for the time between steps 1 and 2.

For when you don’t have the money to repay.

  1. On Kadia Lending, open a loan with collateral you hold in your wallet, and Borrow what you need to repay. If Kadia doesn’t lend the asset you owe, borrow one it does and swap it on a DEX for the one you owe.
  2. Repay your current loan in full. Your old collateral comes back to your wallet.
  3. Add that collateral to your Kadia loan, or keep it.

The catch: in step 1, your old collateral is still locked in the old loan. So you need extra collateral in your wallet for a while, enough to borrow what you owe on Kadia.

To borrow an amount D, at a maximum loan-to-value M for your collateral, you need collateral worth at least:

collateral needed = D / M

For example, with a maximum loan-to-value of 70% (ERG collateral, a launch parameter), borrowing the equivalent of 1,000 USE needs ERG worth at least about 1,429 USE. Borrow less than the maximum to keep a margin: a loan at its maximum can be close to liquidation if prices move. The lending app shows the exact maximum for each collateral, and how far the price can move before liquidation.

A swap in step 1 also costs its fee and price impact. Borrow a little more than you owe to cover them.

If you don’t have enough extra collateral for Way 2, repeat it in parts:

  1. Borrow part of what you owe on Kadia, and swap it if needed.
  2. Repay that part of your current loan, if your current lending protocol allows a partial repayment.
  3. Take back the collateral that part freed, and add it to your Kadia loan.
  4. Repeat until the old loan is repaid.

It needs less extra collateral, but more transactions, and the old loan’s terms apply until it’s fully repaid.

  • Check both loans’ health at every step. While both are open, a price move affects both.
  • Fees. Each transaction has a miner fee, and each swap a DEX fee.
  • Nothing is undone automatically. If you stop halfway, you have two loans until you repay one. Both stay yours to manage.