Knowing how revoke token approvals BSC works is what separates a clean trade from a costly one. An ERC-20 allowance is a mutable mapping slot, and approve(spender, 0) overwrites it in a single transaction. The token then emits. Approval(owner, spender, value) with value set to zero, which is your receipt. Revocation here is not a chain-level primitive either; it works because the token's own code exposes approve as a public setter. The cost is one transaction's gas and one block of waiting, and the effect is visible the moment the receipt returns.
A referral binding is a different storage pattern. The common shape is a mapping from user address to referrer address, written once behind a guard like require(bindings[msg. sender] == address(0)). That guard is the whole story: the second write reverts, and the contract has no obligation to offer a path around it. A revert still costs gas, so the failed attempt is a paid lesson rather than a free check.
Open the verified source on BscScan and read the ABI rather than the marketing page. List every function whose name contains set, bind, update, or referrer. If none of them writes the user-to-referrer slot after the first write, the binding is one-shot, and no amount of approval hygiene will move it. Decision rule: if the only write path carries a zero-address guard, treat the first signature as final and verify the counterparty before it, not after.
Referral accounting needs to split value at swap time, so it more plausibly sits on the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d than on the YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111. The token is a BEP-20 with 18 decimals; its job is balances and transfers. The router is the contract that would need to know who referred whom in order to route a fee.
Durability follows the host contract. A binding stored on a router is only as permanent as that router's admin surface, because an owner-only setter or an upgrade path can rewrite it. A binding stored on the token inherits the token's own mutability, which may be none at all. If the getter lives behind a proxy, read the implementation address from the admin slot before you trust the source you are reading.
Check both addresses the same way. Switch to Contract, then. Read Contract, and look for a function that returns an address when given a user address. Then open Write Contract and look for an owner-gated setter. Finish on the deployed bytecode tab to confirm the verified source actually matches what is running. If the bytecode tab shows an unverified match, stop: you are reading documentation, not code.
eth_call executes a read function against the latest block without a signature, so it returns exactly what the site's backend sees. The front-end is a view. The contract is the record. When they disagree, the contract wins, and the disagreement is itself the finding worth reporting.
Send eth_call to the router on chainId 56 with the ABI-encoded selector for the referrer getter and your address left-padded to 32 bytes. A zero address return means unbound. Repeat the call against a recent block and against a much older block to see whether the value has ever moved. Pin the block number in each call with the block parameter rather than relying on latest, or the two answers are not comparable.
Two endpoints can disagree, and the disagreement is diagnostic. Query a second independent RPC provider with the same calldata at the same pinned block. If one returns an address and the other returns zero at an identical height, one node is lagging or serving a fork, and neither answer should be trusted until a third agrees. Decision rule: if two of three endpoints match at the same block, take the majority and record all three responses with their block heights.
The worked example worth running is a wallet you believe was bound months ago. If the getter returns zero today, either the binding was never written or it lives on a different contract than the one you queried. Both outcomes change what you should do next, and neither is visible on a dashboard.
Every state write emits a log, and the transaction sender is recoverable from the transaction itself. A spreadsheet row carries no signature and no independently verifiable timestamp. A log entry carries the block number, the emitting address, and the indexed topics, and it is replicated across every BSC node that synced that height.
In BscScan's. Logs tab for the router, filter by your address as a topic. The From field of the resulting transaction is the signer. The block number is the write time, and you can compare it against the date a referral link was shared with you. A missing receipt is the edge case to plan for: if the transaction hash you were given returns nothing on one explorer, query the other endpoint by hash before concluding the write never happened, because an indexer can lag the chain.
One failure story makes the value concrete. A user binds to a referrer address pasted from a group chat, the write succeeds, and the attribution lands on a contract the project never published. No approval revocation undoes it, because the damage is in the binding slot, not in an allowance. The log is what lets you prove the write happened and when, which is the first step in arguing about it.
Address poisoning and vanity-matched contracts are the dominant failure path here, precisely because the mistake is not reversible by the usual hygiene. The only defensible check is character-level comparison against published addresses, done on the wallet's confirmation screen rather than in a chat message.
The YES token is 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and the fee router is 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d, published at https://yesswap. Compare the first six characters, then the last six, then the middle on the screen you are about to sign. Official channels are Telegram @web3yesswap and X @web3yesswap only, and the site never asks for a private key or seed phrase. Decision rule: if the address on the confirmation screen differs in any character from the published one, reject the transaction and start over from the site.
A second failure mode is cheaper but still costly. A user assumes a rebind exists because an approval reset worked, signs a second bind transaction, and pays gas for a call that reverts on the require guard. Read the write functions first. The guard tells you the answer before the mempool does.
Thin liquidity is the third edge case, and it bites after the binding rather than during it. A referral fee is only worth what the routed swap volume pays, so a binding on a pair with almost no depth attributes almost nothing. Check the pair's reserve before you value the referral, not the binding's success. 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 YESswapapprove(spender, 0) overwrites an allowance slot and emits Approval with value zero. A referral binding is a separate mapping, and it clears only if the contract exposes a setter that writes that slot.
Confirm with a read call on both addresses before assuming.
If the only write path is guarded by a zero-address check, the binding is one-shot and a second attempt reverts and still costs gas.
It means the slot is unset for that wallet on that contract. Either no binding was written, or you queried the wrong address or a lagging node. Re-query a second endpoint at the same pinned block before concluding anything.
Open the router's Logs tab on BscScan, filter by your address as a topic, and read the block number of the matching transaction. That block is the write time, and the transaction's From field is the signer.
Every card below opens the live product with your own wallet — no signup, no custody.
Everything above is one page away: token approval checker bsc.