Logótipo oficial do MASTR MASTR Apoiar o trabalho
Índice
← Início da wiki

Technical reference

ERC-2612: a permit deadline is not an allowance expiry

The time limit governs submission of the signature, not necessarily the life of the resulting approval.

Source-based reference · Updated 12 September 2026

Os artigos de investigação e as referências são publicados em inglês. A navegação está disponível em sete idiomas.

Neste artigo
  1. What a permit changes
  2. Two different clocks
  3. After an unexpected signature
  4. Sources

What a permit changes

ERC-2612 lets an owner sign an approval containing a spender, value, nonce and deadline. A valid submitted permit updates the owner's allowance and advances the nonce. The owner need not submit the onchain transaction personally; another party can relay the signature.

A deadline is not an expiry. Owner signs a permit with a deadline. Permit is accepted before the deadline. The resulting allowance can remain active.
A deadline is not an expiry. Owner signs a permit with a deadline. Permit is accepted before the deadline. The resulting allowance can remain active.
Abrir diagrama completo

Two different clocks

The deadline limits when the permit may be accepted. Once accepted, the resulting ERC-20 allowance does not automatically disappear when that deadline passes. For example, a permit accepted just before noon can leave spending authority after noon. Treating the signing deadline as the approval's expiry misstates the exposure.

After an unexpected signature

Identify the token contract and spender, determine whether the permit has been submitted, and inspect the resulting allowance. A revoked allowance and an unused signed permit are different states. An unexpired authorisation that still has the expected nonce may remain submit-able. A response must account for both the current approval and outstanding signatures.

Sources

Leituras relacionadas

Tipos de fraude

Permit phishing

An offchain signature authorises a token allowance without an immediate gas payment.

MASTR

Apoiar a investigação independente

As investigações, as provas originais e os guias são de acesso livre. Os donativos voluntários ajudam a financiar a investigação e a manter disponíveis as ferramentas MASTR.

Abrir carteira