This Solidity code defines an implementation of the ERC-20 token standard, including interfaces for ERC-20, ERC-721, and ERC-1155 error handling. The contract includes: Standard ERC-20 Interface (IERC20) Defines basic ERC-20 functions (transfer, approve, allowance, balanceOf, totalSupply). Includes Transfer and Approval events. Custom ERC-20 Errors (IERC20Errors) Defines custom errors such as ERC20InsufficientBalance, ERC20InvalidSender, ERC20InvalidReceiver, and ERC20InsufficientAllowance. Custom ERC-721 and ERC-1155 Errors (IERC721Errors, IERC1155Errors) Defines errors specific to ERC-721 and ERC-1155 tokens, such as ERC721InvalidOwner, ERC721NonexistentToken, and ERC1155InsufficientBalance. ERC-20 Metadata Interface (IERC20Metadata) Extends IERC20 to include functions for name(), symbol(), and decimals(). Context Contract (Context) Provides _msgSender() and _msgData() helper functions. ERC-20 Implementation (ERC20) Implements IERC20, IERC20Metadata, and IERC20Errors. Stores balances in _balances mapping and allowances in _allowances mapping. Implements transfer, approve, and transferFrom with error handling. _transfer function ensures valid addresses and calls _update, which manages token balance changes.
Low | Medium | High | Critical | Total | |
|---|---|---|---|---|---|
Not fixed | - | - | - | - | 0 |
Fixed | - | - | - | - | 0 |
| Total | 0 | 0 | 0 | 0 | 0 |
| # | File Name |
|---|---|
| 1 | wowerc20.sol |