Learn · Security
What is a token approval and why does it matter?
Before a decentralized exchange can move your ERC-20 tokens, you have to grant it permission through an approval. This small, easy-to-overlook step is one of the most important security surfaces in DeFi: approvals are how routers swap your tokens, and they are also how drained wallets get drained. Understanding what an approval grants, the difference between exact and unlimited allowances, and why stale approvals are a standing risk turns a confusing extra transaction into a deliberate security decision.
Why approvals exist
Exact vs unlimited allowances
Why stale approvals are dangerous
Managing approvals well
Approvals are not the same as signatures
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 does my swap need an approval transaction?
ERC-20 tokens require explicit authorization before a router can move them. The approval grants that permission; native coins like ETH skip it.
Should I approve unlimited or exact amounts?
Exact is safer for valuable tokens because it closes the standing risk between trades. Unlimited is convenient but leaves a permanent permission you must remember to review.
Do approvals expire?
No. They remain active until you revoke them, which is why old unlimited approvals are a common path for wallet drains after a contract is compromised.
How do I stay safe with approvals?
Prefer exact allowances, audit and revoke stale ones periodically, and never sign an approval or message you do not understand.
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 spot a rug pull
Concrete on-chain warning signs of a rug: unlocked liquidity, concentrated holders, mint/blacklist permissions, and anon
What is a DEX aggregator?
A DEX aggregator scans many liquidity venues and routes your trade for the best net output. How aggregation and routing
Gas fees explained across chains
What you actually pay to transact on Ethereum, L2s, and Solana. Base fees, priority fees, and why a failed transaction s
Build programmatically
Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.