← Academy library

Crypto / Evergreen

A swap deadline limits time without reserving a price

A deadline causes eligible contract logic to reject execution after a specified time condition, reducing the life of a pending authorization.

THE IDEA TO KEEP

A deadline limits when a swap may execute; price protections determine which exchange outcomes it may accept.

The distinction that matters

A deadline causes eligible contract logic to reject execution after a specified time condition, reducing the life of a pending authorization. In an automated market maker, available reserves or active liquidity determine the quoted trade along a pricing curve. A router may choose among several pools or combine routes. The displayed quote is therefore a calculation about a particular path and state, not an unconditional offer from every possible counterparty.

How the mechanism works

It works alongside price or output limits rather than replacing them, because a trade can become unfavorable before the deadline expires. Execution changes the state, and other transactions can change it before the user's transaction arrives. Several costs can appear in the same trade: pool fees, movement along the pricing curve, market changes before inclusion, and network execution charges. A minimum-output condition limits what the contract is allowed to deliver, while a deadline limits when the authorization remains usable. Neither guarantees execution.

A worked situation

Consider this hypothetical situation: A hypothetical swap remains pending during congestion and reaches execution only after the deadline included in its call data. The contract can revert instead of completing an old intention, while the failed execution can still consume network resources.

Where interpretation can fail

A long deadline leaves the authorization usable for longer, and a short deadline can increase failure risk when inclusion is delayed. Check both the deadline and the minimum-output condition to understand the temporal and economic boundaries of the signed request. A deadline limits when a swap may execute; price protections determine which exchange outcomes it may accept.

The wider technical implication

The deadline is evaluated using the execution environment's time condition, not the moment the user first opened the interface. A wallet can construct a deadline at signing or use a previously prepared value, so stale requests deserve attention. Once expired, the transaction may still be included and revert, depending on its path and validation rules; expiry is not necessarily a free cancellation before any fee is spent. The signed request should therefore be understood as a combination of time, price, asset, and permission conditions, each addressing a different way the original intention can become stale.

A global perspective

Swap interfaces, pool access, token classification, and reporting obligations can differ by jurisdiction. Technical availability does not establish regulatory status.

Sources & further reading

Uniswap documentation — Swaps ↗Ethereum.org — Decentralized finance ↗

Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.

Make the idea stick.

Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.

What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.

Explore crypto →

KEEP THE CONNECTION

Your next useful question.

Your saved guides →