Skip to content
Request an audit

‹ All findings

Inconsistent naming of function in PureEpochs

Low/InfoM^0 Minter Gateway·Three Sigma · Stablecoin framework · 8th January, 2024Codebase3S-M^0-N12

Description

The PureEpochs library implements a variety of functions centered on the definition of epochs.

For example, it includes the following functions:

  • getTimeSinceEpochStart
  • getTimeSinceEpochEnd
  • getTimeUntilEpochStart It also includes the function getTimeUntilEpochEnds. The naming of this function in particular is inconsistent with the remaining ones.

Recommendation

Change the name of the getTimeUntilEpochEnds function to getTimeUntilEpochEnd.

Status

Addressed in #63b247c.