Jump to content
Crypto Talk

Opinion and debate on crypto

When Your Swap Needs Only a Specific Token Amount

To approve a specific token amount for a swap, choose the exact allowance when prompted, verify its token and quantity, sign, wait for confirmation, then submit the trade.

Crypto Talk Newsroom 3 min read

When Your Swap Needs Only a Specific Token Amount

To approve a specific token amount for a swap on cowswap, choose the exact-amount approval when prompted, inspect the token and quantity, and sign that approval in your wallet. An ERC-20 allowance authorizes a spender to use tokens up to that amount; it does not execute the trade.

Say your planned trade sells 25 tokens. That sell amount is the quantity you intend to trade, while the approval amount is the maximum the authorized spender may use. If the wallet offers an exact-amount choice, you can set that limit to the amount you intend to sell. The allowance limit is also the key difference behind cowswap exact versus unlimited approval costs. In cowswap, the wallet prompt and available choices can vary by token and wallet.

Approval and swap are separate wallet actions

Open cowswap with the intended wallet and network connected. Select the sell and buy tokens, enter the sell amount, and make sure you have enough network currency to pay approval gas.

When the approval prompt appears, confirm it names the intended sell token and shows the quantity you mean to authorize. The allowance is specific to a token, owner, spender, and amount. That makes the token and quantity in the wallet request worth checking before you sign.

The amount may appear as a familiar token quantity or as a raw number in the token’s smallest units. Token decimals determine how those values relate: the raw quantity represents the displayed amount scaled by the token’s decimal places. If the wallet shows a raw value you cannot match to the intended quantity, pause and inspect the request before signing.

Sign the approval transaction and wait for it to confirm on the network. Approval is an on-chain transaction, so it requires network gas. Once confirmed, return to the trade, review the sell and buy amounts, and submit the swap as a separate action. Signing approval alone does not place the trade.

Related questions

Does approving a token execute the swap?

No. An ERC-20 approval sets a wallet allowance for a spender; the swap is a separate action. After approval confirms, review and submit the trade in the interface.

Can an exact token approval be used for another trade?

Yes, if the later trade uses the same token and authorized spender, and the remaining allowance covers its amount. An approval sets a limit, not a reservation for one particular trade. If the available allowance is too small, the interface may ask for another approval.