Skip to content

Commit aed7323

Browse files
committed
feat: epochs to start on number 1 instead of 0 if we use createdAtEpoch as allocation state
1 parent 9f1c92e commit aed7323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/epochs/EpochManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ contract EpochManager is EpochManagerV1Storage, GraphUpgradeable, IEpochManager
104104
* @return The current epoch based on epoch length
105105
*/
106106
function currentEpoch() public view override returns (uint256) {
107-
return lastLengthUpdateEpoch.add(epochsSinceUpdate());
107+
return lastLengthUpdateEpoch.add(epochsSinceUpdate()).add(1);
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)