Price Stabilization - Relay

Price Stabilization

Price Stabilization gives you two mechanisms for stablecoin swaps: fee sponsorship, where you cover transaction fees so the user receives the full market-rate output, or fixed rates, where you lock in a specific exchange rate (e.g. 1:1) and absorb the volatility yourself.

Stablecoins don’t actually trade at 1:1. When users swap between stablecoins cross-chain, the output fluctuates based on market rates, swap impact, and fees. For a $100 USDC-to-USDT swap, even small deviations from peg mean the user might receive 99.95 or 100.05 USDT instead of a clean 100. With fixed rates, you sometimes sponsor and sometimes earn the difference, with the expectation that it nets out over time. For a cross-chain swap between major stablecoins, the cost is roughly: $0.02 + 1bps. For $100 USDC input, the user would get $99.97 worth of USDT.

This is on top of the market rate for the pair:

Price Stabilization Options

Relay supports multiple options for stabilizing prices for better UX:

Fee Sponsorship

With sponsorship, you cover the fees. So for $100 USDC in, the user gets $100 USDT out, and you cover the $0.03 in fees. Importantly, this doesn’t mean the user gets 1:1 in our USDC:USDT example:

Request

curl --request POST \
  --url https://api.relay.link/quote/v2 \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: my-api-key' \
  --data '\
{\
  "user": "0x03508bb71268bba25ecacc8f620e01866650532c",\
  "originChainId": 8453,\
  "destinationChainId": 42161,\
  "originCurrency": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",\
  "destinationCurrency": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",\
  "amount": "100000000",\
  "tradeType": "EXACT_INPUT",\
  "subsidizeFees": true\
}\
'

Fixed Rates

If your goal is to give the user 1:1, you can use fixed rates. In this case, the user would always get 100 USDT, and you would sponsor a dynamic amount. If USDT is worth less than USDC, you actually would earn the difference as fees:

Effectively, you absorb the volatility, sometimes sponsoring, and sometimes earning fees, with the idea that it nets out over a long time period.

Why This Works for Stablecoins

Stablecoin pairs are uniquely suited to price stabilization because the swap impact component of Relay’s fees is typically sub 1bps between major stablecoins. That leaves the flat execution fee (~$0.02) and the Relay bps fee as the dominant costs — both small, predictable amounts that are cheap to sponsor or absorb into a fixed rate.