Permits and approvals

When you open a position on Contango, by default you sign a gas-less permit. Contango uses permits wherever possible, to make the user experience smoother. You might still face the need to use approvals, e.g. when using a multisig or when permits are not available for some tokens.

Contango gives you the choice of selecting among Permit, Permit2, Approval: after clicking the ‘Review trade’ button, you can select your preferred option by clicking the dropdown arrow in the ‘Approve’ button.

Here below you have a quick overview of how permits and approvals are used on Contango (a more comprehensive explanation can be found on Ledger’s website):

What’s an Approval?

A token approval is a method to allow a smart contract or address to withdraw funds from your address. In other words, an approval is an on-chain permission that users grant to smart contracts to allow them to access a specific amount of their tokens without needing a wallet signature for individual transactions. It sets the so-called spending allowance. As the approval confirmation happens on-chain, there’s a gas fee associated with it.

What’s a Permit?

ERC-2612 introduced a new method of Ethereum token approvals known as Permit signatures. Permits allow you to grant token approvals by signing a message off-chain. In other words, it's a gas-less transaction that replaces an approval transaction by signing a piece of data inside your wallet. When using permits, the cost of setting an allowance will still be batched into the real transaction that you sign when opening a position, which results in a smoother user experience.

What’s a Permit2?

Permit2 is a new approval contract built by the Uniswap team that extends the benefits of ERC-2612 to all tokens. In other words, Permit2 allows you to use gasless approvals for any token, regardless of whether that token has integrated ERC-2612. In addition, Permit2 has automatic expiration built-in, eliminating the security risk that comes with lingering token approvals.

Last updated