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

Revoke Token Approvals BSC: Token approvals on BSC: infinite versus exact allowance

Updated 2026-12-02 · YESswap

Short answer. An approval writes one uint256 into the token's allowances mapping, and nothing else moves. What that number permits at every later block is the entire decision.
Best match for this articleWallet toolsBatch balance, batch transfer, approvals and wallet creation.

What approve() writes, and who can spend it afterwards

Knowing how revoke token approvals BSC works is what separates a clean trade from a costly one. Calling approve(spender, amount) on a BEP-20 token writes a single uint256 into the allowances mapping, keyed by the pair (owner, spender). No balance changes at approval time. The spender gains a permission, not a payment.

Spending happens later inside transferFrom(from, to, value). That function reads the slot, checks value <= allowance, moves the tokens, and then writes allowance minus value back to storage. One branch changes everything: when the stored allowance equals type(uint256). max, the standard implementation skips the decrement, so the slot stays at max indefinitely. Infinite and exact are therefore not two settings of one dial. They are two different state machines. One drains with every swap. The other never moves until you overwrite it.

Confirming which state you are in takes two reads. Call allowance(owner, spender) on the token contract through eth_call at latest block, and separately confirm that the spender address is the router the DEX actually invokes rather than an intermediate contract sitting in front of it. The Approval(owner, spender, value) event on the token contract's. Events tab is the historical record of every write to that slot. One edge case is worth knowing: an aggregator route can call several routers in one transaction, so the spender you must check is the one whose transferFrom actually pulls your token, not the first address in the path.

Telling max from exact by the returned word

BscScan may print it in full or truncate the display. The raw eth_call return is unambiguous: a 32-byte word of all f's, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, is the infinite case. Any other finite word is an exact budget.

A worked read makes the distinction concrete. Suppose you approve a router for a fixed amount, execute one swap, then re-read the slot. The returned word has dropped by exactly the swap size, and the token's Transfer event from your address to the pool reports the same figure. Those two numbers should reconcile to the wei. Repeat the read on a wallet that signed max instead, and the word is unchanged after the swap. Same transfer, same gas, different stored state.

The max value is not a large number in practice. It is a standing authorization for that spender to move your entire balance at any future block, with no further signature from you. That is the thing you are actually signing when you tap max. Decision rule: if the token is YES (0xc22955b28e092060bc5d1e1f3b9d4dcd81091111) and you hold a meaningful share of supply, sign an exact figure equal to the trade plus a small buffer, not max.

When an exact allowance is the right call

Exact approvals bound the worst case to the number you signed. If the spender contract is later upgraded, compromised, or turns out to be an address you misread, the exposure is your approved amount, not your position. For a one-off swap of known size, or for any token where you hold a large share of your portfolio, the finite number is the conservative default. If you are swapping into a thin pool, size the approval to the trade you can actually fill, because a max approval on a thin pair is exposure with no matching upside.

The friction is real and worth naming. Once the budget drains, the next swap needs a fresh approve transaction before the swap itself, so you sign twice and pay gas twice. Treat that second signature as a checkpoint rather than a nuisance. It forces you to look at the spender address again at the moment of spending. If you are trading repeatedly inside one session, the double-sign cost is the price of a bounded worst case; if you are swapping once and leaving, exact is the default.

Verification after the fact is a single read. Re-run allowance(owner, spender) and confirm it fell by the swap amount. If it did not fall, either the spender is not the contract you think it is, or the slot was set to max and the decrement was skipped. One edge case: if the swap transaction reverted, the allowance is untouched and the Transfer event is absent, so check the receipt status before concluding the slot is wrong.

What max approval buys, and what it costs

Approving the maximum once removes the repeated approve transaction, so every subsequent swap is a single transferFrom-signed call. That is the entire benefit. It is a gas and clicks saving, not a security property.

The cost is duration. The spender can move the full balance until you revoke, and revocation is itself an on-chain transaction signed from the same wallet. Nothing about max approval expires, and nothing about it is scoped to one pair or one session. Timing rule: if you will not trade the token again within the session, revoke rather than leave the grant standing.

The event history separates the two patterns cleanly. One infinite Approval followed by many Transfer events is the max-approval wallet. A stream of Approval events, each followed by a single Transfer, is the exact-approval wallet. Reading that sequence on BscScan tells you which habit a given address has, including your own. If two RPC endpoints disagree on the latest allowance, trust the one whose block number matches the receipt you are checking, and re-query by block number rather than latest.

Revoking without trusting a random site

Revocation is approve(spender, 0) sent to the token contract from the owner wallet. That is the whole mechanism. It needs no third-party revoker contract, and routing it through one adds a new trust decision to the exact problem you are trying to close.

The direct path runs through. Write Contract tab on the token contract. Connect the owner wallet, call approve with the spender address and 0, then read allowance(owner, spender) again and confirm it returns zero. The Approval event carrying value 0 is the receipt-level proof that the slot was overwritten. If the receipt is missing from your node, re-fetch it by transaction hash from a second endpoint before assuming the revoke failed.

Three failure modes deserve a check before you sign anything. Approving a spender that is not the router the DEX actually calls leaves the allowance with a contract you never intended to trust. Leaving an infinite approval on a token you stopped trading means the grant outlives your use of the platform. Revoking through an unaudited tool that requests a fresh approval or an off-chain signature can reintroduce the exposure you were closing. Decision rule: if a revoke tool asks you to approve anything other than zero, close the tab.

Checking the YESswap contracts before you approve

The YES token on BNB. Smart Chain is 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, a BEP-20 with 18 decimals. The fee router is 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. Those two strings are the only addresses this article asks you to copy, and any address that differs from them should be treated as unverified until you read it on chain yourself.

Before signing an approval on YESswap, compare the spender field in your wallet's confirmation screen against the router address above, character by character. Wallets truncate addresses in the display, so expand the full value. If the spender is an intermediate contract, the allowance sits there, not with the router. Cross-check by reading the router's allowance slot for your address on the YES token; if it is zero after a swap, the pull came from somewhere else.

The official domain is https://yesswap. Telegram and X are both @web3yesswap. No other handle or domain is official, and the platform is non-custodial: every transaction is signed in your wallet, and no legitimate flow asks for a private key or seed phrase. Verify on chain before trading. 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

What is the difference between an infinite and an exact token approval?

Infinite sets the allowance slot to 2^256 minus 1, and the token skips decrementing it, so the spender can move the full balance indefinitely. Exact sets a finite number that decreases with each transferFrom.

Does revoking an approval cost gas?

Revocation is an on-chain approve(spender, 0) transaction signed from the owner wallet, so it consumes gas like any other state-changing call.

Can a DEX router spend my tokens without an approval?

transferFrom reverts if value exceeds the stored allowance, so the router can only move up to what the allowance slot permits.

Is approving the maximum safe on BSC?

It is a permanent grant to that spender until you revoke. Treat it as a trust decision about the spender contract, not a gas optimization you can undo for free.

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: token approval checker bsc.

Wallet toolsStake and mineYour wallet signs every step. Nothing is custodied.