HomenieuwsBitcoinA permit deadline does not expire an accepted token allowance

A permit deadline does not expire an accepted token allowance

Cryptofocus bron in google
Bybit - sponsored
Ontvang nu een welkomstbonus bij Bybit, maar liefst 30 USDC!

Suppose an ERC-2612 permit is signed with a noon deadline and accepted at 11:59. Noon can pass while the token allowance remains in place. The standard uses the deadline to decide whether to accept the signed approval. Once accepted, the allowance has a separate life. That sequence explains which permission to inspect when a signed deadline has passed.

What you need to know
ERC-2612 checks the deadline when the permit function is called.
A successful call sets the allowance for the named owner and spender to the signed value.
The standard requires the permit call to revert if its deadline condition is not met.
Revoking an existing token approval is an on-chain action that requires gas, according to MetaMask.

What happens at 11:59 and 12:01

The ERC-2612 specification lists the conditions for accepting a permit. The current block timestamp must be less than or equal to the signed deadline. The owner, signature and current nonce must also satisfy the specification. Passing the time check alone is insufficient.

Consider a hypothetical permit with a deadline of noon. A call included in a block timestamped 11:59 can pass the time condition; a call timestamped 12:01 cannot. The first call still needs a valid signature and the other required conditions. The second must revert under this standard even if those other details are correct. Now suppose the first call succeeds. It sets the allowance to the signed value and increments the owner’s nonce. Noon is not a second instruction that clears that allowance: ERC-2612 places its deadline test in the permit call. A reader checking an already accepted permission therefore needs the current allowance, rather than the expired timestamp on the original message.

Lees ook:  Ik reken op een sterk altcoinseizoen deze zomer

The approved amount is a separate control. Two otherwise comparable hypothetical permits with the same noon deadline could specify 10 tokens or 1,000 tokens. Their submission window is identical, while the value each successful call installs differs by a factor of 100. Shortening the window does not reduce the signed amount.

The distinction is specific to the standard being discussed. ERC-2612’s compatibility section describes a separate Stake implementation with expiring approvals, where a time limit also restricts transfers. It would be wrong to apply that different behavior to every ERC-2612 allowance, or to assume every signature request follows ERC-2612.

MetaMask’s approval guide describes the practical follow-up: inspect the token, spender and remaining approved amount. Revoking approval is an on-chain action that requires gas. In the noon example, a successful 11:59 call leaves you checking an installed allowance; a rejected 12:01 call never installs that allowance through that permit. The relevant record changes with the outcome of the call.

Partnerdeal

Bybit - Welkomstbonus 30 USDC!

Ontvang nu een welkomstbonus bij Bybit, maar liefst 30 USDC!.

Lees hier de voorwaarden
Nu naar Bybit
Voorkeur cryptofocus google nieuws
Sten Waardenburg
Sten Waardenburg
Sten Waardenburg schrijft over crypto met het tempo van de markt: snel, helder en zonder omwegen. Hij zit bovenop nieuws rond exchanges, altcoins en on-chain bewegingen, en hij prikt graag door grote claims heen met één simpele vraag: klopt dit ook in de data? Zijn stukken zijn praktisch. Minder “to the moon”, meer “wat betekent dit voor je risico”. Sten houdt van concrete voorbeelden, scherpe samenvattingen en een goede grafiek op het juiste moment. Buiten werktijd is hij vaak te vinden in de sportschool of achter zijn bureau met een playlist aan, speurend naar dat ene detail dat anderen missen. Nuchter, nieuwsgierig en altijd op zoek naar het echte verhaal achter de koers.
Lees ook