web3wagmi
← All standards

ERC-2917 Staking Reward Calculation

StagnantERCcreated 2020-08-28

Authors: Tony Carson, Mehmet Sabir Kiraz, Süleyman Kardaş

ERC-165 interface ids

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

IERC29170x99c1dec4

Functions this standard introduces (8)

0x7b381b35changeInterestRatePerBlock(uint256)
0x4afa66d6decreaseProductivity(address,uint256)
0x28e964e9getProductivity(address)view
0x36f04e45increaseProductivity(address,uint256)
0xbfc8b208interestsPerBlock()view
0x1249c58bmint()
0x159090bdtake()view
0x0e0b6eb5takeWithBlock()view

Inherited (9)

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

Events (3)

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

0xc44c80d7c6ac73ee13b2c62e50522dadb6c646b4509ca93e52a45abb38a78e33InterestRatePerBlockChanged(uint256,uint256)
0x6c0a24b06ee7f1d9c3c6680c7328531c32bc59cd665436fc686f973cb8c01be7ProductivityIncreased(address,uint256)
0xddb757202feefdd10c1666f1bb8f9744309ab811b6ef3ec0404a20c36e426697ProductivityDecreased(address,uint256)

What the specification covers

Compare with

Parsed from the canonical specification · discussion