HistoricalBalance
Last updated
Last updated
Inherits: ERC20Votes,
Adds support for tracking historical balance on ERC20Votes (not just historical voting power) and adds support for contributing and retrieving incentives pro-rata of historical balanceOf.
Uses a timestamp-based clock for checkpoints as opposed to the default OZ implementation that is blocknumber based.
This function retrieves the historical balance of an account at a specific point in time.
Parameters
account
address
The address of the account for which to retrieve the historical balance.
timepoint
uint256
The timepoint (block number or timestamp depending on implementation) at which to query the balance (uint256).
Returns
balance
uint256
The balance of the account at the specified timepoint.
Machine-readable description of the clock as specified in ERC-6372.