Level 2 · First stepsThe village#162

Token approvals: the permission you forgot you gave never forgot you

A token approval is a standing permission that lets a smart contract move your tokens later without asking again. Many apps ask for unlimited approvals, and they stay valid until you revoke them, even after you stop using the app. If that contract is hacked or was malicious, the permission is the way in.

Last spring, Grandma Rosa wanted to swap some of her wheat for flour. The new mill made it easy. Instead of carrying sacks each time, she signed a note: "The mill may take wheat from my barn whenever I order flour." The miller, to save everyone paperwork, had left the amount blank.

It worked beautifully. Rosa got her flour and forgot the note. The note didn't forget her. It's still pinned up in the mill.

One night, someone breaks into the mill, finds a drawer full of notes like Rosa's, and goes from barn to barn. Every farmer signed. The notebook sees valid notes and lets him take the wheat. Nobody broke a lock. The locks were opened in spring, on paper.

What it is

A token approval is a permission you give a smart contract, usually an app such as an exchange that runs on the blockchain, to move one of your tokens later. The ERC-20 token standard, which most Ethereum tokens follow, defines it: approve "allows _spender to withdraw from your account multiple times, up to the _value amount" (ERC-20). The spender then moves the tokens with a function called transferFrom, without asking you again.

The approval stays valid until it is used up or changed. The standard lets you check what's left: allowance "returns the amount which _spender is still allowed to withdraw from _owner". Disconnecting your wallet from the website changes nothing. Revoke.cash's FAQ puts it plainly: when you disconnect, the site "cannot see your address anymore. But your approvals stay active" (Revoke.cash, read on 19 November 2026).

How it works: one bad update, 153 wallets

Approvals exist because a swap needs two steps: you allow the contract to take your tokens, then the contract takes them and pays you. Each approval is a blockchain transaction with a gas fee. So, as Revoke.cash explains, "many applications have opted to ask for unlimited approvals, which means that you only need to pay the approval's gas fee once" (Revoke.cash). Convenient. Also a blank amount on Rosa's note.

Here's what that can cost. On 16 July 2024, the crypto routing service LI.FI added a new piece of code to its contract. A flaw in it let an attacker make the contract call any other contract. The attacker used users' existing approvals to take their tokens. LI.FI's own report: about $11.6 million was stolen from 153 wallets on Ethereum and Arbitrum, and "the vulnerability was limited to infinite approvals and did not affect finite approvals" (LI.FI, 2024).

The arithmetic: $11.6 million over 153 wallets is about $76,000 per wallet on average. The people who had approved only the amount they were swapping weren't affected. Those who had left the amount blank lost whatever the blank covered.

A smaller illustration: approve exactly 100 USDC to swap 100 USDC, and once the swap is done, nothing remains to take. Approve "unlimited" while holding 5,000 USDC, and all 5,000, plus anything you add later, stays reachable through that contract for as long as the approval lives.

The signature version

Some tokens support a shortcut called a permit, defined in ERC-2612. It lets you "modify the allowance mapping using a signed message" instead of a transaction (ERC-2612). No gas, no transaction, just a signature. That's useful for honest apps, and a gift to drainers. Revoke.cash notes that because permits are signed off the chain, a tool like theirs "can never determine which signatures you've signed" until someone uses one.

Why it matters

Approvals turn a single moment of trust into a permanent one. You trusted the app on the day you swapped. The approval assumes you trust it on every day after, including the day it's hacked, sold or abandoned.

They are also what wallet drainers want. A fake airdrop page doesn't need your seed phrase if it can get you to approve its contract. The EU's financial supervisors advise people to "review the list of approvals" and revoke suspicious ones (ESAs factsheet, 2025).

Where people get it wrong

  • "I disconnected the site, so it can't touch my tokens." Disconnecting hides your address from the site. The approval stays.
  • "I only approved it for one swap." Unless you set the amount, many apps ask for unlimited.
  • "A hardware wallet makes approvals safe." It protects your keys. An approval you signed with it is still valid.
  • "Signing a message is harmless." A permit signature is an approval.
  • "Old apps I don't use any more can't hurt me." Approvals don't expire because you stopped visiting.

Read the amount before you sign

When your wallet asks you to approve a token, look for the amount. If it says unlimited, or a number far bigger than your trade, edit it down to what you're spending, if your wallet allows that. Then, every few months, check which approvals you've left behind. Our next article, "How to revoke token approvals", shows how.

Rosa's note is off the wall now. It took her one visit to the mill. The wheat was worth more than the walk.

Frequently asked questions

What is a token approval?

A token approval is a permission you sign that lets a smart contract move up to a set amount of one of your tokens later, without asking you again. It is used by exchanges on the blockchain and other apps, and it stays valid until it's used up or revoked.

What is an unlimited token approval?

It is an approval with no practical limit, which lets the contract move all of that token in your wallet, including tokens you add later. Apps ask for it so you pay the approval fee only once, but it leaves your tokens exposed if the contract is ever exploited.

Does disconnecting my wallet remove token approvals?

No. Disconnecting only stops the website from seeing your address. Approvals are recorded on the blockchain and stay active until you revoke them.

What happened in the LI.FI exploit?

On 16 July 2024, a flaw in a new part of LI.FI's contract let an attacker use existing approvals to take about $11.6 million from 153 wallets. LI.FI said only infinite approvals were affected, not limited ones.

Can a signature give away my tokens without a transaction?

Yes. Tokens that support permit signatures, defined in ERC-2612, let you grant an approval by signing a message. A scam site can collect that signature and use it later.

Sources

  1. Ethereum Improvement Proposals, ERC-20: Token standard
  2. Ethereum Improvement Proposals, ERC-2612: Permit extension for EIP-20 signed approvals
  3. LI.FI, Security incident report 16th July (2024)
  4. Revoke.cash, What are EIP2612 permit signatures? (read on 19 November 2026)
  5. Revoke.cash, Frequently asked questions (read on 19 November 2026)
  6. EBA, EIOPA and ESMA, Crypto frauds and scams: stay alert and protect yourself (factsheet, December 2025)

Read next.