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

BSC Swap Without Vpn: Inventory risk in a constant-product pool

Updated 2026-12-02 · YESswap

Short answer. A constant-product LP is a passive market-making book with a fixed convex quoting rule and no spread parameter. Every claim below is checkable from getReserves(), Swap and Sync logs on BNB Smart Chain.
Best match for this articleProvide liquidityAdd or remove liquidity and see the pool you would trade against.

What the pair contract actually makes you hold

Knowing how BSC swap without vpn works is what separates a clean trade from a costly one. Depositing into a constant-product pool does not leave you holding the token amounts you deposited. The pair mints LP shares against reserve0 and reserve1 and enforces that their product stays constant across every swap, so the pool is mechanically forced to sell whatever traders buy and buy whatever they dump. Your position is a claim on a shrinking share of one reserve and a growing share of the other, and the split moves with price whether you act or not. The curve is a short-gamma book: the LP writes an option to every arbitrageur and is paid the fee as premium.

That quoting curve has no spread parameter and no inventory skew control. A pool with a fee tier and a fixed curve cannot widen when inventory gets lopsided, so the only lever the LP has is position size. Read the mechanism directly: call getReserves() over eth_call and you get reserve0, reserve1 and blockTimestampLast. The third field is the oracle accumulator, and its staleness tells you whether the pair is being poked at all.

Two blocks are enough to watch inventory shift. The Sync event emits the same two reserve values after every liquidity-changing operation, so a log filter on Sync reconstructs the reserve path without polling. LP share supply is the totalSupply field on the pair, and your claim is your share balance divided by that supply. Mint and Burn events bracket supply changes, so a share count read at one block is not valid at the next.

Separating fee income from divergence loss on the same logs

Every swap emits a Swap event with amounts in and out plus the post-swap reserves, and the fee is embedded in the input amount rather than emitted as its own field. Fee income must be derived: sum amount0In and amount1In across your window, then apply the pool's published fee tier. Divergence loss is not an event at all. It is the gap between the value of your current token split at the current marginal price and the value of simply holding the deposit amounts.

The two quantities move in opposite directions, and the net is what the position earned. A pool with heavy two-way flow can accrue fees faster than divergence erodes them; a pool with one-directional flow cannot. That is the whole distinction, and it is measurable.

To check it, filter. Swap logs on the pair address and sum the input amounts across the window. Read the current marginal price from the reserve ratio in getReserves() and value both your LP token balances and the original deposit at that price. The gap between those valuations, net of summed fees, is the realized result for the window. One caveat on the arithmetic: a Swap log carries the post-swap reserves, so the pre-swap reserve for the same trade is the post-swap value minus the input plus the output. Skip that subtraction and your reserve path is off by one trade at every step.

Why a thin pool hands your inventory to arbitrageurs

The invariant permits any reserve ratio that satisfies the product, so a single large swap can move the marginal price arbitrarily far, limited only by trade size relative to reserves. Deep reserves make that expensive. Thin reserves make it cheap. When the pool price is pushed below the wider market, arbitrageurs buy the cheap asset out of the pool and your inventory rotates toward the other side at a bad rate.

The fee is charged on trade size, not on the price error the trade creates. A large enough displacement against thin reserves can cost more in rotation than the trade paid in fees. That is the second failure path, and it is silent: no event flags it. The displacement persists until someone closes it, and the closing trade is another rotation of your inventory.

Compare the reserve ratio from getReserves() against a reference price from a deeper venue at the same block. Swap events for single trades whose amount relative to reserves exceeds the pool's typical size. The reserve delta between the Sync before and after such a trade shows the rotation directly, and repeating the comparison across blocks shows how long the displacement persists. If the pair's blockTimestampLast lags the head block by a wide margin, the reserve path you are reading is stale and the comparison is invalid.

Sizing a position against a stated loss budget

Divergence loss scales with the square of the price move and with position size, while fee income scales linearly with position size and with your share of pool liquidity. That asymmetry means a position can be too large for the pair's volatility even when the fee tier looks attractive. Doubling size doubles fees and doubles the loss on any given move.

The decision rule is arithmetic, not judgment. Estimate the fee income the position would have earned over a historical window from the Swap log, estimate divergence loss over the same window from the reserve path, and only size up where fees exceed loss with margin. If the pair's realized volatility over the window exceeds the fee tier times the turnover ratio, the position loses on the curve regardless of size, so skip the pair rather than shrink the ticket.

Rebuild the reserve path from Sync logs over the chosen window, compute the hypothetical token split at each step, and price it at each step's marginal price. Sum fees from the Swap log over the same window. Repeat at several position sizes expressed as a fraction of pool reserves. The crossing point where net turns negative is the size ceiling for that pair and window. Cost and timing: the deposit is one approve plus one addLiquidity transaction, each confirmed in a block and each paying BSC gas, and the historical rebuild costs only eth_getLogs calls against an archive-capable endpoint.

Verifying the swap before you sign it

A front end is a convenience layer over router calls, and the transaction that matters is the one your wallet signs. Reachability without a VPN changes nothing about custody: the signature happens in the wallet, and the router and pair addresses in the calldata are what execute. Any interface that asks for a seed phrase or private key is not the official one.

Before signing, read the transaction's to field and its decoded method and path. Confirm the token address in the path matches the published YES token contract on BNB. Smart Chain, 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, and read name, symbol and decimals over eth_call to confirm 18 decimals. The fee router is 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. The official domain is https://yesswap. vip and the official handles are @web3yesswap on Telegram and X; any other domain or handle is unverified.

Three paths lose money here: sizing from a dashboard APR computed over one-directional flow, letting a thin pool be displaced faster than fees cover, and signing calldata that routes through an unverified token or attacker-controlled router. Each is checkable before the transaction, not after. Two edge cases bite the careful reader: a receipt that never arrives leaves you unable to confirm the Sync that closed your window, and two RPC endpoints that disagree on the head block will give you two different reserve paths. If the endpoints disagree, take the lower block height as truth and re-query the higher one after it catches up.

Open YESswap

Frequently asked questions

Does providing liquidity on a constant-product pool guarantee fee income above divergence loss?

Fees accrue linearly with volume and your liquidity share, while divergence loss scales with the square of price moves. Net result depends on the pair's realized volatility over your holding window, which you estimate from Swap and Sync logs.

How do I read a pool's fee tier if the Swap event does not emit it as a field?

Read the tier from the pair's published parameters or the factory configuration, then apply it to summed amount0In and amount1In from Swap logs.

Why does a large swap move the pool price more in a thin pool than a deep one?

The invariant fixes the product of reserves, so price impact depends on trade size relative to reserve depth. The same trade against smaller reserves moves the ratio further, and arbitrageurs then rotate LP inventory at the displaced rate.

Can I reconstruct my LP position's history from Sync and Swap logs alone?

Yes, with one correction. Sync emits post-operation reserves, Swap emits amounts and post-swap reserves, and Mint and Burn mark share supply changes. Subtract each Swap's input and add its output to recover the pre-swap reserves.

What should I check in a swap transaction before signing it in my wallet?

The to field, the decoded method and path, and the token address in the path. Confirm it matches 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and that the router is the published fee router, not an unverified contract.

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: swap tokens on bsc.

Provide liquidityStake and mineYour wallet signs every step. Nothing is custodied.