Skip to main content
Merkle Street

Protocols, markets, policy, people

QuickSwap exact amount or unlimited token approval?

Compare QuickSwap exact amount vs unlimited token approval and choose based on how often you trade and how much token authority you accept.

Merkle Street Newsroom#4870724 min read

QuickSwap exact amount or unlimited token approval?

QuickSwap token approvals should usually use an exact amount for an occasional trade, because that caps how many tokens the spender can draw from your wallet. Consider an unlimited allowance only for repeated use when you accept that authority continuing beyond the swap.

An allowance is the token amount an approved spender can withdraw from your wallet through an authorized transfer. For ordinary ERC-20 tokens, the ERC-20 standard says that calling approve sets the allowance to the supplied value, replacing the existing one.

Token balance exposed to the spender

An exact approval limits the spender to the amount you authorize; an unlimited approval can leave it able to spend future token balances. The spender still needs to use the token’s allowance mechanism, but the permission stays available until it is spent down or changed.

Think of an exact allowance as a prepaid pass with a fixed value. If you approve 100 tokens and the swap uses 80, an ordinary decrementing allowance leaves 20 authorized. That unused remainder has no automatic expiry: it can persist after the swap, and the spender may use it later. Check the token’s allowance for the spender address to see the remaining amount.

For a larger balance, limiting approval reduces the amount exposed if the spender is misused or compromised. After a swap, the allowance can be reviewed through a token permissions view or by reading the token contract’s allowance value for your wallet and the spender. A result of zero means no remaining allowance; a small remainder means only that amount is still authorized.

Repeat approvals and trade frequency

An exact allowance may require another approval transaction when a later trade exceeds what remains. Each additional approval takes another transaction, so frequent trades can make a limited allowance less convenient.

Unlimited approval reduces those repeat approvals by leaving a large allowance in place. In common ERC-20 implementations, this may be represented by the maximum integer value; OpenZeppelin documents that its ERC-20 implementation treats that value as infinite and does not reduce it when tokens are spent. That convenience means continuing spender authority, even when you are not actively swapping.

For a planned QuickSwap trade, you can swap tokens on quickswap with an exact approval so the authorization matches the amount you intend to spend. That is the practical choice for an occasional swap; the allowance mechanism sets the spending limit, while the swap uses tokens within it.

Which allowance fits your next swap?

Choose an exact allowance for an occasional trade or a substantial token balance. It keeps the authorized amount close to the planned spend, though a later larger trade may need another approval.

Consider unlimited approval when you trade repeatedly and consciously accept the spender retaining authority over future balances. The choice turns on three things: how much of the balance is exposed, how often you repeat the trade, and whether continuing spender authority is acceptable.

If you are preparing one more token swap after a long gap, exact approval keeps the permission tied to that trade. If you are swapping often, the saved approvals may be useful, but the allowance remains a live permission to account for.

What happens to allowances after wallet changes?

Does disconnecting a wallet revoke token approval?

No. Disconnecting removes the site’s active wallet connection; it does not change the token contract’s on-chain allowance. Review the allowance itself and revoke or reduce it through an on-chain approval transaction if you want to remove that authority.

Why does token approval require setting zero first?

Some tokens require the existing allowance to be reset to zero before another nonzero value can be assigned. This avoids changing directly from one nonzero allowance to another; the OpenZeppelin ERC-20 documentation describes the reset requirement for affected tokens.

Keep a note of any allowance left after a swap, especially when you approved more than you spent. That small check can help you decide whether to leave the permission in place or remove it before your next trade.