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: If 1 USDT = 1.0000 USDC, that’s 99.97 USDTDocumentation Index
Fetch the complete documentation index at: https://unevenlabs-ted-int2-315-update-deposit-address-docs-for-non.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
If 1 USDT = 0.9995 USDC, that’s 100.02 USDT
If 1 USDT = 1.0005 USDC, that’s 99.92 USDT
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: If 1 USDT = 1.0000 USDC, that’s 100 USDT outIf 1 USDT = 0.9995 USDC, that’s 100.05 USDT out
If 1 USDT = 1.0005 USDC, that’s 99.95 USDT out
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: If 1 USDT = 1.0000 USDC, user gets 100 USDT, you sponsor $0.03If 1 USDT = 0.9995 USDC, user gets 100 USDT, you earn $0.02
If 1 USDT = 1.0005 USDC, user gets 100 USDT, you sponsor $0.08 Effectively, you absorb the volatility, sometimes sponsoring, and sometimes earning fees, with the idea that it nets out over a long time period. Of course, during periods you are sponsoring, you need to be careful that it’s not being arbitraged. If you want, you can set rates other than 1:1. E.g. if you set it to 1:1.0005, then you are effectively setting the price to 5bps, and only sponsoring when the market rate + fees is above that. The rate is expressed as “input:output”. If 1 USDT = 1.0000 USDC, user gets 99.95 USDT, you earn $0.02
If 1 USDT = 0.9995 USDC, user gets 99.95 USDT, you earn $0.07
If 1 USDT = 1.0005 USDC, user gets 99.95 USDT, you sponsor $0.03 Fixed rates is supported for the following tokens: USDC, USDC.e, USDT, USDe, USDH, mUSD, DAI.