Skip to content

Commit

Permalink
chore: change the epoch time to the theoretical value
Browse files Browse the repository at this point in the history
  • Loading branch information
PainterPuppets committed Oct 8, 2023
1 parent 2b3b06d commit efa5fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ export const useHalving = () => {
const currentEpoch = Number(statistics.epochInfo.epochNumber)
const nextHalvingCount = Math.ceil(currentEpoch / EPOCHS_PER_HALVING)
const targetEpoch = EPOCHS_PER_HALVING * nextHalvingCount
const singleEpochAverageTime = Number(statistics.estimatedEpochTime)
const singleEpochAverageTime = 1000 * 60 * 60 * 4
const currentEpochUsedTime =
(Number(statistics.epochInfo.index) / Number(statistics.epochInfo.epochLength)) * singleEpochAverageTime

Expand Down

0 comments on commit efa5fd6

Please sign in to comment.