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

Slippage and MEV on BSC: The YES fee discount is a router state change, not a perk

Updated 2026-12-02 · YESswap

Short answer. A membership tier that resolves to a number you can recompute from a receipt is worth more than a list of vague benefits. The number is only worth what the receipt proves.
Best match for this articleSwap tokens on BSCBuy or sell YES and any BEP-20 token directly from your wallet.

The fee router holds the tier logic; the pool never sees it

Knowing how slippage and MEV on BSC works is what separates a clean trade from a costly one. A separate contract that sits in front of the pool call applies the discount, not the pool itself. On BNB Smart Chain that contract is the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. A swap routed through it resolves the caller's YES balance at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, selects a tier from that balance, and passes the post-discount amount onward. The pool's own fee constant is untouched. Only the router's cut moves.

Because the router reads the tier at execution time, the balance that matters is the one in the same block as the swap. A YES transfer mined just before your swap changes the outcome. A transfer mined just after does not. This is a state read, not a snapshot taken at approval or at wallet connect.

Verification takes two calls. Read the router's tier function and its threshold constants on BscScan, then replay the same swap with eth_call at the block before execution and compare the router's token transfer in the logs against the live transaction. If the two diverge, the tier changed between simulation and inclusion. A second RPC endpoint that disagrees with the first on balanceOf at that block tag means one node is lagging or pruned; trust the endpoint that returns a block hash matching the canonical chain, and re-query by block hash rather than by number.

What a smaller fee is actually worth once slippage and MEV are counted

A discount raises the amount that reaches the pool, which lifts expected output before slippage and also shifts the price impact of that specific trade. On BSC, where blocks arrive quickly and the public mempool is visible, a larger expected output is a larger extraction target. A searcher prices a sandwich against expected output, not against your intent.

Net value is therefore a comparison, not a guarantee. The discount is net-positive only when the saved fee exceeds the adverse price movement a searcher can impose. On small trades the fee saving is a rounding error next to a single tick of slippage. A correctly applied discount can still leave you worse off than no discount at all.

Check it from the receipt rather than the interface. Pull gasUsed and effectiveGasPrice, decode the router's fee transfer and the pool's swap event amounts, and compare realized output against the amountOutMin field you signed. That last field is the only protection you actually bought.

Decision rule for thin liquidity: if the pool's reserves at your target block are small relative to your trade size, price impact dominates the discount's benefit and the trade is not worth routing through the tier at all. If amountOutMin minus the fee saving still clears your cost basis, execute; otherwise size down until it does. A missing receipt is not ambiguous: if eth_getTransactionReceipt returns null, the transaction is pending or dropped, and no fee event exists yet to decode. Wait for a block confirmation before drawing any conclusion about the tier.

Recomputing your effective fee from one receipt

The router emits a fee event carrying the pre-discount and post-discount amounts; the gap between them is the discount applied to that trade. Divide the discounted fee by the pre-discount fee and you have the applied rate, independent of whatever the UI displayed. Sum the fee event against the pool's swap event and you have the effective rate for the whole trade.

Absence is also evidence. If no fee event from the router appears in the receipt, the swap did not route through the router and no membership discount applied, whatever your YES balance was at the time. The receipt settles the question without a support ticket.

The procedure is mechanical. Call eth_getTransactionReceipt, filter logs by the router address, decode the fee event's topics and data fields, then divide. A worked example: a user swaps a mid-sized amount, the fee event shows a pre-discount fee and a smaller post-discount fee, and the ratio matches the tier the router read from balanceOf in that block. None of that arithmetic depends on trusting yesswap.

Timing is bounded by block production, not by any queue. Once the swap is included, the receipt is queryable from any synced endpoint, and the decode is a local computation that costs nothing beyond the RPC call. The only cost you pay is the gas already spent on the transaction itself; verification adds no on-chain fee.

The gate is balanceOf at execution, and the caller must be the holder

The router reads balanceOf for the immediate caller during execution, so the gate is the balance held by the address that sent the transaction. YES sitting in a second wallet, in a staking position that has left the wallet, or in a contract that forwards the call fails the check. The router sees the caller, not the beneficiary.

This produces a quiet failure mode worth naming. A swap executed by a different signer than the YES holder charges the full fee, and nothing in the UI necessarily announces it. Moving YES out in the same block as a pending swap does the same thing.

To confirm, call balanceOf on 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 with eth_call and a block tag set to your swap's block. Compare that value against the tier threshold constant in the router. A mismatch between the two explains a missing discount faster than any dashboard.

Decision rule for the caller: if you route through a forwarding contract, check whether that contract or your EOA is the msg. sender the router sees. If the forwarder is the caller, hold YES at the forwarder address or expect the full fee. If you hold YES in a staking position, confirm whether the staked balance still reports under balanceOf for your address before assuming the tier applies.

Three failure paths, each distinguishable from the receipt alone

The first is bypass. A swap sent directly to a pool, or through an aggregator path that never calls the router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d, runs no tier logic and emits no fee event. The second is partial routing. An aggregator that splits across pools and touches the router on only one leg applies the discount to a fraction of the amount, so the fee event covers less than the full swap. The third is identity. A forwarding contract or a different signer makes balanceOf return a value below the threshold, and the router charges the full fee.

Three checks separate them. Does the router address appear among the transaction's log addresses. Does the fee event's amount cover the full swap amount. Does the transaction's from field match the address you queried balanceOf for at that block. Each answer is binary.

A fourth outcome is not a failure at all. The discount can be correctly applied and still be net-negative once a sandwich or a slippage tick is counted, which is why the receipt comparison in the second section matters more than the tier badge. Non-custodial means every one of these checks is yours to run. Verify the router and token addresses on chain before trading, and treat any domain other than https://yesswap. vip or any handle other than @web3yesswap as unverified.

Open YESswap

Frequently asked questions

Which contract applies the YES membership fee discount on BSC?

The fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. It reads your YES balance at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 during execution and passes a post-discount amount to the pool.

Does the discount change the pool fee or only the router's cut?

Only the router's cut. The pool's own fee constant is untouched; what changes is the amount the router forwards into the pool call.

Is the YES balance checked at swap time or at an earlier snapshot?

At swap time.

Why did my swap get no discount even though I hold YES?

Either the swap never called the router, or an aggregator touched it on only part of the amount, or the transaction sender was not the address holding YES. The presence and size of the router's fee event in the receipt tells you which.

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: ai quant trading bsc.

Swap tokens on BSCStake and mineYour wallet signs every step. Nothing is custodied.