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

Impermanent Loss on BSC Pools: Impermanent loss in numbers: a two-asset pool through

Updated 2026-12-02 · YESswap

Short answer. The divergence number is not a dashboard opinion. It falls out of two reserve reads and the constant-product invariant, and the chain keeps every intermediate state you need to check it.
Best match for this articleProvide liquidityAdd or remove liquidity and see the pool you would trade against.

What the invariant forces when one side of the pair moves

Knowing how impermanent loss on BSC pools works is what separates a clean trade from a costly one. The pool cannot hold a price. It holds a product. Because k = x * y must stay constant across swaps, the reserve ratio is pinned to the square root of the external price ratio, and no trade can leave the pair at a ratio the market disagrees with for long.

When one asset's external price rises by half, the pool's quoted price for that asset now sits below the market. Arbitrageurs buy it out of the pool until the two agree again. The composition shifts as a result: the pool ends up holding more of the asset that fell and less of the one that rose, because it sold the winner on the way up. That is the whole mechanism, and it needs no reference to pool size.

Read the state yourself with the pair contract's getReserves() call, which returns reserve0, reserve1 and blockTimestampLast. Take one snapshot before the move and one after. The Sync event fires on every swap that changes reserves and carries the same two values, so a BscScan log query filtered to the pair address and the Sync topic rebuilds the entire path between your two reads.

Two RPC endpoints can disagree at the edge, and the disagreement is usually a lagging head rather than a fork. Pin both snapshots to an explicit block number by passing it to eth_call instead of reading "latest", and the two providers must return identical reserve tuples. If they do not, one node is behind; query blockNumber on each and discard the lower head. A missing receipt is the other failure: eth_getTransactionReceipt returning null means the transaction is still pending or was dropped, so never compute realized amounts from a hash whose receipt you have not fetched with a status of 1.

The 50 percent case from reserve ratios alone

Write the relative price change as r. The LP's value relative to a plain hold is 2 * sqrt(r) / (1 + r). At r = 1. 5 that expression is below one, and the shortfall is your divergence loss. The derivation uses only the invariant and the arbitrage condition, so a calculator is enough to redo it.

Pull the two snapshots and compute reserve1/reserve0 for each. The ratio of those two ratios is r. Apply the formula. Cross-check the result against totalSupply() and your balanceOf(yourAddress) to get your pro-rata share, and call decimals() on both token contracts before dividing anything, because raw integer reserves are meaningless as a price until they are scaled.

Nothing in that expression depends on the absolute price, the fee tier or the pair you chose. Doubling the pool does not move the number. That invariance is what makes the figure auditable: two readers with the same two snapshots must arrive at the same answer.

The verification is a single eth_call to the pair at each block, decoded against the pair ABI; it costs nothing and returns in one round trip. Decision rule: if the two block-pinned reads differ from the Sync logs at those same blocks, trust the logs and re-read, because the log is the state transition the contract actually emitted. If r computed from reserves sits further from 1 than the ratio implied by an external price feed, the pool has not finished arbitraging and the formula overstates the loss for that moment.

When the divergence becomes real, and which events prove the amount

Until you remove liquidity, the divergence is an opportunity cost measured against a hypothetical hold. It is not a balance change. The moment your removal transaction executes, the router sends your pro-rata share of both reserves to your address, and the realized amount is fixed at that block's reserves, not at any earlier or later state.

The Burn event on the pair carries the amount of each token sent to the recipient plus the liquidity burned. The ERC-20. Transfer events from both token contracts to your address in the same transaction confirm those amounts independently. Sum the transfers and compare against what the same initial tokens would have been worth at the post-move ratio.

Fees complicate the sign. Swap fees accrue into reserves and belong to LPs, so a busy pool can turn a nominal divergence into a net gain over the same price path. Time in the pool and volume through it decide which side of zero you land on.

To verify the realized side, fetch the removal transaction's receipt and read its logs in order: the pair's. Burn, then the two token. Decode the Burn amounts and assert they equal the Transfer values to your address; a mismatch means a transfer fee or a rebasing token is in play. Decision rule: if the summed fee income from Swap events between your snapshots exceeds the computed divergence, the position closed net positive and you should report the gain, not the loss.

Three places the textbook number drifts from what you received

Accumulated fees are the first distortion. They sit in the reserves you withdraw, so a high-volume pool pays you more than the invariant alone predicts. Pull the Swap events between your two snapshots and sum the fee amounts to estimate the offset before you judge the position.

Decimal handling is the second. A token with non-standard decimals, or one that takes a transfer fee, distorts the reserve ratio if you divide raw integers. Read decimals() on both contracts first. This single omission produces an IL figure that is pure noise, off by orders of magnitude.

Thin reserves are the third. A pool whose depth is small relative to individual trade size does not reach arbitrage equilibrium in one step, so the observed ratio can sit away from the external price for several blocks. Check each swap's size against reserves in that range. If single trades are a large fraction of depth, the one-step formula is an approximation, not an identity.

Timing is the fourth, and it is cheap to bound: the whole audit is read-only calls and log queries, so it costs no gas and completes in the time a few block confirmations take, not a transaction's wait. Decision rule: if a single. Swap moved reserves by a large share of depth, recompute r from the final. Sync rather than assuming the pool tracked the external price continuously.

A read-only audit of a YESswap position before you sign

The check is a sequence of calls that sign nothing. Query the pair for getReserves(), totalSupply() and your balanceOf(). Confirm the YES token address character by character against 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BscScan, since a single wrong character invalidates every number downstream.

Keep the fee router out of the divergence math. The router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d handles fee routing, not the pool's invariant, so the pair's reserves are the only correct source for the calculation. Simulate the removal with eth_call against the router before broadcasting, and read the returned amounts against your own computed figure.

Because the platform is non-custodial and every transaction is signed in your wallet, the removal calldata is inspectable before it leaves the device. Verify the domain is https://yesswap. vip and the only official handles are @web3yesswap on Telegram and X. Any other address, handle or domain is not the project's.

Decision rule for the sign-off: if the simulated amounts from eth_call differ from your reserve-derived figure by more than rounding at the token's decimals, stop and re-read the pair at the block the simulation used. The simulation is cheap and repeatable, so run it against a pinned block to make the comparison exact. 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

Does impermanent loss become permanent if I never withdraw?

The divergence is an opportunity cost against a hypothetical hold, and it is only fixed at the block where the burn executes.

Does a 50 percent price move always produce the same loss regardless of pool size?

Yes for the idealized invariant. Pool depth changes how quickly arbitrage restores the ratio, not the end-state formula.

Why do two dashboards show different impermanent loss numbers for the same position?

They usually differ on the reference price for the hold comparison, on whether fees are included, or on decimal scaling of the reserves.

Is the fee router part of the divergence calculation?

The pair's reserves are the source.

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: add liquidity on bsc.

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