Skip to content

Commit

Permalink
fix: improve epoch end calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Jun 16, 2024
1 parent 1aa6d85 commit c10b674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/DashboardPage/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function CurrentEpoch() {
if (!data) return;

const newEpochEnd =
(data.epoch.end - data.lastBlockL1) * data.blockTimeL1 +
(data.epoch.end - data.lastBlockL1 + 1) * data.blockTimeL1 +
new Date(data.lastBlockTimestampL1).getTime();

setEpochEnd(newEpochEnd);
Expand Down

0 comments on commit c10b674

Please sign in to comment.