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

Impermanent Loss on BSC Pools: Whitelist mechanics: the enforcement point

Updated 2026-12-02 · YESswap

Short answer. A whitelist is either a require statement inside the buy function or it is marketing. This piece shows where each pattern sits in bytecode-verified source, which logs record a gate change, and how capped, tiered and staking-gated entry reshape the deposit and withdraw curve an LP actually inherits on a BSC pair.
Best match for this articleStake and mineLock YES for 50/100/200 day cycles and check your level and yield.

Three enforcement patterns, and the one that is not enforcement

Knowing how impermanent loss on BSC pools works is what separates a clean trade from a costly one. Whitelist status is contract state or it is nothing. Three patterns dominate BSC launchpads, and only two of them stop a transaction at execution. The first is a boolean mapping, `mapping(address => bool) isWhitelisted`, read inside the buy function. The second stores a Merkle root as a `bytes32`, takes a proof argument, rebuilds the leaf from `msg. sender` and compares against the root. The third recovers a signer with `ecrecover` over a message the buyer supplies and checks it against an owner-set address.

A frontend-only list enforces nothing. Any address can call the buy function through a block explorer's Write Contract tab or a script, and the per-address cap becomes the only real limit. That distinction is not academic for an LP. A real gate changes who arrives in the first blocks after liquidity is added; an advisory list changes only who arrives first by habit.

Edge cases break the simple read. A mapping gate whose setter is `onlyOwner` is only as good as the owner key, so check whether the setter sits behind a timelock or a multisig threshold before you trust it. A Merkle gate with a root of zero admits no one, which looks identical on the frontend to a gate that has not opened. A signer gate that does not bind a nonce or a deadline lets any address holding one signed message replay it.

Why a cap changes the price path an LP inherits

A per-address cap converts one large buyer into many small ones across many blocks. That flattens the initial price impact and shrinks the gap between pool price and the first external market price, which is precisely the gap arbitrageurs harvest at the LP's expense. An uncapped launch lets a single address push the pool to its new price in one transaction, and LPs who deposited at the opening price absorb the whole move as inventory rebalancing.

The cap does not delete impermanent loss. It slows the rate at which divergence accrues, which gives an LP time to widen the range, add liquidity at a better ratio, or exit before the flow finishes. On a thin initial pool, that timing difference is the entire return.

Reading it needs no indexer. Pull the cap field and the sale start block, then take the pool's Swap events for the first blocks after liquidity is added and compare each post-swap price to the pre-swap price. A capped launch shows a staircase of small swaps; an uncapped one shows a step change. Both are visible in the pool contract's event log on BscScan.

Thin liquidity is where the model fails. When the initial pool is small relative to the cap, a single capped buyer can still move price by a wide margin, and the staircase becomes a few large steps. Compute the cap as a fraction of pool depth before you assume the cap protects you. If the cap exceeds the pool's depth at the opening price, the cap is decorative.

Staking gates couple IDO access to YES float

Tying entry to a YES position at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 makes eligibility a function of on-chain state at a fixed height. The contract reads a balance or staked amount at a snapshot block, so a claim made after that block is irrelevant. For an LP in the YES pair this couples two exposures: the IDO outcome and the YES price, in the same window.

Check it by height, not by memory. Find the snapshot block in the IDO contract, then call `balanceOf` on the YES token via `eth_call` with that block tag and compare against the current balance. Pull the staking contract's deposit and withdraw events around the snapshot to see the lock-up pattern. A snapshot read after an announced block, or a staking contract that lets users withdraw before the read, computes eligibility on state that no longer matches what participants planned around.

Two RPC endpoints can disagree about the same height during a reorg. Query the snapshot block on two providers and compare the returned balances; if they differ, wait for finality before you size anything. A missing receipt for a deposit transaction means the event you are counting may not be canonical. Re-query the receipt by hash on the second endpoint before you include it in the float estimate.

Gate changes are logs, not announcements

Every legitimate gate change leaves a trace. A Merkle root update emits an event carrying the new root. A signer rotation emits the new signer address. A cap change emits old and new values if the contract is written well. Logs are append-only and block-indexed, so the full history of the gate is reconstructable without trusting any frontend.

A silent change is a red flag, not a convenience. If the root or signer moves without an event, a reader who verified eligibility earlier has no on-chain way to detect it, and an LP who sized a position on the assumption of a capped launch is suddenly exposed to an uncapped one. That is the worst of the three failure modes because it removes your ability to audit.

Filter the Events tab by the root-setter or signer-setter event and note the block numbers. Cross-check those blocks against any published schedule. On the YES token, Transfer events at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 show whether allocations moved before the sale opened, which is often the first visible sign that the gate shifted.

Cost and timing: a block explorer event filter on one contract returns within seconds, and an `eth_call` at a historical block tag costs one request per height. Reconciling a single swap against the router takes a handful of reads. None of this requires an archive node if your provider serves historical state; if it does not, the call fails and you fall back to the event log.

The fee router sits between the swap and the LP

Realised LP return is the pool fee tier minus whatever share the router diverts. On YESswap that router is 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d, and it sits between swap proceeds and final distribution. Comparing gross fee tier against price divergence without subtracting the diverted share is the most common arithmetic error in LP decisions on this venue.

Reconcile one swap and the numbers should close. Take the Swap event from the pool, compute the fee at the pool's fee tier, then follow the Transfer events out of the router in the same transaction. Read the router's. Verified Source for the split constants and recipient addresses first. If the three figures disagree, the split is not what the source claims, and the yield you modelled is wrong.

Missing receipts are the usual cause of a mismatch. If the router's outbound Transfer has no receipt on your first endpoint, the transaction may still be pending or the provider may be lagging. Re-fetch by transaction hash on a second endpoint before you conclude the split is wrong. A genuine mismatch after two agreeing endpoints is a source-level discrepancy, not an indexing artifact.

Decision rule: if the reconciled fee minus the router share is below your cost of capital for the holding window, do not provide liquidity. If the three figures close on two endpoints, the modelled yield is real and you can size against 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

If a whitelist is enforced only by the frontend, can I still buy by calling the contract directly, and what does that do to the LP?

The launch then behaves as uncapped, concentrating the price move into fewer blocks and handing the full divergence to arbitrageurs at the LP's expense.

Does a Merkle-proof whitelist leak my eligibility?

The root is public and the leaf derives from your address, so an observer can test candidate addresses against the root and learn who is included. What stays private is the proof path you submit, which reveals your leaf but not the rest of the tree beyond the sibling hashes needed to verify it.

What block do I use to check staking-gated eligibility, and how do I call balanceOf at that block?

Use the snapshot block stored in the IDO contract, not the current head. Call balanceOf on the YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 via eth_call with that block tag, then compare against the current balance to see how positions moved after the snapshot.

Why does a per-address cap reduce the arbitrage an LP gives up compared with an uncapped launch?

A cap spreads buying across many addresses and blocks, flattening initial price impact and shrinking the gap between pool price and external market price. Arbitrageurs harvest that gap, so a smaller gap means less value extracted from the pool during the launch window.

How do I confirm the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d is taking the share the source claims?

The three numbers should close on two independent endpoints.

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.

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