Skip to main content
Your margin account is a Soroban smart contract that only you control. It holds your collateral, everything you borrow, and anything you swap or farm with it. One health factor covers the whole account.
Margin page with Leverage your Assets, Repay Loan and Transfer Collateral tabs, a 10 XLM deposit from the wallet balance, Add Collateral, a Single Borrow / Dual Borrow toggle, a BLUSDC borrow with Max Value, a 1x to 10x leverage slider set to 2, and on the right Margin Account Info (Total Borrowed value, Net Available Collateral, Total Value, Net Health Factor 1.82, Net Borrow Rate 3.78%) and a Liquidation card showing 1.82 Safe, liquidation at 1.10 with a dollar buffer

The Margin page: the Leverage your Assets tab on the left, Margin Account Info and the Liquidation card on the right. Click the image to zoom.

The three tabs

Leverage your Assets

Deposit collateral and borrow in one go, with Single or Dual Borrow and a 1x to 10x slider.

Repay Loan

Pay back a loan from the margin account’s own balance.

Transfer Collateral

Move tokens between your wallet and the margin account.

The right column

Positions

Positions section with Current Positions and Positions History tabs showing one Account: Collateral 4,745.10 XLM and 399.95 BLUSDC, an Account value node of $2,532.42 with Interest accrued $1.73 and Borrow rate 3.78%, Borrowed 4 assets (SOUSDC 76% of debt, XLM 23%, AQUSDC 1%, BLUSDC 1%) each with a Repay button, and a footer saying Borrowed money is in Farm $579.18 and Idle $747.47

Current Positions: collateral on the left, loans on the right with Repay, and where the borrowed money is now. Click the image to zoom.

Current Positions shows the whole account as one map, because every deposit backs every loan:
  • Collateral: what you deposited (borrowed tokens sitting in the account aren’t counted twice).
  • Account value: total holdings, with Interest accrued and the Borrow rate.
  • Borrowed: each loan, its share of total debt and a Repay button that opens the Repay tab on that asset.
  • Borrowed money is in: where the borrowed funds sit now, Farm (deployed to Blend or LP) or Idle (in the account).
Positions History lists your margin transactions, each linked to Stellar Expert.

Start here

1

Open an account

2

Deposit and borrow

3

Use the funds

Swap or farm, then watch your health factor.
At or below a Health Factor of 1.1, a priced account with debt is a liquidation candidate. The current liquidation path transfers remaining collateral to the liquidator; it does not automatically close the SmartAccount.