Infinite Approval
A token approval granting a protocol unlimited spending access; convenient but risky if the contract is later exploited.
Infinite Approval — An infinite approval is a token approval that grants a smart contract permission to spend an unlimited amount of a specific token from your wallet. Many DeFi interfaces request infinite approvals by default to save users gas on future transactions, but this practice creates a persistent security risk.
How It Works
When a DeFi application requests an infinite approval, it sets the allowance to the maximum possible value — typically 2^256 - 1 (an astronomically large number). This means the approved contract can spend any amount of that token from your wallet, now or at any point in the future, without requiring another approval transaction.
DeFi protocols request infinite approvals because each approval transaction costs gas. By approving an unlimited amount upfront, users only pay the gas fee once, even if they perform dozens or hundreds of subsequent transactions with that contract. On Ethereum mainnet, where gas fees can be significant, this saves real money over time.
Most modern wallet interfaces (MetaMask, Rabby, Phantom) now display the requested approval amount and let you edit it to a custom value before signing. This allows users to choose between the convenience of infinite approvals and the security of exact-amount approvals.
Why It Matters in DeFi
Infinite approvals are the single largest attack surface for DeFi wallet exploits. If an approved contract is later compromised through a security vulnerability, the attacker can drain all approved tokens — not just the amount you originally intended to use. Major exploits like the Badger DAO attack ($120 million) and various phishing campaigns have exploited lingering infinite approvals.
Security-conscious traders limit approvals to the exact amount needed per transaction and regularly revoke unused approvals. While this costs more gas, it significantly reduces the blast radius of any single contract compromise.
Real-World Example
A trader approves Uniswap's router for infinite USDC spending, then swaps 500 USDC. Months later, a hypothetical vulnerability in the router contract is discovered. Because the infinite approval is still active, an attacker exploiting that vulnerability could drain the trader's entire USDC balance — not just the 500 USDC originally swapped. Had the trader approved only 500 USDC, the exposure would have been limited to zero (since those tokens were already spent).
Related Terms
Token Approval
A transaction granting a smart contract permission to spend a specific amount of tokens on behalf of a wallet.
Read definition DeFi & AMMRevoke (Token Approval)
Canceling a smart contract's permission to spend tokens from a wallet, a security best practice after using DeFi apps.
Read definition DeFi & AMMSmart Contract
Self-executing code stored on a blockchain that automatically enforces the terms of an agreement without intermediaries.
Read definition DEX & ExchangeDecentralized Exchange (DEX)
A peer-to-peer trading platform where transactions are executed via smart contracts on-chain without a central intermediary.
Read definitionFrequently Asked Questions
Common questions about Infinite Approval in cryptocurrency and DeFi.
It depends on your risk tolerance. For well-audited, battle-tested protocols like Uniswap or Aave on mainnet, many traders accept infinite approvals for convenience. For newer or less-tested contracts, exact-amount approvals are significantly safer.
You can either revoke the approval entirely (setting allowance to 0) or submit a new approval transaction with a specific amount. The new approval overwrites the previous one. Tools like Revoke.cash make this process straightforward.
Solana uses a different token model (SPL tokens) that does not use the same approve/transferFrom pattern as EVM chains. Solana transactions typically require explicit signing for each transfer, which reduces the approval-based attack surface, though delegate authorities can function similarly.
Ready to put your knowledge into practice?
Start Boosting