Skip to the article
Chain Today

Reporting on crypto's moving parts

SunSwap token swaps and liquidity pools

SunSwap is used to swap TRC-20 tokens through liquidity pools on TRON, and to provide token pairs that earn a share of the fees paid by swaps.

The Chain Today Desk3 min read

SunSwap token swaps and liquidity pools

SunSwap is a TRON decentralized exchange for swapping TRC-20 tokens through liquidity pools and depositing token pairs to earn a share of swap fees. The SunSwap site is where you use the exchange for either job. Each swap pays a fee to the pool, so traders use it to exchange tokens while liquidity providers supply the tokens those trades need.

What does SunSwap do when you trade TRC-20 tokens?

The exchange swaps one TRC-20 token for another against a pool, using the pool’s available tokens to set the trade. A pool is like a shared reserve: traders draw one token from it and add another. Its rate can differ from the price you last saw on a centralized exchange because it reflects the pool and the trade taking place.

Say you hold USDT and want TRX. You choose the pair and the amount to trade. Before the swap can use your USDT, you grant the token approval from your self-custody wallet, such as TronLink. An approval gives the exchange contract permission to use the approved token; it is a separate action from making the swap.

You also set slippage tolerance: the amount the execution price can move from the quoted rate before the trade is rejected. A tighter setting can prevent a trade from completing when the pool price moves. A loose setting allows a larger price change and may mean you receive less than expected. Check the token address and the trade details before approving or confirming. A wrong token address or an overly loose slippage setting can cost you directly, and support cannot reverse a mistaken transaction.

SunSwap V2 and SunSwap V3 are version names to pay attention to when identifying a pool or liquidity position. V3 uses concentrated liquidity: a provider chooses a price range, and their liquidity earns fees only while the price is within that range. That range adds a condition to managing the position; it does not change the basic purpose of a swap, which is to trade against pool liquidity.

How does providing liquidity earn fees, and what do you manage?

Liquidity provision is for holders willing to deposit both tokens in a pair and manage the resulting position. The pool uses those deposits to serve swaps. In return, liquidity providers earn a share of pool fees in proportion to their share of the pool. The amount earned depends on swaps and on the provider’s share; it is not a fixed return.

Take a USDT/TRX pool. A provider deposits both tokens and receives a position representing their contribution. When traders swap against that pool, fees accrue to its liquidity providers according to their shares. This is different from simply holding USDT and TRX: the deposited amounts participate in a pool whose balance changes as trades happen.

That changing balance creates impermanent loss. It describes how a pool position can be worth less than holding the same tokens outside the pool when their relative prices change. The loss is called impermanent because the comparison can change again as prices move, but it is still a risk to track. In V3, providers also need to monitor their chosen price range: if the price moves outside it, the position stops earning fees until it is back in range or the provider adjusts it.

Use the exchange to swap when you want to trade one TRC-20 token for another and are prepared to manage approvals and slippage. Consider providing liquidity only if you are also prepared to track pool fees, impermanent loss and, for V3, the position’s price range.