StableSwap DEX

How StableSwap works for low-slippage stable trades, and how to swap or provide liquidity safely

This page explains what StableSwap is and how to use the StableSwap DEX for swapping and liquidity provision (LP) with a focus on safety.

circle-info

Not investment advice — DEX usage involves depegs, slippage, and smart contract risk. LP positions can lose value.

At a glance

  • StableSwap is optimized for stable-to-stable (or near-stable) swaps.

  • It aims to reduce slippage compared to regular AMMs, when assets stay near the same price.

  • You can: swap, add liquidity, remove liquidity, and sometimes stake LP (if enabled).

  • Hann Finance’s automation stack can route stable swaps via a pool allowlist (for safety).

One diagram: swap and LP

spinner

Why StableSwap exists

In a typical AMM, swapping $1 of token A into token B can create meaningful price impact if liquidity is thin.

StableSwap designs generally aim to:

  • keep prices closer to 1:1 when both assets remain “stable”

  • reduce slippage for stable pairs

  • provide a dedicated venue for stablecoin liquidity (which is important for stablecoin pegs)

Slippage and minOut (plain explanation)

When you swap, you usually set a minimum amount you are willing to receive (minOut). If the swap would return less, the transaction reverts.

A common way to think about it:

minOutquote×(1slippageBps10,000)minOut \approx quote \times \left(1 - \frac{slippageBps}{10{,}000}\right)

Where slippageBps is slippage in basis points (bps).

circle-exclamation

How to use StableSwap

1

Step 1: Choose the pair and route

For stable assets, prefer StableSwap routes where liquidity is deep.

circle-exclamation
2

Step 2: Set slippage and deadline

Set:

  • a realistic slippage tolerance

  • a short deadline (to reduce MEV / price drift risk)

3

Step 3: Confirm and verify outputs

Double-check:

  • token in/out

  • expected amount out

  • minimum amount out

Safety notes

  • Depeg risk: StableSwap assumes assets stay close in value. If one asset depegs, slippage and LP losses can be severe.

  • Pool selection: Prefer allowlisted pools and official routes.

  • Automation risk: Zappers can simplify, but they also increase composability risk. Understand the manual flow first.

Deep dives (optional)

Next reads

Last updated