Skip to main content

App

This page explains the current Untangled Loop trading UI (example: opening a short XLM position).

loop_landing.png

Trade builder (left panel)

loop_trade_left.png

Pair and direction

  • Pair: XLM/USDC
  • Direction: Short (profit when XLM price decreases)

Inputs

  • Amount: your margin input
  • Leverage slider: sets effective leverage (constrained by money market parameters)
  • Slippage tolerance: affects swap min-output protections

Key previews

  • Mark price: reference pricing for health/liquidation context
  • Estimated entry price: implied execution price for the swap leg
  • Position size
  • Health factor / liquidation buffer (risk proxy)
  • Swap output
  • Price impact (spot execution impact)

Action

  • Approve token (if needed)
  • Submit trade

Transaction preview (right panel)

loop_trade_overview.png

The UI decomposes the single atomic transaction into steps:

  1. Flash loan
    Borrow XLM (or USDC depending on long/short) from Blend Pool.

  2. Swap
    Execute Aquarius route (1 hop or multi-hop).

  3. Supply collateral
    Deposit swapped asset as collateral on Blend.

  4. Borrow
    Borrow the opposite asset to form the position’s debt.

  5. Repay flash loan
    Complete the flash loan repayment in the same transaction.

This preview is meant to make the mechanics explicit: your “position” is just collateral + debt on Blend.

Estimated position box

Shows the post-trade state:

  • Collateral asset + amount
  • Debt asset + amount
  • Net equity estimate
  • Effective leverage estimate

Rates & liquidation

loop_trade_right.png

The UI surfaces:

  • Supply APR (collateral leg)
  • Borrow APR (debt leg)
  • Liquidation price + buffer

These values can change with utilisation and market conditions.