web3wagmi
← All standards

ERC-4524 Safer ERC-20

StagnantERCcreated 2021-12-05requires ERC-20, ERC-165

Extending ERC-20 with ERC165 and adding safeTransfer (like ERC-721 and ERC-1155)

Author: William Schwab (@wschwab)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

SaferERC0x534f5876

Functions this standard introduces (4)

0xeb795549safeTransfer(address,uint256,bytes)
0x423f6cefsafeTransfer(address,uint256)
0xb88d4fdesafeTransferFrom(address,address,uint256,bytes)
0x42842e0esafeTransferFrom(address,address,uint256)

Inherited (10)

0xdd62ed3eallowance(address,address)ERC-20
0x095ea7b3approve(address,uint256)ERC-20
0x70a08231balanceOf(address)ERC-20
0x313ce567decimals()ERC-20
0x06fdde03name()ERC-20
0x01ffc9a7supportsInterface(bytes4)ERC-165
0x95d89b41symbol()ERC-20
0x18160dddtotalSupply()ERC-20
0xa9059cbbtransfer(address,uint256)ERC-20
0x23b872ddtransferFrom(address,address,uint256)ERC-20

Depends on (2)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion