Honest PolygonLessonsGlossaryPricingApp

Lessons › Wallets and security

Approvals for smart contracts

To swap a token on a decentralized exchange, you first have to give its contract an approval to spend that token. Wallets often suggest an unlimited approval by default: that way you do not pay for a new approval on every swap.

The problem is that the approval stays after the swap. If the contract is later hacked, or if the site was fake from the start, your tokens can be taken without a new signature.

If the contract is hacked or the site was fake — the tokens leave without a new signature from you. Unneeded approvals are revoked.Your walletUSDT: 0Contractapproved: ∞ USDTapprove(∞)transferFrom: everythingRevoke: in the wallet or on the block explorer's approval checker page
  1. You want to swap 100 USDT.
  2. The wallet asks you to sign an approval. Watch the amount: it is often “unlimited”.
  3. The swap went through, but the approval has not gone anywhere.
  4. A hacked or fake contract takes everything approved. Approvals you no longer need should be revoked.

Fraudulent drainer sites are built on exactly this: under the guise of “claim a reward” or “verify your wallet” you are asked to sign an approval or a special signed message (no gas fee, so it seems harmless). After the signature, the tokens are gone.

What to do:

Read what you are signing. If the wallet shows “allow spending” or “sign message” where you are not buying anything, stop.

Set a limit — exactly the amount of the swap.

Revoke old approvals. The network's block explorer or the wallet itself shows a list of your approvals; revoking is an ordinary transaction with a gas fee.

Question. A token giveaway site asks you to “sign a message, it's free”. Why can this be dangerous?

  1. It is not dangerous: with no gas fee, nothing will happen
  2. The signed message may be an approval to spend your tokens — it will be used later
  3. It is dangerous only for bitcoin
Show the answer

b. The signed message may be an approval to spend your tokens — it will be used later — Some standards allow an approval to be given by a signature without a transaction. No fee does not mean no consequences.

Facts checked on November 9, 2026.

The whole course is in the app and in the book: Pricing · Book · Test your own idea

Updated November 28, 2026