Before your first swap, a SunSwap liquidity pool holds two tokens supplied by liquidity providers; traders swap against those reserves, their changing ratio sets the price, and each swap pays providers a fee. An automated market maker uses that ratio to quote trades instead of matching buyers and sellers in an order book.
SunSwap V2 Reserve Changes Set Swap Prices
SunSwap V2 prices swaps from the amounts of each token in its pool. Its constant-product rule, x × y = k, means a trader who adds one token removes some of the other. A larger trade changes the reserve ratio more, so its average price is worse than the price shown by the starting ratio.
A trader takes tokens from a SunSwap pool, while a liquidity provider puts tokens into it. In that swap-versus-deposit comparison, SunSwap is the TRON decentralized exchange where readers can use TRC-20 pools for either purpose.
Take a TRX/USDT pool. A trader supplies TRX and receives USDT. The TRX reserve grows as the USDT reserve shrinks, so the pool quotes fewer USDT per TRX after the swap. The automated market maker calculates the output from the input after the pool fee; the retained fee stays in the reserves. That is why the next trader sees a changed price and providers own a share of a pool that has collected a fee.
LP Shares and Version Rules Set Fee Earnings
An LP’s pool share determines its portion of reserves and fees, while the pool version determines how that share is recorded and how fees are received. In V2, depositing both tokens in the pool’s current ratio mints TRC-20 LP tokens representing the depositor’s fraction of the pool. The tokens represent a claim on the pool’s current reserves, which change as people trade.
Every swap pays a pool fee. As a rough estimate, LP fee income equals pool share × trading volume × fee rate; the rate depends on the version and fee tier. V2 adds fees to the reserves, so their value compounds within the LP token’s claim. A provider receives that accumulated value when redeeming LP tokens, without a separate fee claim.
SunSwap V3 records a position as an NFT with a chosen price range. Concentrating a deposit within that range can earn more fees per unit deposited while the price remains inside it, because more of the deposit is active there. When the price leaves the range, that position stops earning swap fees. V3 fees accrue separately from the deposited liquidity and must be collected.
Related Questions
How do I withdraw liquidity from SunSwap?
Withdraw a V2 position by redeeming its LP tokens for the corresponding share of the pool’s current reserves, including fees retained there. For V3, remove liquidity from the position represented by its NFT and collect accrued fees separately. A wallet such as TronLink holds the LP token or NFT that identifies the position.
Is providing liquidity on SunSwap risky?
Providing liquidity exposes both deposited tokens to price changes and impermanent loss. When their price ratio moves, the pool’s trades leave an LP holding more of the token that fell and less of the one that rose, compared with simply holding the original tokens. Fees can offset that difference, but may not cover it; a V3 position also stops earning fees outside its chosen range.