Glossary

Stablecoin Swap

A stablecoin swap is the exchange of one stablecoin for another, typically at near-par value through a specialized liquidity pool or DEX.

Key Takeaways

  • A stablecoin swap is the exchange of one stablecoin for another at near 1:1 value, facilitated by specialized liquidity pools or decentralized exchanges optimized for pegged assets.
  • The StableSwap invariant, pioneered by Curve Finance, combines constant-sum and constant-product formulas to minimize slippage on trades between similarly priced assets, offering far better rates than standard AMMs.
  • Stablecoin swaps serve as the backbone of on-chain foreign exchange: users move between different dollar stablecoins (USDC, USDT, DAI) and across chains, with typical fees ranging from 1 to 5 basis points.

What Is a Stablecoin Swap?

A stablecoin swap is a trade that exchanges one stablecoin for another: for example, converting USDC to USDT, or DAI to USDC. Because both tokens target the same peg (typically $1.00), the exchange rate should be very close to 1:1. The challenge is executing these trades with minimal slippage and fees, which is why specialized swap mechanisms exist.

Standard AMM formulas like the constant-product invariant (x × y = k) used by Uniswap v2 are designed for assets with volatile, uncorrelated prices. When applied to stablecoins that trade near parity, they produce unnecessarily high slippage. A $1 million USDC-to-USDT swap on a constant-product pool would move the price significantly, even though both tokens are worth roughly the same. This inefficiency led to the development of specialized bonding curves optimized for pegged assets.

The stablecoin swap market has grown into a critical piece of DeFi infrastructure. Traders, protocols, and institutions regularly swap between stablecoins to meet specific compliance requirements, access different DeFi protocols, bridge across chains, or simply move to the stablecoin with the best yield or deepest liquidity for their use case.

How It Works

Stablecoin swaps rely on AMM pools where liquidity providers deposit two or more stablecoins. When a user wants to swap USDC for USDT, they deposit USDC into the pool and withdraw USDT, with the bonding curve determining the exchange rate. The innovation is in how that curve is shaped.

The StableSwap Invariant

Curve Finance introduced the StableSwap invariant in 2020, specifically designed for assets that trade at similar prices. The key insight is blending two mathematical models:

  • Constant-sum (x + y = k): provides zero slippage at exact parity but fails completely if one asset depegs, because the pool can be fully drained of one token
  • Constant-product (x × y = k): handles depeg scenarios gracefully by always maintaining some of each token, but produces excessive slippage for near-parity trades

The StableSwap formula combines these two approaches using an amplification coefficient (A). When both tokens are near their peg, the curve behaves like a constant-sum, providing very low slippage. As prices diverge from parity, the curve gradually shifts toward constant-product behavior, protecting the pool from being drained.

The simplified StableSwap invariant for a two-token pool can be expressed as:

// StableSwap invariant (simplified two-token form)
// A = amplification coefficient (higher = flatter curve near peg)
// D = total deposit value when pool is balanced
// x, y = token balances

A * (x + y) + D = A * D + D^3 / (4 * x * y)

// When A is very large: behaves like constant-sum (x + y = D)
// When A is zero: behaves like constant-product (x * y = (D/2)^2)

The amplification coefficient A is a tunable parameter set by pool operators. Higher values of A create a flatter curve near the peg point, reducing slippage for small price differences. Typical values range from 100 to 2000 depending on how tightly the assets are expected to maintain their peg. A pool of USDC/USDT might use a high A value since both are fully backed fiat stablecoins, while a pool containing an algorithmic stablecoin might use a lower A to account for greater depeg risk.

Concentrated Liquidity for Stables

Uniswap v3 and v4 take a different approach with concentrated liquidity. Instead of a custom bonding curve, liquidity providers choose a price range to concentrate their capital. For stablecoin pairs, LPs typically concentrate all their liquidity in a narrow band around 1:1 (for example, 0.999 to 1.001), achieving similar capital efficiency to Curve's StableSwap without a specialized formula.

The tradeoff: concentrated liquidity requires active management. If the price moves outside the LP's chosen range, their liquidity becomes inactive and earns no fees. For stablecoin pairs, this risk is low under normal conditions but becomes significant during depeg events.

How a Swap Executes

  1. A user submits a swap request (e.g., 100,000 USDC for USDT) to a pool or DEX aggregator
  2. The smart contract calculates the output amount using the pool's bonding curve, accounting for the swap fee
  3. The user's input tokens are deposited into the pool
  4. The output tokens are sent to the user in the same transaction
  5. The pool's internal balances shift, slightly changing the price for the next trader

Role of Arbitrageurs

Arbitrageurs are essential to keeping stablecoin pools balanced. When a large swap pushes the pool's ratio away from 1:1, arbitrageurs profit by trading the underpriced token back toward parity. If a large USDC-to-USDT swap leaves the pool with excess USDC, arbitrageurs buy USDC cheaply from the pool and sell it at par on centralized exchanges, restoring balance. This continuous process ensures that pool prices track the broader market.

Major Venues

Curve Finance

Curve Finance is the largest venue for stablecoin swaps by volume. Its 3pool (USDC, USDT, DAI) was historically the most liquid stablecoin pool in DeFi. Curve charges swap fees typically set at 0.01% to 0.04% (1 to 4 basis points), among the lowest in DeFi. The protocol also supports metapools, where a new stablecoin is paired against the 3pool LP token, giving it instant liquidity against three major stablecoins.

Uniswap Stable Pools

Uniswap v3 introduced a 0.01% (1 basis point) fee tier specifically for stablecoin pairs. With concentrated liquidity, LPs can compete with Curve's capital efficiency. The USDC/USDT pool on Uniswap v3 routinely handles significant volume with tight spreads.

DEX Aggregators

DEX aggregators like 1inch, Paraswap, and CoW Swap split large stablecoin swaps across multiple pools and protocols to minimize slippage. For a $10 million swap, an aggregator might route portions through Curve, Uniswap, and several smaller pools simultaneously, finding better execution than any single venue.

Cross-Chain Stablecoin Swaps

Moving stablecoins across blockchains combines a swap with a bridge operation. Several approaches exist:

  • Circle's Cross-Chain Transfer Protocol (CCTP): burns USDC on the source chain and mints native USDC on the destination chain, avoiding the need for wrapped tokens entirely
  • Bridge aggregators like Squid Router and Li.Fi route cross-chain swaps through a combination of bridges and DEXs, finding the optimal path from (for example) USDC on Ethereum to USDT on Arbitrum
  • Intent-based protocols match users who want to go in opposite directions, enabling fast cross-chain settlement without traditional bridge delays

For a deeper look at how stablecoins are becoming the on-chain equivalent of forex markets, see Stablecoins as On-Chain Forex.

Why Stablecoin Swaps Matter

Stablecoin swaps solve practical problems that emerge from a fragmented stablecoin ecosystem:

  • Compliance requirements: some platforms only accept specific stablecoins, forcing users to swap between USDC and USDT depending on the venue
  • Chain-specific liquidity: certain DeFi protocols on certain chains have deeper liquidity in one stablecoin over another
  • Yield optimization: users move between stablecoins to access the best yield opportunities, whether from lending protocols, liquidity mining, or yield-bearing stablecoins
  • Risk management: diversifying across multiple stablecoin issuers reduces exposure to any single issuer's depeg risk or blacklist risk
  • On/off-ramp compatibility: different on-ramps and off-ramps support different stablecoins, requiring swaps as part of the payment flow

In the context of Bitcoin Layer 2s like Spark, stablecoin swaps enable users to move between dollar-denominated stablecoins (such as USDB) and other assets efficiently, supporting the growing ecosystem of dollar-denominated payments on Bitcoin infrastructure.

Fee Structure

Stablecoin swap fees are among the lowest in DeFi, reflecting the low-risk, high-volume nature of these trades:

VenueTypical FeeNotes
Curve Finance0.01% - 0.04%1 to 4 bps; pool-specific
Uniswap v3/v40.01% - 0.05%1 or 5 bps fee tier
DEX AggregatorsVariesRoute through cheapest path; may add protocol fee
Circle CCTPNo protocol feeOnly gas costs on source and destination chains
Centralized Exchanges0% - 0.10%Often zero for maker orders on major pairs

These low fees are possible because liquidity providers earn their return primarily from volume rather than per-trade margin. Stablecoin pools generate consistent fee revenue because of steady, high-volume trading activity, even when individual fees are tiny.

Risks and Considerations

Depeg Contagion

The greatest risk in stablecoin swap pools is a depeg event. When one stablecoin in a pool loses its peg, traders rush to dump the depegging token for the healthy one. This rapidly drains the pool of the sound asset, leaving liquidity providers holding almost entirely the devalued token. The StableSwap curve's high amplification coefficient, which provides low slippage near parity, amplifies losses during a depeg because it allows large amounts to be swapped before the price moves significantly.

Impermanent Loss in Stable Pools

Under normal conditions, impermanent loss in stablecoin pools is negligible because both assets stay near the same price. However, if a depeg occurs, impermanent loss can be severe and sudden. LPs in a USDC/UST pool during the UST collapse in May 2022 experienced near-total loss of value as the pool filled with worthless UST.

Smart Contract Risk

Stablecoin swap pools hold large amounts of value, making them prime targets for exploits. Vulnerabilities in the bonding curve math, reentrancy bugs, or oracle manipulation can lead to fund loss. Even well-audited protocols are not immune: the complexity of multi-token pools, metapools, and cross-pool integrations creates a wide attack surface.

Regulatory Considerations

As stablecoin regulation evolves globally, the status of stablecoin swap venues may come under scrutiny. Regulations like the EU's MiCA and the proposed U.S. GENIUS Act focus on stablecoin issuers, but the platforms facilitating stablecoin exchange may face additional compliance requirements depending on jurisdiction.

Liquidity Fragmentation

As the number of stablecoins and supported chains grows, liquidity becomes fragmented across dozens of pools and networks. Liquidity fragmentation means that no single pool may have sufficient depth for very large trades, increasing reliance on aggregators and cross-chain routing.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.