Skip to content
Mango Markets logoMango

Mango Markets swap

Swap any token, with up to 5x leverage

The Mango swap screen looks like any other DEX swap. Under the hood it checks the Mango order book and the major Solana pools, picks the cheapest route, and can borrow extra size for you in the same transaction using a flash loan.

Swap

Max slippage 0.5%

You pay

You receive

48.0556

Rate
1 SOL = 20.84 USDC
Borrowed via flash loan
0 USDC
Health impact
100% → 100%
Route
Mango book → Aggregated AMMs

How a leveraged swap actually works

Say you hold 1,000 USDC and want 3x exposure to SOL. On most platforms that takes several steps: deposit, borrow, swap, deposit again. Each step is a separate transaction and you pay slippage and fees on all of them.

Mango folds that into one action. A flash loan borrows the extra 2,000 USDC, the swap runs, the resulting SOL lands in your account as collateral, and the loan becomes a normal borrow against it. If any part fails, the whole thing reverts and nothing changes. You sign once.

The result is a position of roughly 3,000 USDC worth of SOL, a 2,000 USDC borrow, and an account health figure you can watch in real time. Your SOL still earns deposit interest while you pay the USDC borrow rate on the loan.

What happens in that single transaction

  1. 01Flash loan pulls the extra amount from the lending pool
  2. 02Router splits the order across the cheapest venues
  3. 03Purchased tokens are deposited to your Mango account
  4. 04Flash loan is repaid, leaving a regular borrow on your account
  5. 05Health check runs and the transaction confirms or reverts

Slippage

Picking a slippage setting

Slippage is the worst price move you'll accept between quote and fill. Tighter is safer, looser fills more often.

SettingTypical useTrade-off
0.1%Stablecoin pairs, USDC to USDTMay fail in fast markets
0.5%SOL, ETH, BTC and other majorsGood default for most swaps
1%Mid-cap Solana tokensSmall extra cost, fewer failed swaps
2% to 3%New or thin tokensUse only when you accept the price risk

When traders use Mango swap

Fast directional bets

You like a token and want 2x without opening a perp. Swap with leverage and close the same way.

Rebalancing

Shift a portfolio from SOL to stablecoins in one step. Your health score updates as you go.

Collateral swaps

Move collateral from one token to another without closing positions that depend on it.

One click, best route, optional leverage

Connect your wallet and try a small swap first. You'll see the route and health impact before you sign.