Debt Switching

Overview

Switch your debt token for an existing loan in a single transaction. This strategy provides you with the opportunity to benefit from lower borrow interest or relative devaluation of the newly borrowed token.

By utilizing a flash loan, you can easily switch your debt without having to source the required capital to repay your initial loan. Depending on the flash loan token available, you might need to add additional swap blocks to account in differences between tokens that are flash loaned, repaid, and borrowed. Your tokens are immediately swapped at the best available rates ensuring minimal slippage when switching your debt.

The maximum amount that you can borrow is determined by the collateralization ratio of the underlying lending pool. Please pay attention to the health factor of your position when borrowing to ensure that you do not lose funds through forced liquidations. Your position can be liquidated if the value of your debt exceeds the collateral value.

Strategy Building Blocks

The building block order mirrors the Factor Studio UI and can be expanded for further strategy details and parameters.

Flash Loan
  • Flash loan the debt token to be repaid in full.

  • If there is no flash loan market for your debt token, you will need to add a Swap Building Block and flash loan the value of your debt to be swapped.

Repay
  • Repay the full amount of debt owed.

Borrow
  • Select the new debt token.

  • Input a borrow amount which includes a buffer for any price fluctuations.

Swap
  • If the new debt token is different from the flash loan token, initiate a swap to exchange all of the newly borrowed tokens for flash loan tokens.

Last updated