Skip to content

Solidity API

IERC20BaseInternal

Internal interface containing custom errors for ERC20 base implementation

These errors provide specific feedback for common ERC20 operation failures

ERC20Base__ApproveFromZeroAddress

solidity
error ERC20Base__ApproveFromZeroAddress()

Thrown when attempting to approve tokens from the zero address This helps prevent approvals from invalid or uninitialized addresses

ERC20Base__ApproveToZeroAddress

solidity
error ERC20Base__ApproveToZeroAddress()

Thrown when attempting to approve tokens to the zero address This helps prevent tokens from being accidentally approved to an invalid address

ERC20Base__BurnExceedsBalance

solidity
error ERC20Base__BurnExceedsBalance()

Thrown when a burn amount exceeds the balance of the account This ensures users cannot burn more tokens than they own

ERC20Base__BurnFromZeroAddress

solidity
error ERC20Base__BurnFromZeroAddress()

Thrown when attempting to burn tokens from the zero address This prevents burning from invalid or uninitialized addresses

ERC20Base__InsufficientAllowance

solidity
error ERC20Base__InsufficientAllowance()

Thrown when a spender tries to transfer more tokens than they are allowed This ensures the allowance mechanism is properly enforced

ERC20Base__MintToZeroAddress

solidity
error ERC20Base__MintToZeroAddress()

Thrown when attempting to mint tokens to the zero address This prevents tokens from being accidentally minted to an invalid address

ERC20Base__TransferExceedsBalance

solidity
error ERC20Base__TransferExceedsBalance()

Thrown when a transfer amount exceeds the balance of the sender This ensures users cannot transfer more tokens than they own

ERC20Base__TransferFromZeroAddress

solidity
error ERC20Base__TransferFromZeroAddress()

Thrown when attempting to transfer tokens from the zero address This prevents transfers from invalid or uninitialized addresses

ERC20Base__TransferToZeroAddress

solidity
error ERC20Base__TransferToZeroAddress()

Thrown when attempting to transfer tokens to the zero address This prevents tokens from being accidentally sent to an invalid address