Skip to content

Checkpoints Documentation#

Informational

The checkpoints documentation copied over from Open Zeppelin is outdated and still refers to block numbers throughout the library.

/**
  * @dev Returns the value at a given block number. If a checkpoint is not available at that block, the closest one
  * before it is returned, or zero otherwise.
  */
function getAtTime(History storage self, uint40 timestamp)

Recommendation#

Update the documentation to reflect the implementation which uses block timestamps.