Permit2 Contract
Permit2 is the shared token approval manager. Users approve tokens to Permit2 once, then grant scoped permissions to specific spenders. For the concept overview, see Permit2 Concepts.Key Functions
approve
Grants a spender permission to transfer a specific token on behalf of the caller via Permit2.| Parameter | Type | Description |
|---|---|---|
token | address | The ERC-20 token to approve |
spender | address | The address being granted permission (e.g., Universal Router) |
amount | uint160 | Maximum amount the spender can transfer |
expiration | uint48 | Unix timestamp when the permission expires |
allowance
Queries the current permission for a given owner-token-spender tuple.| Return | Type | Description |
|---|---|---|
amount | uint160 | Remaining allowed amount |
expiration | uint48 | Unix timestamp of expiration |
nonce | uint48 | Current nonce for this permission |