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.
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?
Facts checked on November 9, 2026.
- ethereum.org: security and approvals: https://ethereum.org/en/security/
The whole course is in the app and in the book: Pricing · Book · Test your own idea
Updated November 28, 2026