Leverage Trade

Overview

Create leveraged long or short strategies giving you greater exposure to potential upside and enabling downside speculation. This strategy enables users to benefit from the differences between the cost of borrowing and the expected profit generated from the borrowed liquidity.

Strategy Building Blocks

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

Flash Loan
  • Create a flash loan for the asset token.

    • Longs: Asset token is the token which you are bullish on.

    • Shorts: Asset token is a stable token with debt being the token you are bearish on.

  • The amount that you can flash loan will be dependent on the maximum collateralization ratio for your selected lending pool (i.e. collatRatio=valueflashLoanvalueinitiaclCollateral+valueflashLoan\text{collatRatio}=\frac{value_\text{flashLoan}}{value_\text{initiaclCollateral}+value_\text{flashLoan}} ).

  • If there is no existing flash loan market for either your asset token, you will have to add an additional Swap Building Block per below.

Swap
  • This is an optional block in the case where there is no flash loan market for your asset token.

  • Swap the flash loaned token for your target asset token.

Lend
  • Add the newly acquired asset tokens to the target lending pool as collateral.

Borrow
  • Borrow the flash loan debt amount.

  • If the debt and flash loan token differs, you will need to add an additional swap step per below.

Swap
  • Swap the debt token for the flash loan token.

  • The flash loan debt will be automatically deducted from your strategy.

Last updated