Liquidity pool token prices: How reserves set a quote
Liquidity pools set token prices through reserve ratios and a pricing curve; trade size, fees and active liquidity shape the swap quote you receive on TRON.
The Finality Desk5 min read#6b840d

A liquidity pool sets its starting token price from the ratio of its reserves, then its pricing curve changes that price as a swap moves tokens in and out. In SunSwap V1 and V2, the constant-product rule governs that curve: a larger trade takes more of the available output token, so its average execution price moves further from the starting price.
- The reserve ratio gives the pool’s marginal price before a trade.
- The constant-product rule updates that price as reserves change.
- Trade size and the pool fee affect the amount received.
- SunSwap V3 uses concentrated liquidity, so liquidity active around the current price matters.
A swap starts with two token reserves and an input amount. The pool applies its pricing curve, accounts for the fee, and returns an output amount; the changed reserves then set a new marginal price. On TRON, SunSwap uses pools for TRC-20 swaps. A quick explanation of how SunSwap AMM rates work can help put that pool quote in context.
The reserve ratio sets the starting price
The reserve ratio sets the marginal price: it tells you how many units of one token correspond to one unit of the other at the pool’s current state. Say a pool holds 100 TRX and 1,000 TRC-20 tokens. Its reserves show 10 tokens per TRX before a trade, before fees or price impact.
That ratio depends on the order in which you name the tokens. With 100 TRX and 1,000 tokens, the ratio is 10 tokens per TRX. Reverse the order and it is 0.1 TRX per token. These are reciprocals, not different pool prices. When comparing a quote with a displayed price, confirm which token is the numerator and which is the denominator.
Token decimals also affect how a ratio appears on screen. A token may be stored in smallest units while the interface displays whole tokens or a decimal fraction. Compare prices after accounting for each token’s displayed units; otherwise, the same reserve ratio can look off by powers of ten.
SunSwap V1 and V2 use the constant-product formula x × y = k. Here, x and y are the quantities of the two tokens in the pool, and k is their product during the idealized trade calculation. When a swap adds one token and removes the other, the reserve quantities shift along that curve. The product rule means the pool must return progressively less output for each additional unit of input.
Trade size and fees shape the received amount
Trade size determines how far the swap moves the pool along its curve. Take the 100 TRX and 1,000 token pool and imagine swapping 10 TRX, ignoring fees to isolate the curve’s effect. The constant-product calculation leaves about 909.09 tokens in the pool, so the swap returns about 90.91 tokens. The average execution rate is about 9.09 tokens per TRX, below the starting 10.
After that illustrative trade, the pool holds about 110 TRX and 909.09 tokens. Its marginal ratio is about 8.26 tokens per TRX, while the average rate received was about 9.09. The token reserve is smaller, so each remaining token costs more TRX at the margin. That gap between the starting marginal price and the average execution rate is the effect of trade size on the quote.
The pool fee reduces the amount available to the swap, so the output is lower than the fee-free illustration. The precise quote depends on the trade size, the pool’s current reserves, its fee, and the pricing rules in use. A small trade generally consumes less of the available output reserve and has less price impact; a larger trade shifts the ratio further. The quote shown before confirmation is for the proposed amount, not a promise that every unit will trade at the starting marginal price.
SunSwap V3 uses concentrated liquidity, which changes how pool depth is distributed. Liquidity providers can make liquidity active within selected price ranges. The available liquidity around the current price therefore matters to the quote; the total token balances alone do not describe the depth a swap can use. As a trade moves through price ranges, the active liquidity can change.
Arbitrage traders can also move a pool’s price toward prices available elsewhere by buying the relatively cheaper token from the pool or selling the relatively more expensive one into it. Those trades alter reserves, which changes the ratio and the next quote. The pool’s displayed price is therefore the price implied by its current state, and trades can move that state when prices diverge.
Related
What does a liquidity provider own in a pool?
A liquidity provider owns a position in the pool backed by the tokens they supplied, with a share of fees determined by the pool’s rules and their share of its liquidity. In a concentrated-liquidity pool, the price range they choose affects where that liquidity is available.
How does impermanent loss happen in a liquidity pool?
Impermanent loss arises when the relative market prices of the pooled tokens change after they are deposited. The pool’s pricing rules rebalance the token quantities as traders swap, so the provider’s position can differ in value from simply holding the original quantities outside the pool.
Before confirming a swap, read the token order and units, then compare the quoted average rate with the pool’s starting ratio. That shows how much the proposed trade size and fee affect the output.