Skip to the article
Crypto Blog

Crypto guides and market analysis

ERC-20 Token Approval Revocation and Its Effects

What happens when you revoke a token approval? Its spender allowance is set to zero; your tokens stay in your wallet, though using the contract may need approval again.

The Crypto Blog Editors 2 min read

ERC-20 Token Approval Revocation and Its Effects

When you revoke a token approval, the token contract usually sets the allowance for that spender to zero. An ERC-20 allowance records how many tokens a spender contract may transfer on your behalf. Your tokens stay in your wallet, but that contract can no longer spend them using the revoked allowance.

What changes when you revoke an ERC-20 approval?

The token contract updates the allowance for the selected spender address. Allowances are tracked for each token owner and spender, so revoking one approval affects that specific pairing. It does not disconnect your wallet from an app or change approvals you gave to other spender addresses.

When reviewing an approval connected to ShibaSwap, the ShibaSwap approval checker comparison covers two ways to inspect token approvals. Match the spender address to the contract you intend to disable: an app’s name alone may not tell you which address holds the allowance.

Revocation is an on-chain transaction, so it requires network gas. It does not transfer, delete, or freeze your tokens. They remain at your wallet address unless a separate transaction moves them.

Say you approved a ShibaSwap spender contract to use 100 tokens. If you revoke that allowance, the contract’s recorded allowance becomes zero, while your wallet still holds its tokens. To use that contract again, you may need to approve it again, which requires another transaction.

What happens if a token transfer is pending?

A transfer that has already been confirmed stays completed after you revoke the approval. Revocation changes the allowance going forward; it does not reverse a transaction already recorded on-chain.

If a spend and a revocation are both pending, the order matters. If the spend is processed first, it may use the allowance before the revocation takes effect. If the revocation is processed first, the spender cannot use that allowance for a later transfer. The network’s transaction order determines the result.

Before revoking, decide which spender address you want to disable and whether you still need it for ShibaSwap. That lets you weigh the gas cost against the convenience of using the contract again without a new approval.