web3wagmi
← All standards

ERC-5827 Auto-renewable allowance extension

StagnantERCcreated 2022-10-22requires ERC-20, ERC-165

Extension to enable automatic renewals on allowance approvals

Authors: zlace (@zlace0x), zhongfu (@zhongfu), edison0xyz (@edison0xyz)

ERC-165 interface ids

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

IERC58270x93cd7af6

Functions this standard introduces (5)

0xdd62ed3eallowance(address,address)view
0x095ea7b3approve(address,uint256)
0xeeb3d6b7approveRenewable(address,uint256,uint256)
0x8afa9411renewableAllowance(address,address)view
0x23b872ddtransferFrom(address,address,uint256)

Inherited (7)

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

Optional extensions (2)

Interfaces the spec defines alongside the core one, which an implementation may or may not carry.

IERC5827Proxy0xc55dae63

0xc55dae63baseToken()

IERC5827Expirable0x46c5b619

0xcc3f2208approveRenewable(address,uint256,uint256,uint64)
0x8afa9411renewableAllowance(address,address)

Events (1)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x1df05f5ff873890f0a7c237fbd6802a77dcb7a5d1c9a956a1857b2a05d037758RenewableApproval(address,address,uint256,uint256)

Custom errors (1)

0xfd13d415InsufficientRenewableAllowance(uint256)

Depends on (2)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion