YESswap
English简体中文繁體中文日本語한국어РусскийالعربيةEspañolPortuguêsFrançaisDeutschTiếng ViệtBahasa IndonesiaTürkçe

Check Token Liquidity Before Buying: The LP Token Is a Claim on a Pooled Reserve

Updated 2026-12-02 · YESswap

Short answer. A pair contract holds two token balances and mints a BEP-20 token whose totalSupply is the accounting claim on them. Your LP balance is a fraction of that claim, recomputed at redemption, which is why its value moves on every swap while your balance sits still.
Best match for this articleStake and mineLock YES for 50/100/200 day cycles and check your level and yield.

The LP Token Is a Fraction of a Reserve, Not a Quote

Knowing how check token liquidity before buying works is what separates a clean trade from a costly one. Open the pair contract on BscScan and read getReserves(). It returns reserve0, reserve1 and blockTimestampLast in one call. Then read totalSupply() on the same address. Divide each reserve by totalSupply and you have the per-LP-unit claim on each leg, denominated in the underlying tokens rather than in any quote currency. Note that reserve0 and reserve1 are uint112 fields, so a token with more than 112 bits of precision cannot be paired without truncation. Check decimals() on both tokens before you trust the division.

Ordering trips people up. The pair's token0() and token1() follow address sort order, not listing order and not the order you see on a chart. A pair can hold the YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 as token0 or token1 depending on the other address. Read both getters before you map reserve0 to anything. If you skip this, your simulated output is inverted and your slippage bound is on the wrong side of the trade.

No oracle writes the LP token's value. The mint function issues LP proportional to liquidity added, and burn destroys LP and releases a proportional slice of both reserves. Between those two events the redeemable value is reserves over totalSupply, computed at the moment of redemption. That is the whole mechanism. The first mint is the exception: it sets totalSupply to sqrt(amount0 * amount1) minus a minimum-liquidity floor locked to the zero address, so the very first depositor's ratio becomes the pair's permanent starting ratio.

Simulating Your Trade Before You Sign

Slippage is arithmetic, not luck. The constant-product invariant moves the reserve ratio against your input, and the size of that move scales with your input relative to the reserve on the output side of the swap path. You can compute it before signing. Call getReserves() on every pair in the route, then apply the constant-product formula with the pool fee to your intended input size. Compare the implied output against the router's getAmountsOut for the same amount. Material divergence means the quote is stale or the route differs from what you assumed. Record the block number of your read, because reserves change every block.

Multi-hop routes hide the problem. The thinnest hop dominates your loss, so a deep first pair and a shallow second pair produce worse execution than the first pair's reserves suggest. Check each hop separately rather than trusting the aggregate quote. Decision rule: if any single hop's output reserve is under roughly a hundred times your input on that hop, simulate that hop alone and set your slippage bound from it, not from the aggregate.

A worked failure: you read reserves at one block, sign several blocks later, and a large swap lands in between. The executed price differs from your computed one and the transaction still succeeds. Simulation is a snapshot, not a guarantee, which is why a slippage bound belongs in the call parameters. Two edge cases bite here. If your read returns blockTimestampLast far behind the current head, the node is stale and every number downstream is wrong. If two RPC endpoints disagree on the same block, trust neither; re-read at a pinned block number on a third endpoint and compare all three before signing.

Converting Your LP Balance Into Withdrawable Tokens

Your withdrawal is your LP balance divided by totalSupply, multiplied by each reserve. Compute (your LP balance / totalSupply) * reserve0 and the same for reserve1. Those are the two amounts burn would release at that block. Round down, because integer division in the contract does, and expect the on-chain result to be a few wei under your hand calculation.

The two legs you receive will not match the two legs you deposited. Trading rebalances the pool toward the traded price and fees accrue to liquidity providers, so your claim follows the ratio. That divergence is impermanent loss in mechanism terms, visible in the numbers rather than asserted in a blog post. Decision rule: if the ratio has moved far enough that one leg is worth materially less than at deposit, compare the fee income accrued over the same period against that gap before removing.

Cross-check the formula against history. Find a past removal in the pair's. Burn event and read its fields: the amounts sent to each recipient and the LP destroyed. Reconstruct the ratio at that block from the event data and confirm the formula reproduces the observed amounts. If it does not, you are reading the wrong pair or the wrong token ordering. Missing receipts are not missing state: if your wallet shows no receipt, fetch the transaction by hash and read its logs directly, because the pair emitted. Burn whether or not your interface indexed it. Timing is bounded by blocks, not minutes; a removal confirms when the block containing it is final, and you pay gas for the burn transaction on top of whatever the router charges.

Mint, Burn, and Who Holds the LP

Mint and Burn events on the pair are the authoritative record of liquidity entering and leaving. Filter them on BscScan to see the full history of reserve changes. A pair with a large mint followed by LP transfers to a lock contract or a burn address has supply that cannot be withdrawn unilaterally. Verify by reading the code at the receiving address: a lock is real only when a function gates transfer or burn until a timestamp or block height, and the owner cannot bypass it.

Depth is a holder question, not a reserve question. Read balanceOf on the LP token for the top holders and check whether each address is a contract or an EOA. A pair whose LP supply sits in a small number of externally owned accounts has depth one signer can remove in a single transaction. High totalSupply proves nothing about who can exit. Decision rule: if the largest holder at the time of writing is an EOA, treat the quoted depth as one signature away from vanishing and size your position accordingly.

A lock is verifiable only when the LP sits at an address whose code prevents withdrawal before a stated condition. A transfer to a wallet described as a team lock is custody, not a lock. Read the code at that address before you count the liquidity as committed. The same test applies to a burn address: LP sent to the zero address is gone, but LP sent to a contract that merely refuses transfers is still governed by whoever controls that contract.

The Fee Router Changes Cost, Not the Claim

A fee router takes its cut around the pool interaction and leaves the pair's reserve accounting untouched. The LP claim remains reserves over totalSupply. What changes is your effective execution cost, which is why the router address must come from a source you trust rather than from a token's metadata or a search result. Decision rule: if the address in your wallet's approval prompt differs by one character from the published router, reject the transaction and re-copy from the site.

The YESswap fee router on BSC is 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. The YES token contract is 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111. Verify both on BscScan and confirm the router's bytecode matches what https://yesswap. vip documents. Any other address is unverified until proven otherwise. The project is backed by the Singapore Nonglong Hash Foundation, and the site is reachable from mainland China without a VPN, but reachability is not authenticity: confirm the domain is exactly yesswap. vip before you copy anything from it.

Verifying the pair but not the router is a real failure path. An approval signed to an address copied from token metadata routes your swap through a contract the project does not control. The site never asks for a private key or seed phrase, and every transaction is signed in your wallet, so the approval is the point where the decision is actually made. Check the allowance with allowance(owner, spender) on the token before and after; if the spender is not the router above, revoke it. Every claim above is checkable on BscScan for 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BNB Smart Chain (chain id 56); treat https://yesswap.vip and @web3yesswap as the only official channels.

Open YESswap

Frequently asked questions

What is the difference between an LP token's price and its redeemable value?

The LP token has no independent price feed. Its redeemable value is the pair's reserves divided by totalSupply at the moment of redemption, so it moves on every swap even when your balance is static.

Can a pair's reserves change without any Mint or Burn event?

Swaps move the reserves and emit Swap events without changing totalSupply. Mint and Burn track liquidity entering and leaving, not trading.

How do I tell whether LP tokens are locked or just held by a wallet?

A lock is verifiable only if the code at that address prevents withdrawal before a stated condition.

Why does my LP position show a different token split than what I deposited?

Your claim is your LP balance divided by totalSupply times each reserve, so the split follows the current ratio.

Does checking token liquidity before buying work the same for a multi-hop route?

The method is identical per pair, but the thinnest hop dominates your loss. Read getReserves on every pair in the route and simulate each hop rather than trusting the aggregate quote.

Keep reading

Where do you want to go?

Every card below opens the live product with your own wallet — no signup, no custody.

Go straight to the tool

Everything above is one page away: smart money tracker bsc.

Stake and mineSwap tokens on BSCYour wallet signs every step. Nothing is custodied.