IERC20Extended
Inherits: IERC20, IERC3009
Author: M^0 Labs
The additional interface as defined by EIP-2612: https://eips.ethereum.org/EIPS/eip-2612
Functions
permit
Approves spender
to spend up to amount
of the token balance of owner
, via a signature.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the account who's token balance is being approved to be spent by |
|
| The address of an account allowed to spend on behalf of |
|
| The amount of the allowance being approved. |
|
| The last block number where the signature is still valid. |
|
| An ECDSA secp256k1 signature parameter (EIP-2612 via EIP-712). |
|
| An ECDSA secp256k1 signature parameter (EIP-2612 via EIP-712). |
|
| An ECDSA secp256k1 signature parameter (EIP-2612 via EIP-712). |
permit
Approves spender
to spend up to amount
of the token balance of owner
, via a signature.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the account who's token balance is being approved to be spent by |
|
| The address of an account allowed to spend on behalf of |
|
| The amount of the allowance being approved. |
|
| The last block number where the signature is still valid. |
|
| An arbitrary signature (EIP-712). |
PERMIT_TYPEHASH
Returns the EIP712 typehash used in the encoding of the digest for the permit function.
Errors
InsufficientAllowance
Revert message when spender's allowance is not sufficient.
Parameters
Name | Type | Description |
---|---|---|
|
| Address that may be allowed to operate on tokens without being their owner. |
|
| Amount of tokens a |
|
| Minimum amount required to perform a transfer. |
InsufficientAmount
Revert message emitted when the transferred amount is insufficient.
Parameters
Name | Type | Description |
---|---|---|
|
| Amount transferred. |
InvalidRecipient
Revert message emitted when the recipient of a token is invalid.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the invalid recipient. |