Camelot swap

Camelot swap may require token approval before your first trade

Last updated ·

Camelot swap may ask for permission to spend your input token before your wallet confirms the exchange. This approval sets an allowance for a particular spender, usually a smart contract that handles the trade. It doesn't reserve a quote or deliver the output token. For a first trade, the useful distinction is between granting that permission and authorizing the swap itself. Review the requested token, spender, and spending cap before approving. Then review the exchange terms again before submitting the swap. A completed approval creates a permission; a completed trade must also show the expected token movement.

The short version: A token approval grants spending permission, so review the spender and spending cap before granting that permission.

A suitable trade starts with a permission you can assess

The approval path fits when your wallet holds the input token on the selected network and can authorize the required spender. A visible balance elsewhere doesn't satisfy that prerequisite. The exchange also needs a usable route for the selected tokens. Granting permission can't create missing liquidity or make an incompatible token work. Camelot's swap process places token approval before proceeding when the token requires it.

Completion has separate evidence: the approval establishes spending permission, while the swap must produce the intended output in the receiving account. A wallet's approval confirmation alone doesn't establish that the exchange happened. If the allowance exists but the exchange transaction doesn't, the input token hasn't been swapped through that transaction.

A first trade with a bounded spending permission

Suppose your selected input token uses a standard allowance and your wallet supports the required approval. You want a defined input amount and the option to stop before submitting the exchange. The approval itself creates an on-chain permission and can cost a network fee. If every action must remain reversible until the final swap, stop before approving.

  • Proceed only when the selected network, input balance, and available network-fee payment match the trade.
  • Match the approval's spender to the contract that requires access for the selected swap.
  • If your wallet supports editing the cap, authorize the intended input amount rather than accepting a larger amount without review.
  • After approval confirms, check that the allowance covers the intended input. Before submitting the swap, verify the output token and minimum received, the lowest output amount the transaction will accept. Stop if the spender changes or the revised terms become unacceptable.
  • Confirm that the swap transaction succeeded and that the receiving account received the selected output token in an amount that meets the submitted minimum.
A first trade with a bounded spending permission: Suppose your selected input token uses a standard allowance and your wallet supports the required approval. You want a defined input amount and the option to stop before submitting the exchange.; The approval itself creates an on-chain permission and can cost a network fee. If every action must remain reversible until the final swap, stop before approving.
Visual summary: A first trade with a bounded spending permission

View full-size image

If the wallet can't complete the required approval, leave the exchange unsubmitted. A compatible wallet connection or supported authorization path must resolve that dependency first. If you stop after approval, an unused allowance may remain and require a separate revocation.


The approval prompt identifies what receives permission

Read the request as a permission attached to a token contract, an owner, and a spender. The displayed application name alone doesn't describe its scope.

The token and spender addresses

The transaction target and the spender can be different addresses. A standard approval calls the token contract and names the spender inside that call. Comparing only the transaction's destination with an expected swap contract can therefore cause confusion. Inspect the decoded permission details, including which token the contract can access.

The allowance amount

An ERC-20 allowance records how much a specified spender remains authorized to withdraw from a specified owner's token balance.

That amount concerns the input token. It doesn't specify the exchange rate, the output quantity, or the network fee. A request for a spending cap and a request to execute a trade answer different questions, even when the wallet presents them close together.

A limited cap trades repeat approvals for narrower access

A cap that covers the intended input limits how much of that token the spender can access through the allowance. A larger cap can support later trades without another approval, provided enough allowance remains. It also leaves broader permission in place. Neither choice proves that the spender is trustworthy.

Where your wallet lets you edit the amount, compare the proposed cap with the input you actually intend to exchange. A smaller cap can require another approval if you later increase the trade. An effectively unlimited allowance reduces repeated approval requests, while exposing more of that token balance if the approved contract permits malicious spending.

Approval costs belong outside the token spending cap

An on-chain approval consumes network resources independently of the swap. In a conventional separate-transaction flow, the approval and exchange each incur their own network cost. Setting a smaller token allowance doesn't set a smaller gas budget. The allowance controls token access; the network fee pays for transaction processing.

Approval isn't a free preview.

Your wallet's fee estimate applies to the transaction under review. Keep enough payment capacity for the later swap as well. Conventional transactions use the network's native gas asset, although some wallets support alternative fee-payment arrangements. Availability depends on the wallet and network, so a token balance alone doesn't establish that fees are covered.


The quote needs another look after approval

Approval doesn't lock the exchange terms that appeared before you signed it. During confirmation, trading activity can change the available quote. Camelot exposes output considerations such as price impact, minimum received, and rates. Those remain relevant after permission exists.

Keep the two limits distinct. The spending cap governs access to the input token. The minimum output concerns what the exchange transaction will accept. Raising an allowance won't repair an unattractive quote, and relaxing an output limit won't repair insufficient permission. If the revised quote no longer meets your terms, there's no need to submit the exchange merely because approval already cost a fee.


A repeated approval request needs a state check

A request that appears again doesn't necessarily mean the earlier approval failed. The selected input amount may exceed the remaining allowance, or the trade may require a different spender. Conversely, a wallet notification can precede confirmation on the network. Check the approval transaction's status and the allowance associated with the selected token and spender before submitting another permission.

A pending transaction hasn't established a confirmed allowance change.

Approval success also can't resolve every swap failure. A changed quote, unavailable route, or insufficient fee balance belongs to a different part of the operation. Increasing permission repeatedly without identifying the failing condition can leave a larger allowance while the original problem remains.


Token behavior can change the authorization path

The familiar approval transaction isn't the only authorization mechanism, and token-specific behavior can alter the number of wallet requests. The relevant path must work with the token, wallet, and swap integration together.

Replacing an existing nonzero allowance

Some tokens require an existing allowance to reach zero before accepting a replacement nonzero amount. That condition can arise on your first Camelot trade if the relevant allowance already exists. A reset and a new approval are distinct changes. Don't interpret an extra request as unnecessary without inspecting its effect.

Signing a permit instead of sending an approval

ERC-2612 defines a signed-message mechanism for changing token allowances. Its existence doesn't establish support for every token or Camelot route. Where an integration supports it, inspect the spender, amount, and signature deadline. A signature can authorize spending even when the wallet doesn't request a standalone approval transaction.

Missing compatibility is a reason to pause, rather than keep accepting differently worded requests without understanding them.


Unused permission survives a disconnected wallet

Disconnecting the website doesn't revoke an on-chain token allowance. Closing the browser or ending the wallet connection therefore doesn't remove permission that an approved spender already holds.

For a standard allowance, revocation sets the permitted amount to zero through another transaction. That transaction needs confirmation and generally incurs a network fee. Revocation removes remaining authorization; it doesn't reverse a completed token transfer or recover a fee already paid. Its effectiveness also depends on confirming before any unwanted spending occurs.

The stopping point changes once you authorize spending

Before signing or submitting anything, you can abandon the request without creating that permission. After approval confirms, stopping the intended swap leaves a separate decision about the allowance. An approved contract may be able to spend within its authority without another wallet prompt, depending on its logic. Treat approval as a consequential authorization.

If your requirement is that every action remain fully reversible until the final swap, a separate on-chain approval doesn't meet it. You can still decline the exchange, but you can't erase the approval transaction or reclaim its processing cost. Once you submit the swap, cancellation is also uncertain. Exchanging the received tokens back would require a new trade, if a route is available, under whatever terms are then available.

Camelot swap: questions and answers

Can approval cover tokens that arrive in my wallet later?

A remaining allowance can apply to later deposits of the same token into the same account. The permission isn't limited to the balance present when you granted it. Its usable amount depends on the remaining allowance, your available balance, and the token's rules. This matters when an approval exceeds the amount used in your first trade.

Does receiving the output token require another spending approval?

Receiving a standard ERC-20 token doesn't itself require you to grant spending permission for that token. The approval needed for the trade concerns access to the input. A later operation that spends the received token may need its own permission. An unexpected output-token approval deserves inspection because receiving tokens alone doesn't explain that request.

When does a standard token allowance expire?

The base ERC-20 allowance mechanism doesn't define an automatic expiration time. An ordinary unused allowance can remain until spending reduces it or another approval changes it. Token extensions and other authorization systems can add different conditions. A permit's signature deadline limits when that signature can establish permission; it doesn't by itself make the resulting standard allowance expire.

Will switching wallet accounts preserve my Camelot approval?

An approval granted by one account doesn't authorize spending from another account. Allowances identify the owner as well as the token and spender. Switching accounts can therefore produce a new approval request even for the same intended trade. Switching back doesn't erase the original account's remaining permission.

How does a hardware wallet affect token approval?

A hardware wallet changes where you authorize the request, rather than changing the allowance's meaning. Your wallet connection must support the required contract interaction. Hardware confirmation doesn't make an excessive or malicious permission harmless, and the device needn't remain connected for a spender to use an allowance that you already granted.