Start typing to search this publication.
crypto.news logo crypto.news
Open menu
crypto.news logo

Subscribe to crypto.news

Get new posts delivered straight to your inbox.

Exact Amount vs Unlimited Token Approval: What Each Allows

crypto.news avatar crypto.news
2 min read

Choose an exact amount for most ERC-20 swap approvals; choose unlimited only when you frequently sell the same token through the same spender contract.

  • What you get: An approval size that fits this token sale.

  • What to weigh: Your token balance, how often you sell, and which contract receives permission.

Which approval should you set before selling an ERC-20 token?

Set an exact approval for a single sale, especially when you hold more of the token than you plan to sell.

ERC-20 tokens use approve() to grant a spender contract an allowance: the amount it may transfer from your wallet. The route-finding interface of Matcha swap makes the distinction useful: it finds trades across liquidity sources, while your approval applies to the token and spender shown in your wallet.

That token-and-spender pairing determines when unlimited saves gas. Say you sell one token today and a different token next week: the first token’s approval cannot cover the second sale. The same holds when a later sale uses a different spender contract. If the wallet mentions 0x Protocol, use the displayed spender address to identify the contract receiving permission. An unlimited approval helps with repeat sales only when both the token and spender are the same.

  • Exact amount: The spender can transfer no more than the amount you approve. Matching it to this sale limits the permission to the tokens you intend to sell, but selling that amount again requires another approval and its gas fee.

  • Unlimited: Later sales of the same token through the same spender can skip another approval fee. The permission remains available after this swap, so a compromised spender could transfer your remaining balance of that token, including tokens you receive later.

Before confirming, use your wallet’s Edit allowance field to replace unlimited with the exact amount you will sell. An allowance below the sale amount cannot cover the swap, so match the token amount in the trade. Approval and swap are separate confirmations; complete the approval before confirming the sale. Selling native ETH requires no ERC-20 approval.

Choose exact when you rarely sell this token or hold a large balance. Unlimited can be reasonable for frequent small sales through the same spender, provided you accept the continuing exposure in exchange for fewer approval transactions. For a one-off Matcha swap, exact is the straightforward choice.

How to revoke a token approval?

To revoke an approval, use a tool such as Revoke.cash to find the token and spender, then submit a revocation transaction. Revoking removes that spender’s unused permission; a future sale through it will need a new approval. Review an unlimited allowance when you stop making repeat sales.

Why does my wallet ask for approval twice?

A wallet may ask for another approval when the existing allowance is too small or belongs to a different token or spender. Compare those details with the new prompt. Also distinguish an approval confirmation from the separate swap confirmation: the second transaction may be the sale itself.

For most sales, an exact allowance covers the trade without leaving your whole token balance available to the spender. Set it to the amount you sell, and you can confirm the swap knowing what permission you granted.

Subscribe to crypto.news