Asset Switching

Overview

Switch the lending provider or collateral token underlying your borrow position in a single transaction. This strategy provides you with the opportunity to benefit from higher supply interest across lending markets or the relative price increase of the new collateral token. This strategy assumes you have an existing borrow position.

By utilizing a flash loan, you can easily asset switch 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 asset switching.

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.

Withdraw
  • Withdraw all of your collateral token from the lending pool.

Swap
  • Exchange all of your withdrawn collateral token for the new target collateral token.

Lend
  • Lend all of the newly swapped collateral tokens to the target lending market.

  • The tokens which you can borrow will be determined by the underlying lending market.

Borrow
  • Select the new debt token.

  • Input a borrow amount which deducts the accrued interest from previous position and includes an additional buffer for any price fluctuations.

  • If your flash loan token differs from the new debt token, add an additional Swap Building Block to exchange borrowed tokens for flash loan tokens.

Last updated