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