IERC20Errors
Standard ERC20 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
Errors
ERC20InsufficientBalance
Indicates an error related to the current balance
of a sender
. Used in transfers.
Parameters
Name | Type | Description |
---|---|---|
|
| Address whose tokens are being transferred. |
|
| Current balance for the interacting account. |
|
| Minimum amount required to perform a transfer. |
ERC20InvalidSender
Indicates a failure with the token sender
. Used in transfers.
Parameters
Name | Type | Description |
---|---|---|
|
| Address whose tokens are being transferred. |
ERC20InvalidReceiver
Indicates a failure with the token receiver
. Used in transfers.
Parameters
Name | Type | Description |
---|---|---|
|
| Address to which tokens are being transferred. |
ERC20InsufficientAllowance
Indicates a failure with the spender
โs allowance
. Used in transfers.
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. |
ERC20InvalidApprover
Indicates a failure with the approver
of a token to be approved. Used in approvals.
Parameters
Name | Type | Description |
---|---|---|
|
| Address initiating an approval operation. |
ERC20InvalidSpender
Indicates a failure with the spender
to be approved. Used in approvals.
Parameters
Name | Type | Description |
---|---|---|
|
| Address that may be allowed to operate on tokens without being their owner. |