Every time you swap tokens on a decentralized exchange, deposit into a lending protocol or list an NFT for sale, your wallet usually asks you to grant a permission first. That permission, called a token approval, lets a smart contract move your tokens on your behalf. Approvals are what make DeFi work, but they are also one of the most common ways people lose funds: an approval given to a malicious contract, or to a legitimate one that is later hacked, can be used to take tokens from your wallet without any further action from you.
This guide explains how approvals work under the ERC-20 standard, how signature-based approvals such as EIP-2612 permits and Uniswap’s Permit2 differ, what changed with EIP-7702, and how to review and revoke approvals you no longer need. It uses real on-chain data from a November 29, 2026 incident on BNB Chain to show what an approval looks like in practice.
In this article
- Key takeaways
- What a token approval is
- How ERC-20 approvals work
- A real approval, from the chain
- Why unlimited approvals are risky
- NFT approvals
- Permits: approvals by signature
- EIP-7702 and why it matters for approvals
- Reading an approval request in your wallet
- How to review and revoke approvals
- Safe habits for approvals and signatures
- How this relates to trading on a centralized exchange
- Frequently asked questions
- Sources and research limits
Key takeaways
- An approval is a standing permission. Under ERC-20, approving a spender lets it withdraw from your account multiple times, up to the approved amount, until the allowance is used up or changed.
- Unlimited approvals are convenient and risky. Many apps request the maximum possible amount so you only approve once. If that spender is later compromised, everything you hold of that token can be taken.
- Signatures can be approvals too. EIP-2612 permits and Permit2 let you grant spending rights by signing a message, without sending a transaction. Signing an unfamiliar message can be as dangerous as approving a contract.
- Revoking means setting the allowance to zero. For ERC-20 tokens, you revoke by calling
approveagain with an amount of 0. This costs a small network fee. - Centralized exchange balances are different. Funds held in a centralized exchange account are not controlled by on-chain approvals from your own wallet. Approvals matter when you use a self-custody wallet.
What a token approval is
Revoke.cash, a widely used approval-management tool, describes token approvals as permissions given to a smart contract to spend your tokens on your behalf, a common pattern for decentralized exchanges, lending protocols and other decentralized applications. If you want to trade tokens on a DEX, for example, you need to give the DEX permission to swap those tokens for you.
The reason is technical. A token like USDT or USDC on Ethereum or BNB Chain is itself a smart contract that keeps a ledger of balances. Another contract, such as a DEX router, cannot simply reach into that ledger and move your balance. The token contract needs a record that you have authorized it. That record is the approval, stored in a mapping inside the token contract that tracks who has granted approval to whom, and for how much.
How ERC-20 approvals work
The ERC-20 standard, formally EIP-20, defines three pieces that work together:
| Function or event | What it does |
|---|---|
approve(spender, value) | Allows the spender to withdraw from your account multiple times, up to the value. Calling it again overwrites the current allowance. |
allowance(owner, spender) | Returns how much the spender is still allowed to withdraw from the owner. |
transferFrom(from, to, value) | Lets an approved spender move tokens from the owner to another address, reducing the allowance. |
Approval event | Emitted on any successful call to approve, recording owner, spender and value. |
The sequence for a typical swap is: you call approve on the token contract, naming the DEX router as spender; then you call the router, which calls transferFrom on the token to pull your tokens in and complete the trade. Two transactions, two fees, which is why many interfaces ask for a large or unlimited approval the first time so you can skip step one later.
Why the standard says reset to zero first
EIP-20 includes a note that is easy to overlook. To prevent known attack vectors, it says clients should make sure to create user interfaces in such a way that they set the allowance first to 0 before setting it to another value for the same spender. The issue is a race condition: if you lower an allowance from 100 to 50, a spender watching the network could spend the 100 before your change lands and then spend the new 50 as well. The standard says the contract itself should not enforce this, for backwards compatibility. This race condition is catalogued as SWC-114 in the Smart Contract Weakness Classification.
A real approval, from the chain
Approvals are easier to understand when you see one. On November 29, 2026, a contract linked to the POTS Money protocol on BNB Chain minted 1,000,000,000 IBS tokens and sold them into a liquidity pool in the same transaction, in an incident covered in a separate article on this blog. The transaction receipt shows the approval step clearly. The blog read it from a public BNB Chain RPC endpoint.
| Field | Value |
|---|---|
| Event | Approval, emitted by the IBS token contract 0x255e746a… |
| Owner | The stabilizer contract 0xcba922f6… |
| Spender | The PancakeSwap V2 router 0x10ED43C7… |
| Value | 1,000,000,000,000,000,000,000,000,000 raw units, which is 1,000,000,000 IBS at 18 decimals |
The very next log in the same receipt is the router moving exactly that amount from the owner to the pool. When the blog later queried allowance(owner, router) on the token contract, it returned 0: the router had spent the entire allowance. This is the approve-then-transferFrom pattern working exactly as designed. The problem in that incident was not the approval mechanism but who controlled the account that triggered it.
Two details are worth noting. First, raw values include all decimal places. An approval for “1,000 USDC” is recorded as 1,000 followed by six zeros, because USDC uses six decimals on many chains, while most tokens use 18. Wallets and tools convert these for display. Second, the approval is recorded as an event, so anyone can see it. Approval checkers work by scanning these events for your address.
Why unlimited approvals are risky
Revoke.cash’s explainer puts the core risk plainly: if you give a smart contract permission to spend your tokens, it can spend them at any time. If the contract is hacked or malicious, your tokens can be stolen. It cites the SushiSwap exploit of April 2023 as an example of an established project being hacked in a way that put users’ approvals at risk.
An unlimited approval, usually set to the largest number the contract can store, means the spender’s permission never runs out. You may have used a protocol once two years ago and forgotten about it, but the approval is still there. If that protocol’s contract is later found to have a flaw, an attacker may be able to use your old approval to drain the token from your wallet.
Scams exploit approvals directly. Revoke.cash lists common patterns, including tricking people into approving a contract the scammer controls, and tricking NFT holders into signing a marketplace listing that sells their assets for 0 ETH.
Limited versus unlimited: a trade-off
| Approach | Pros | Cons |
|---|---|---|
| Exact-amount approval | Spender can take no more than you intended; nothing left over after the trade | Approval needed again each time, with an extra fee |
| Larger fixed amount | Fewer approvals; risk capped at a chosen number | Leftover allowance remains until used or revoked |
| Unlimited approval | Approve once, never again for that spender | Your full balance of that token is exposed if the spender is compromised |
Many wallets let you edit the amount in the approval request before you confirm it. Using an exact or modest amount is a simple habit that limits damage.
NFT approvals
NFTs have their own approval system. According to Revoke.cash, there are two types. A limited approval uses an approve function to authorize one address to transfer one specific NFT, identified by its ID; it can be granted to only one address at a time and is revoked automatically when the NFT is transferred. An unlimited approval uses setApprovalForAll to authorize an address to transfer any NFT in a collection, and is revoked by calling the same function with false. Because limited approvals can go to only one address at a time, most marketplaces ask for the unlimited type. Semi-fungible tokens have setApprovalForAll but no per-item approve.
Permits: approvals by signature
EIP-2612
EIP-2612 extends ERC-20 with a permit function. Its authors note that the original approve must be sent by the token owner as a transaction, which means holding the chain’s native token to pay fees. A permit instead lets you set an allowance by signing a structured message, following the EIP-712 typed-data format. Anyone, including the app you are using, can then submit that signature on-chain to set the allowance.
The signed message includes the owner, spender, value, a nonce and a deadline. A call to permit sets the allowance and increments the owner’s nonce only if the current block time is at or before the deadline, the owner is not the zero address, the nonce matches, and the signature is valid. Otherwise it must revert.
The security section of EIP-2612 makes points that matter to users:
- Someone other than the intended party can always front-run a permit and submit it first, though the result for the signer is the same.
- Signed permits can be censored: whoever receives the signature can choose not to submit it. The deadline is one mitigation.
- The deadline can be set to the maximum value, creating permits that effectively never expire.
- The standard ERC-20 approval race condition, SWC-114, applies to permit as well.
The practical lesson: a signature request in your wallet that mentions “Permit,” a spender address and a value is an approval, even though it costs nothing to sign. If a phishing site obtains that signature, it can submit it and then use transferFrom to take your tokens.
Permit2
Not every token supports EIP-2612. Uniswap’s Permit2 contract offers signature-based approvals for any ERC-20 token. According to Uniswap’s documentation, Permit2 combines two contracts:
- AllowanceTransfer stores a standing allowance inside Permit2 with an amount and an expiration. The spender can call
transferFromrepeatedly until the allowance is exhausted or expires, which suits recurring flows. - SignatureTransfer authorizes a single, nonce-scoped transfer through one signature. The permission does not persist after the transaction, so it leaves no standing allowance.
To use Permit2, you first approve the Permit2 contract itself on each token. Uniswap’s documentation notes that users can choose a max approval for this step. After that, apps request permissions through Permit2 signatures, with benefits the documentation lists as batching, expirations and unordered nonces that a bare EIP-2612 permit does not provide.
Permit2 is deployed at 0x000000000022D473030F116dDEE9F6B43aC78BA3. The blog checked that contract code exists at that address on BNB Chain. The structure means two layers to review: the token-level approval to Permit2, and the Permit2-level allowances to individual apps. A revocation tool that understands Permit2 can show both.
EIP-7702 and why it matters for approvals
EIP-7702 adds a transaction type that lets an ordinary externally owned account set code in its account. It does this by attaching signed authorization tuples, and for each one a delegation indicator, the bytes 0xef0100 followed by an address, is written to the account’s code. From then on, calls to the account execute the delegated contract’s code. The EIP’s stated goals include batching multiple operations in one transaction.
For users, the important point is that an EIP-7702 authorization is a very powerful signature. Delegating your account to a contract gives that contract’s code control over your account, which goes beyond a single token allowance. The EIP’s own security considerations list pitfalls that delegate contracts must handle, such as replay protection and signing over the target and calldata, and warn that a poorly implemented delegate can allow a malicious actor to take near complete control over a signer’s EOA. A malicious or badly written delegation could therefore be worse than a malicious token approval, because it is not limited to one token or one amount.
A real example: the address that received the funds in the POTS Money incident, 0x25d21c…ccced2, has an EIP-7702 delegation designator in its code field on BNB Chain, according to the blog’s own query. That does not mean EIP-7702 was involved in how the funds were taken; it shows that delegated accounts are already in use on the chain.
Reading an approval request in your wallet
Wallet interfaces differ, but an approval or permit request usually shows the same core fields. Knowing what each one means makes it easier to spot something wrong.
| Field you may see | What it means | What to check |
|---|---|---|
| Token or contract | The token whose allowance will change | Is it the token you meant to trade, and the genuine contract for it? |
| Spender | The address that will be allowed to move your tokens | Does it match the app you are using? An unknown externally owned account as spender is a red flag. |
| Amount or value | The allowance being granted | Is it the amount you need, or unlimited? |
| Deadline or expiration | For permits and Permit2, when the signature or allowance expires | A far-future or maximum deadline means the permission lasts indefinitely. |
| Nonce | A counter that prevents the same signature being reused | Usually set automatically; you rarely need to change it. |
If a site asks you to sign something you cannot read, such as a long hexadecimal string with no explanation, that is a reason to stop. Legitimate apps generally use readable typed-data signatures for permits.
How to review and revoke approvals
Step by step
- Use a reputable approval checker. Tools such as Revoke.cash scan approval events for your address across supported networks. Some block explorers also offer approval checkers. Make sure you are on the real site, ideally via a bookmark rather than a search ad.
- Connect in read-only mode where possible. Many checkers can display approvals for any address you paste in, without connecting a wallet.
- Sort by risk. Look first at unlimited approvals, approvals to contracts you do not recognize, and approvals for tokens you hold in large amounts.
- Revoke what you no longer use. For ERC-20 tokens, revoking calls
approvewith an amount of 0. For NFT collections, it callssetApprovalForAllwith false. Each revocation is a transaction with a network fee. - Check Permit2 separately. If you have used Permit2-based apps, review allowances inside Permit2 as well as the token-level approval to Permit2.
- Repeat periodically. A quarterly check is a reasonable habit for active DeFi users; after any security incident affecting a protocol you used, check immediately.
What revoking cannot do
- It cannot reverse a theft that already happened. Once tokens are moved, the approval was already used.
- It does not cancel a signed permit that has not yet been submitted, unless the permit’s nonce is used or its deadline passes. For EIP-2612, the standard notes that the signer can submit the permit themselves, which can render previously signed permits invalid; using up the nonce is one way to do this.
- It does not help if your seed phrase or private key is compromised. In that case, an attacker can sign anything. Move funds to a new wallet.
Safe habits for approvals and signatures
- Read every wallet prompt. Check the spender address, the token and the amount. Be suspicious of any request for “unlimited” or very large amounts from a site you just found.
- Treat signatures as seriously as transactions. Permit, Permit2 and EIP-7702 authorizations can all grant spending power without a fee.
- Use a separate wallet for experiments. Keep long-term holdings in a wallet that never connects to new apps, and use a second wallet with small balances for trying new protocols.
- Prefer exact amounts. Edit the approval amount in your wallet when the interface allows.
- Use transaction simulation. Some wallets and browser extensions show what a transaction or signature will do before you confirm.
- Be careful after incidents. When a protocol is hacked, scammers often set up fake “claim” or “refund” sites that ask for approvals.
How this relates to trading on a centralized exchange
When you hold USDT or other tokens in a centralized exchange account, trading inside that account does not use on-chain approvals from your personal wallet; the exchange holds the assets in its own custody. Approvals become relevant when you withdraw to a self-custody wallet and interact with DeFi. Stablecoins are among the most commonly approved tokens, since they are used for swaps and lending, so they are worth checking first. For more on how stablecoin risks differ, see the blog’s guide to zero-fee stablecoin trading and depeg risk.
Frequently asked questions
Does approving a token send it anywhere?
No. An approval only records a permission. Tokens move when the spender calls transferFrom.
Is it dangerous to leave old approvals?
It can be. An old approval to a contract that is later hacked can be used to take tokens. Revoking unused approvals reduces that risk.
Why does revoking cost a fee?
Revoking changes the token contract’s state by setting the allowance to zero, which requires a transaction.
Are signature requests safer than approvals because they are free?
No. A permit or Permit2 signature can grant the same spending rights as an approval transaction. An EIP-7702 authorization can grant even broader control.
What should I do if I approved a scam contract?
Revoke the approval immediately and move remaining tokens of that type to a different wallet if you are unsure. If you shared your seed phrase, treat the whole wallet as compromised.
Sources and research limits
Primary sources: EIP-20, EIP-2612 and EIP-7702 on the Ethereum Improvement Proposals site; Uniswap’s Permit2 overview; and Revoke.cash’s explainer on token approvals. On-chain examples, including the IBS approval, the current allowance of 0, Permit2 code on BNB Chain and the delegation designator, were read by the blog from public BNB Chain RPC endpoints. The SushiSwap example is as described by Revoke.cash. Tools mentioned are examples, not endorsements; always verify a site’s address before connecting a wallet. This article is not investment advice.