Skip to main content
All CollectionsLimit Orders
Why should I unlock a token before swapping?
Why should I unlock a token before swapping?

Unlocking a token and swapping are two separate transactions: you first need to unlock the token and then submit the swap.

Nick avatar
Written by Nick
Updated over a week ago

Tokens swapped on ParaSwap follow a special standard called the ERC-20 standard. For a smart contract like ParaSwap’s to interact with an ERC-20 token, you must approve the amount of tokens the ParaSwap contract can use from your wallet.

To do this, you must first do an ‘unlock’ transaction, which allows you to specify how many tokens this contract can use. In ParaSwap, you can unlock a token permanently or only for the current transaction. If you unlock it permanently, you won’t need to do it again the next time you swap the same token.

You must submit a transaction or sign a message depending on the token you are unlocking. If the token supports EIP 712 permit-signed approvals, you can unlock it with the Permit function, which does not require gas. If the token does not support EIP 712 permit-signed approvals or if you are placing a limit order, unlocking your token has to be done through the Approve function, which incurs gas fees.

This allowance can be revoked at any moment. If so, you must allow it again the next time you wish to swap this token.

Unlocking a token and swapping are two separate transactions: to swap, you first need to unlock the token if you haven't done before and then submit the swap. Please refer to the swap step-by-step guide to learn how to swap on ParaSwap.

Did this answer your question?