Guide · Security
How to revoke token approvals
Every time you let a router move an ERC-20 token, you grant an allowance that stays active until you change it. Over months of trading, these standing permissions accumulate, and any contract you ever approved with an unlimited allowance remains able to move that token — including if it is later upgraded maliciously or compromised. Revoking approvals you no longer need is the cheapest, highest-leverage security habit in DeFi. This guide explains how allowances work, how to audit them, and how to revoke the ones that are dead weight.
What an approval actually grants
Exact vs unlimited allowances
Audit your existing approvals
Revoke what you do not need
Build it into your routine
Legal
Risk disclosure
XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.
Frequently asked questions
Why are unlimited approvals risky?
They are a standing permission: the approved contract can move that token at any time up to the limit. If the contract is later exploited or upgraded maliciously, your approval is the path it uses.
Should I always approve the exact amount?
For most trades, yes — it removes the standing risk between trades at the cost of an extra approval next time. For constantly-used routers you might accept unlimited, but review those periodically.
How do I see my active approvals?
Use a reputable allowance-checker or your wallet's permissions view, per chain, to list each token, spender, and allowance amount.
Does revoking cost money?
Yes, revoking is an on-chain transaction that costs gas. Prioritize unlimited approvals on valuable tokens and approvals to contracts you no longer trust.
Trade on XAUConnect
Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.
Continue exploring
Related markets, guides & networks
Curated next steps based on this topic — deepen your research before you trade.
How to swap tokens on XAUConnect
Step-by-step guide to swapping tokens on XAUConnect: connect a wallet, read the quote, approve the token, confirm, and v
How to verify a token contract before trading
Confirm you are trading the real token: get the contract address from an official source, compare the full string, check
Slippage vs price impact: what's the difference?
Two terms traders confuse constantly. Slippage is a tolerance you set; price impact is what your trade size does to the
What is a fair launch?
Fair launches aim to give everyone the same starting line — no pre-sale, no team allocation. What that means in practice
Market cap vs liquidity: don't confuse them
A token can have a huge market cap and almost no liquidity. Why the two are different, and why liquidity is what determi
Build programmatically
Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.