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

YES Token Contract Address: Sandwich attacks on BSC: the fields a swap interface

Updated 2026-12-02 · YESswap

Short answer. A swap front end hands your wallet calldata; the block builder decides where that calldata lands. Everything below separates the two.
Best match for this articleSwap tokens on BSCBuy or sell YES and any BEP-20 token directly from your wallet.

The three-transaction window a sandwich needs, and who owns each step

Knowing how YES token contract address works is what separates a clean trade from a costly one. A sandwich is an ordering event, not a pricing event. Three transactions must land in one block in sequence: a buy of the pair ahead of yours, your swap, and a sell of the same pair behind it. The router never sees the first or third transaction. The front end never sees any of the three positions.

Ordering belongs to the block builder. Your wallet signs a transaction and broadcasts it; on BSC that broadcast normally enters a public mempool, where searchers can read the exact function selector, path, and amountOutMin before inclusion. Cheap gas relative to mainnet lowers the cost of inserting two extra swaps around a victim, and short block times compress the window in which the insertion has to happen. Neither cost nor speed is something an interface sets.

What the interface does control is narrow and worth naming precisely: the calldata it constructs and the defaults it pre-fills. A private submission path removes the observation window between broadcast and inclusion. It does not remove the builder's discretion over ordering. Treat relay inclusion as a trust transfer, not a guarantee. The decision rule: if your swap moves a large fraction of a pool's reserves, submit privately and set a tight bound; if it is small relative to reserves, public broadcast with a tight bound is usually the cheaper path. Thin liquidity flips this. In a shallow pair a modest order is already a large fraction of reserves, so the sandwich profit per unit of attacker capital rises and a tight amountOutMin becomes the only real defense.

Reading a swap's decoded input to prove what happened

Take a swap hash and open the Input Data tab on BscScan. A router call such as swapExactTokensForTokens exposes amountOutMin and deadline as explicit arguments, and the path array as an explicit list of token addresses. Those bytes are what your wallet signed. Nothing downstream can widen them.

Compare amountOutMin against the realised output in the Transfer logs of the same transaction. The difference is your realised slippage, and it is measured, not estimated. Then look at the block's transaction list: a buy of the same pair immediately before your index and a sell immediately after is the structural signature of a sandwich. Index position is the evidence; a bad rate alone is not. If the block shows your transaction but the receipt is missing from your node, do not conclude anything. Query eth_getTransactionReceipt against a second endpoint and compare status, gasUsed and log count before you call it a sandwich or a revert. Two RPC endpoints disagreeing on a receipt usually means one is lagging or pruned; the block's transaction list from eth_getBlockByNumber is the tiebreaker, because the block body is the same on every honest node.

One failure story is worth walking through, because it is common and it is self-inflicted. A trader accepts a wide tolerance because the interface pre-filled it, signs, and the back-run takes everything down to the floor. The bound held. The contract did exactly what the calldata asked. A loose amountOutMin is a signed authorisation for a back-run, and no interface can retroactively tighten a bound you already signed.

What the router's require statements enforce, and what they cannot

Two arguments are hard on-chain bounds. The router reverts when pool output falls below amountOutMin, and it reverts once block. timestamp passes deadline. Both are require statements in verified source, which is why a malicious or buggy front end cannot relax them without changing the calldata your wallet displays before you sign.

Verify the enforcement rather than trusting the description. Read the router's verified source on BscScan and locate both requires. Then pull a failed swap of your own with eth_getTransactionByHash and confirm the revert reason string. A revert still costs gas, so a tight bound is a trade-off: it caps what a back-run can extract and raises the frequency with which you pay for nothing. Price that trade before you set it. If your history shows many reverts under a tight bound, the gas you burn exceeds the value the bound protects, and the rule is to widen slightly or route through deeper liquidity. If reverts are rare, tighten further.

The deadline argument is the underused one. It caps how long a pending transaction remains exploitable, and it is the field most often left at a default that outlives the price you were quoting. Set it to minutes, not hours, when the pair is volatile.

Aggregation splits price impact; it does not touch ordering

Splitting one trade across several pools reduces the price impact per pool, which reduces what a single back-run can extract from your order. It does not change who orders the transactions. That distinction is the whole argument.

Aggregation adds a trust surface the contract cannot check. The aggregator's off-chain quote determines the path encoded in calldata, so a stale quote produces a worse realised rate even when amountOutMin technically holds. Multi-hop paths multiply the number of pools whose reserves move between quote and execution, and that is precisely why aggregator quotes carry a freshness assumption.

Decode the path array and count the hops. Call getReserves on each pair contract via eth_call at the block before and after your transaction, and measure how far reserves moved per hop. The gap between quoted and realised output, per hop, is the aggregator's freshness cost. When a route is stale, the realised rate can fall to the amountOutMin floor with gas still spent. If a quote is older than the last block you observed, re-quote before signing; that is the rule.

Verifying the YES token address before any swap that touches it

Address verification is a chain lookup, not a trust decision. The YES token on BNB Smart Chain is 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, a BEP-20 contract with 18 decimals. Any other address carrying the ticker is a different contract with different holders and different transfer rules.

BEP-20 tickers are not unique. A lookalike can be deployed with the same symbol and the same decimals and still behave differently on transfer, including fees or blacklists. Call name(), symbol() and decimals() on the address via eth_call and confirm 18 decimals. Check the verified source and creation transaction on BscScan, and confirm the pair your swap routes through holds that same address.

Do not confuse a router with a token when reading calldata. The fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d is a separate contract, and the official domain is https://yesswap. vip with @web3yesswap as the only official handle on Telegram and X. An address copied from a chat or a lookalike UI is unverified regardless of what a page displays.

The honest boundary of a non-custodial interface

No transaction is signed server side. Every swap is signed in your wallet, which means the interface can show you calldata and refuse to build unsafe defaults, and it cannot reorder blocks, hide your transaction after broadcast, or bind a builder's behaviour.

That leaves a trade-off curve rather than a guarantee. Tight default slippage reduces sandwich profit and raises revert frequency. Private submission reduces exposure and shifts trust to the relay. Aggregation reduces per-pool impact and adds a quote-freshness assumption. The interface sets defaults; the contract enforces bounds; the builder orders blocks.

One check closes the loop. Compare your wallet's pre-sign calldata against the mined transaction's input via eth_getTransactionByHash. Identical input bytes prove the interface did not alter the trade after display. Then count reverted against successful swaps in your own history to price what your slippage setting actually costs in gas. If the count is high, your bound is too tight for the pairs you trade; if it is zero and you still see back-runs, your bound is too loose.

Open YESswap

Frequently asked questions

Can a swap interface stop my transaction from being front-run?

It can set amountOutMin and deadline, which the router enforces. Ordering is decided by the block builder.

Does a lower slippage setting eliminate sandwich profit?

It caps what a back-run can take from your order, and it raises the chance your swap reverts while you still pay gas.

Is a private transaction relay a guarantee against MEV?

It removes the public mempool observation window and moves trust to the relay and the builder.

How do I confirm a swap was sandwiched?

Compare your transaction's index in the block against same-block buys and sells of the same pair, and compare amountOutMin to realised output in the Transfer logs.

What is the YES token contract address on BSC?

0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, a BEP-20 token with 18 decimals. Verify symbol() and decimals() on chain before trading.

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.

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