SelfPermit
Inherits: ISelfPermit
Functionality to call permit on any EIP-2612-compliant token for use in the route.
These functions are expected to be embedded in multicalls to allow EOAs to approve a contract and call a function that requires an approval in a single transaction.
Functions
selfPermit
Allows the contract to call the permit function on the specified token.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the token to permit. |
|
| The amount to permit. |
|
| The deadline for the permit. |
|
| The v value from the permit signature. |
|
| The r value from the permit signature. |
|
| The s value from the permit signature. |
selfPermitIfNecessary
Allows the contract to call selfPermit if necessary based on the token's allowance.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the token to permit. |
|
| The amount to permit. |
|
| The deadline for the permit. |
|
| The v value from the permit signature. |
|
| The r value from the permit signature. |
|
| The s value from the permit signature. |
selfPermitAllowed
Allows the contract to call the permit function with unlimited allowance on the specified token.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the token to permit. |
|
| The nonce for the permit. |
|
| The expiry time for the permit. |
|
| The v value from the permit signature. |
|
| The r value from the permit signature. |
|
| The s value from the permit signature. |
selfPermitAllowedIfNecessary
Allows the contract to call selfPermitAllowed if necessary based on the token's allowance.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the token to permit. |
|
| The nonce for the permit. |
|
| The expiry time for the permit. |
|
| The v value from the permit signature. |
|
| The r value from the permit signature. |
|
| The s value from the permit signature. |
Last updated