# IERC20PermitAllowed

Interface for permit

Interface used by DAI/CHAI for permit

## Functions

### permit

`function permit(address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s) external` external

Approve the spender to spend some tokens via the holder signature *Developer note: This is the permit interface used by DAI and CHAI*

| Name    | Type    | Description                                                                       |
| ------- | ------- | --------------------------------------------------------------------------------- |
| holder  | address | The address of the token holder, the token owner                                  |
| spender | address | The address of the token spender                                                  |
| nonce   | uint256 | The holder's nonce, increases at each call to permit                              |
| expiry  | uint256 | The timestamp at which the permit is no longer valid                              |
| allowed | bool    | Boolean that sets approval amount, true for type(uint256).max and false for 0     |
| v       | uint8   | Must produce valid secp256k1 signature from the holder along with \`r\` and \`s\` |
| r       | bytes32 | Must produce valid secp256k1 signature from the holder along with \`v\` and \`s\` |
| s       | bytes32 | Must produce valid secp256k1 signature from the holder along with \`r\` and \`v\` |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.algebra.finance/algebra-integral-documentation/algebra-v1-technical-reference/contracts/api-reference-v1.9/v1.9-periphery/ierc20permitallowed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
