Navigation

Crypto Swap Security: When to Revoke Token Approvals

3 min readShadowSwap Team

What a token approval does

On smart-contract networks such as Ethereum, a token approval lets a contract move a specified amount of tokens from your wallet. It differs from sending tokens to an address: an approval grants permission that can remain active after the transaction that prompted it.

Approvals are common in decentralized finance. A decentralized exchange may ask you to approve a token before its contract can use it in a swap. Depending on the wallet and app, the approval may cover only the amount you need or a larger amount, sometimes described as unlimited.

Does every crypto swap create an approval?

No. A direct wallet transfer does not give a contract permission to spend your tokens. Many instant swap flows ask you to send the deposit asset to a provided address. Sending tokens from your wallet does not, by itself, create a token approval.

An approval matters when you sign an on-chain transaction that explicitly authorizes a contract to spend a token. Before confirming, check the transaction details in your wallet, especially when using a decentralized exchange or another smart-contract app. The exact steps depend on the network and the app's design.

When should you consider revoking an approval?

Review an approval if you no longer use the app or contract, approved more tokens than you intended, or have reason to doubt the app or contract's trustworthiness. Revoking removes or reduces the contract's allowance, but requires another on-chain transaction and usually a network fee.

Revocation does not undo a completed swap, recover tokens already transferred, or protect you from signing a new malicious transaction. It changes only the allowance recorded by the token contract. A compromised wallet may still be at risk from other permissions or someone gaining access to its recovery phrase.

How to manage approvals carefully

  1. Read the wallet prompt. Check which token and contract are involved, and whether the requested allowance is limited or unlimited.
  2. Approve only what you need when practical. A smaller allowance can limit exposure if a contract is misused later, though you may need to approve again for a future trade.
  3. Review permissions using a trusted tool. Use a wallet feature or approval checker that supports the specific network and token. Independently verify the site address before connecting your wallet.
  4. Check the contract and network. Similar token names can exist on different networks. An approval on one network does not automatically apply on another.
  5. Confirm before revoking. Make sure the approval belongs to the app or contract you intend to change, then review the wallet's transaction details and fee.

A practical rule for no-KYC swaps

No-KYC describes whether a service asks you to create an account or verify your identity. It does not determine whether an on-chain token approval is needed; the transaction design does.

If a swap flow asks you to send an asset to a deposit address, check the asset, network, and destination address before sending. If it asks you to authorize a contract, inspect the permission and decide whether its scope makes sense. Either way, keep your recovery phrase private and make sure you control the wallet receiving your funds.

ShadowSwap lets you exchange supported cryptocurrencies without an account while keeping control of your deposit wallet. Check the transaction details for your chosen asset and network, then swap on ShadowSwap.

Share this article