Skip to main content

Shepley Capital

DEFI & WEB3
DeFi and Web3 - Cryptopedia by Shepley Capital

Unlimited Token Approvals: Why They Are Dangerous and How to Revoke Them

Unlimited token approvals are one of the most significant and underappreciated security risks for Australian DeFi investors, because they grant DeFi protocols the permanent ability to move unlimited amounts of any approved cryptocurrency token from your wallet without requiring your further confirmation. When you interact with a DeFi protocol for the first time (swapping on a DEX, depositing into a lending protocol, or approving a token for yield farming), most protocols request an “unlimited” approval: the approval transaction grants the smart contract permission to transfer up to 2^256 – 1 tokens (effectively infinite) from your wallet, not just the amount needed for that specific transaction. This unlimited approval persists indefinitely in the blockchain state until you explicitly revoke it, meaning that any future compromise of that protocol (through exploit, governance attack, or malicious upgrade) can result in the attacker draining your entire approved token balance from your wallet. For Australian DeFi investors who have used multiple protocols, accumulated approvals represent an invisible but substantial security risk that demands active management through regular token approval audits and revocation.

How Token Approvals Work: The ERC-20 Allowance Mechanism

The ERC-20 token standard (the technical specification that governs the majority of tokens on Ethereum and compatible blockchains) includes an allowance mechanism that enables smart contracts to transfer tokens on behalf of their owner. Without this mechanism, using a token in any DeFi protocol would require two separate transactions for every interaction: one to transfer the token to the protocol’s contract, and one for the protocol’s actual operation. The allowance mechanism allows you to pre-authorise a smart contract to pull a specified amount of a token from your wallet as needed, streamlining DeFi interactions to a single transaction after the initial approval. The approval is recorded on the blockchain in the token contract itself: the allowance mapping shows that your address has authorised a specific contract address to spend up to a specified amount. Any transaction from the authorised contract that tries to move more than the approved amount will fail, and any amount within the approved limit can be moved at any time without further wallet interaction.

The unlimited approval pattern emerged as a UX optimisation: if users were required to approve the exact amount for each transaction, they would need an additional transaction every time they interacted with a DeFi protocol. For protocols that users interact with frequently (a DEX where you swap daily, a lending protocol where you adjust positions weekly), the additional gas cost and friction of per-transaction approvals would be significant. Unlimited approvals solve this by requiring only one approval transaction per token per protocol, after which any future interactions proceed without additional approval steps. The UX advantage is real: requiring exact approvals would make DeFi substantially more expensive and cumbersome to use. However, the security cost is that the protocol retains permanent full access to your approved token balance, which is an ongoing risk even after you stop using the protocol actively. Many Australian DeFi investors have hundreds of approvals from protocols they used once or twice years ago, each representing a potential attack vector if those protocols are ever compromised.

Limited approvals (approving only the exact amount needed for a specific transaction) are the security-conscious alternative to unlimited approvals, and modern DeFi protocol interfaces are increasingly offering this option. When you approve only the exact amount needed, the allowance reduces to zero after the transaction (or to the remaining balance if the transaction did not use the full approved amount), leaving no residual exposure from that protocol. The DeFi security trade-off is that every subsequent interaction with the same protocol requires a new approval transaction (costing gas), which is acceptable for occasional users but adds friction for frequent traders. For Australian DeFi investors who use specific protocols infrequently (depositing quarterly into a yield farming position, for example), using limited approvals for these infrequent interactions and reserving unlimited approvals only for daily-use protocols minimises residual risk without making DeFi investing impractical. DeFi security frameworks increasingly recommend this tiered approval approach as a baseline security practice.

Smart Contract Vulnerability

The risk realisation pathway for unlimited token approvals follows a clear chain: (1) you approved Protocol X for unlimited USDC spending 18 months ago; (2) Protocol X gets exploited through a smart contract vulnerability or is compromised in a DeFi hack; (3) the attacker (now controlling Protocol X’s smart contract) initiates a transfer of USDC from every wallet that still has an unlimited approval to Protocol X; (4) your entire USDC balance is drained from your wallet to the attacker’s address. This scenario does not require your private key to be compromised, your hardware wallet to be stolen, or any interaction on your part: the attacker uses the approval you granted 18 months ago, which you may have completely forgotten about. The dormant approval risk is particularly important for Australian DeFi investors to understand: protocols that seemed safe when you granted the approval may have introduced vulnerabilities through subsequent upgrades, or the development team may have lost control of upgradeability keys. Regular token approval review and revocation is the only defence against this class of risk.

The ATO tax treatment of losses from token approval exploits follows the same principle as other DeFi security losses: if tokens are drained from your wallet through an approval exploit and the loss is clearly irrecoverable (no reasonable prospect of recovery), the loss is treated as a capital loss in the income year the loss is established. The key challenge is documentation: you need records showing which tokens were drained, their AUD market value at the time of draining, that the loss occurred through an approval exploit (transaction records on Etherscan provide this evidence), and that the loss is irrecoverable (the exploit post-mortem and confirmation that the draining contract is attacker-controlled). For Australian DeFi investors who suffer approval exploit losses, consulting a crypto-specialist accountant familiar with DeFi tax treatment ensures proper classification under Australian CGT rules and correct ATO reporting of the loss.

How to Check and Revoke Token Approvals

Revoke.cash is the most widely used tool for auditing and revoking token approvals across multiple chains. Connecting your wallet (or entering your wallet address in read-only mode) to Revoke.cash displays every active approval associated with your address, including: the approved token, the approved spender (the DeFi protocol’s contract address), the approved amount (unlimited or specific), the date of the approval, and the current token balance that could be drained. Revoke.cash allows you to filter by chain (Ethereum, Arbitrum, Optimism, Polygon, BNB Chain, and others) and sort by risk level. For each approval, you can initiate a revocation transaction directly through the Revoke.cash interface: the revocation sets the allowance for that spender to zero. For Australian DeFi investors who have been using DeFi protocols for multiple years, the initial Revoke.cash audit often reveals dozens of approvals, many from protocols no longer actively used. Systematically revoking these dormant approvals is one of the highest-impact security improvements available for a small amount of gas fee expenditure.

Etherscan’s Token Approval Checker is the alternative tool for auditing approvals, accessible directly through Etherscan for Ethereum mainnet (and chain-specific equivalents for Layer 2 networks). The Etherscan approval checker shows all active approvals for your address in a format that lets you revoke individual approvals directly through the Etherscan interface. The advantage of using Etherscan over Revoke.cash is that Etherscan is the authoritative on-chain data source: there is no third-party interpretation of the approval data, and the revocation interacts directly with the token contract through Etherscan’s write-contract interface. For Australian DeFi investors who prefer to minimise third-party tool exposure (since connecting your wallet to any interface carries some risk), using Etherscan’s native approval checker for Ethereum mainnet approvals provides the same revocation capability with the trusted Etherscan interface. For Layer 2 chains, the chain-specific explorers (Arbiscan, Basescan) provide equivalent functionality.

Defi Investors

Priority-based revocation strategy helps Australian DeFi investors manage the process of revoking a large number of approvals without spending excessive gas fees in a single session. The priority framework: revoke unlimited approvals for tokens you currently hold in significant quantities first (highest immediate risk), followed by unlimited approvals to deprecated or inactive protocols (which represent dormant risk without active benefit), followed by limited approvals for tokens you no longer hold (low risk but still cleanup). During low gas price periods on Ethereum mainnet (typically weekend evenings Sydney time, when network demand is lowest), batch multiple revocations in sequence to minimise per-revocation cost. On Layer 2 networks where gas fees are consistently low, revocations can be performed anytime without significant cost concerns. Setting a calendar reminder for quarterly approval audits ensures the revocation practice becomes a routine security habit rather than a one-time cleanup. This systematic approach to token approval management is a component of the broader DeFi wallet security framework.

Wallet-level approval management through hardware wallets adds a security layer to the approval workflow. When you hold your DeFi assets in a hardware wallet and interact with DeFi protocols through interfaces like MetaMask connected to your Ledger or Trezor, every approval transaction (and every revocation) must be physically confirmed on the hardware wallet device. This physical confirmation requirement means that an attacker who compromises your browser or MetaMask cannot silently create new approvals on your behalf: they would need physical access to your hardware wallet device. However, the hardware wallet security advantage applies only to new approvals granted after you started using the hardware wallet: approvals granted from a previous software wallet address are still present at that address if you have not revoked them. For Australian DeFi investors who have migrated to hardware wallets from software wallets, auditing and revoking all approvals on the old software wallet addresses is an important security closure step alongside the hardware wallet setup. Shepley Capital membership provides guidance on the complete DeFi wallet security process for Australian investors.

Best Practices for Approval Management and DeFi Security

Maintaining an approval hygiene routine as a regular practice (quarterly at minimum, monthly for active DeFi investors) provides ongoing protection against the accumulating risk of historical approvals. The routine: run Revoke.cash on each chain you use, review all approvals displayed, revoke all unlimited approvals to protocols you no longer use actively, and revoke unlimited approvals for tokens you currently hold to any protocol that has had a security incident or that you no longer have high confidence in. Document the review date and what was revoked, so that your next review starts from a known clean state. For Australian DeFi investors who use DeFi protocols across multiple chains (Ethereum, Arbitrum, Optimism, Base, Polygon, and others), running the review across all chains adds time but ensures comprehensive coverage. A thorough quarterly review across 5-6 chains with moderate DeFi portfolio activity typically takes 30-60 minutes and costs a small amount in gas for revocations.

New protocol approval discipline means evaluating whether to grant unlimited or limited approval each time you first interact with a new DeFi protocol. For protocols with established audit track records, deep TVL, and long operational histories (major DeFi protocols like Aave, Uniswap, Curve, and similar top-tier protocols), granting unlimited approval is reasonable if you plan to interact with the protocol frequently. For new, unaudited, or low-TVL protocols (new yield farming launches, experimental protocols, protocols you are trying for the first time), granting only limited approval (the exact amount for your first transaction) limits the exposure if the protocol turns out to be malicious or poorly secured. For Australian DeFi investors, applying this tier-based approval approach at the point of first interaction avoids accumulating high-risk unlimited approvals from lower-quality protocols over time. The DeFi security discipline of asking “how much approval does this protocol really need?” at each new interaction significantly reduces your long-term approval risk profile.

Defi Security Tools

Monitoring approval changes through wallet monitoring tools adds another layer of protection against malicious approval grants. Some DeFi security tools and wallet monitoring services (including Revoke.cash, certain MetaMask Snaps, and dedicated wallet monitoring platforms) can alert you when your wallet address is used to grant a new token approval. If you receive an alert for an approval you did not initiate, this is a strong signal that your wallet may be compromised (your private key was exposed, your browser was running malicious code that signed a transaction you did not see, or you were the victim of a phishing attack that obtained your signature). For Australian DeFi investors who hold significant assets in DeFi protocols, wallet monitoring for unexpected approval changes provides an early warning that allows rapid response (moving assets to a clean wallet before the attacker can act on the compromised approval).

The relationship between token approvals and self-custody security is direct: proper approval management is one of the most practical security improvements available to any Australian DeFi investor who holds significant assets in on-chain DeFi protocols. Combined with hardware wallet usage for any position above your “walking around” threshold, regular token approval revocation practice closes the most common attack vectors available to exploit even sophisticated DeFi investors. The complete DeFi security framework for Australian investors includes: hardware wallet custody, limited or tiered approval grants, quarterly approval audits and revocations, wallet monitoring for unexpected transactions, and phishing awareness that covers the fake DeFi interface and fake wallet update attack patterns that prey on DeFi investors specifically. Shepley Capital membership provides the comprehensive DeFi security education and ongoing security alerting that supports Australian investors maintaining safe DeFi participation.

Frequently Asked Questions

What are unlimited token approvals and why are they risky?

Unlimited token approvals are one of the most significant and underappreciated security risks for Australian DeFi investors, because they grant DeFi protocols the permanent ability to move unlimited amounts of any approved cryptocurrency token from your wallet without requiring your further confirmation. When you interact with a DeFi protocol for the first time (swapping on a DEX, depositing into a lending protocol, or approving a token for yield farming), most protocols request an "unlimited" approval: the approval transaction grants the smart contract permission to transfer up to 2^256 - 1 tokens (effectively infinite) from your wallet, not just the amount needed for that specific transaction. This unlimited approval persists indefinitely in the blockchain state until you explicitly revoke it, meaning that any future compromise of that protocol (through exploit, governance attack, or malicious upgrade) can result in the attacker draining your entire approved token balance from your wallet.

How Token Approvals Work: The ERC-20 Allowance Mechanism?

The ERC-20 token standard (the technical specification that governs the majority of tokens on Ethereum and compatible blockchains) includes an allowance mechanism that enables smart contracts to transfer tokens on behalf of their owner. Without this mechanism, using a token in any DeFi protocol would require two separate transactions for every interaction: one to transfer the token to the protocol's contract, and one for the protocol's actual operation. The allowance mechanism allows you to pre-authorise a smart contract to pull a specified amount of a token from your wallet as needed, streamlining DeFi interactions to a single transaction after the initial approval.

How does an unlimited approval actually get exploited?

The risk realisation pathway for unlimited token approvals follows a clear chain: (1) you approved Protocol X for unlimited USDC spending 18 months ago; (2) Protocol X gets exploited through a smart contract vulnerability or is compromised in a DeFi hack; (3) the attacker (now controlling Protocol X's smart contract) initiates a transfer of USDC from every wallet that still has an unlimited approval to Protocol X; (4) your entire USDC balance is drained from your wallet to the attacker's address. This scenario does not require your private key to be compromised, your hardware wallet to be stolen, or any interaction on your part: the attacker uses the approval you granted 18 months ago, which you may have completely forgotten about. The dormant approval risk is particularly important for Australian DeFi investors to understand: protocols that seemed safe when you granted the approval may have introduced vulnerabilities through subsequent upgrades, or the development team may have lost control of upgradeability keys.

How to Check and Revoke Token Approvals?

Revoke.cash is the most widely used tool for auditing and revoking token approvals across multiple chains. Connecting your wallet (or entering your wallet address in read-only mode) to Revoke.cash displays every active approval associated with your address, including: the approved token, the approved spender (the DeFi protocol's contract address), the approved amount (unlimited or specific), the date of the approval, and the current token balance that could be drained. Revoke.cash allows you to filter by chain (Ethereum, Arbitrum, Optimism, Polygon, BNB Chain, and others) and sort by risk level.

How should you prioritise revoking old approvals?

Priority-based revocation strategy helps Australian DeFi investors manage the process of revoking a large number of approvals without spending excessive gas fees in a single session. The priority framework: revoke unlimited approvals for tokens you currently hold in significant quantities first (highest immediate risk), followed by unlimited approvals to deprecated or inactive protocols (which represent dormant risk without active benefit), followed by limited approvals for tokens you no longer hold (low risk but still cleanup). During low gas price periods on Ethereum mainnet (typically weekend evenings Sydney time, when network demand is lowest), batch multiple revocations in sequence to minimise per-revocation cost.

What does good approval hygiene look like?

Maintaining an approval hygiene routine as a regular practice (quarterly at minimum, monthly for active DeFi investors) provides ongoing protection against the accumulating risk of historical approvals. The routine: run Revoke.cash on each chain you use, review all approvals displayed, revoke all unlimited approvals to protocols you no longer use actively, and revoke unlimited approvals for tokens you currently hold to any protocol that has had a security incident or that you no longer have high confidence in. Document the review date and what was revoked, so that your next review starts from a known clean state.

Which tools monitor approval changes?

Monitoring approval changes through wallet monitoring tools adds another layer of protection against malicious approval grants. Some DeFi security tools and wallet monitoring services (including Revoke.cash, certain MetaMask Snaps, and dedicated wallet monitoring platforms) can alert you when your wallet address is used to grant a new token approval. If you receive an alert for an approval you did not initiate, this is a strong signal that your wallet may be compromised (your private key was exposed, your browser was running malicious code that signed a transaction you did not see, or you were the victim of a phishing attack that obtained your signature).

What are the risks associated with Unlimited Token Approvals?

An unlimited approval granted years ago remains live indefinitely, so a protocol that was safe when you used it can be compromised later and drain those tokens from a wallet whose keys were never exposed. This is the most common way well-secured wallets still lose funds. Revoking costs gas, which is why approvals accumulate, but the exposure grows with every protocol used. Setting finite approvals where the interface allows it, and reviewing them periodically, removes most of the risk.

Choose your next topic from our Cryptopedia​

Grow your crypto portfolio with the latest insights, straight to your inbox!

Join 10,150+ CEOs, Business Owners, Parents, Students, & more receiving actionable crypto insights to grow their portfolios.