+
+
Estimated Time: {{ format.toLocaleDate(estimateDate) }}
+
+
+
+
+ | Countdown For Block: | #{{ height }} |
+
+
+ | Current Height: | #{{ store.latest?.block?.header.height }} |
+
+
+ | Remaining Blocks: | {{ remainingBlocks }} |
+
+
+ | Average Block Time: | {{ (store.blocktime/1000).toFixed(1) }}s |
+
+
+
diff --git a/src/stores/useBaseStore.ts b/src/stores/useBaseStore.ts
index 09c8f24b..049c733c 100644
--- a/src/stores/useBaseStore.ts
+++ b/src/stores/useBaseStore.ts
@@ -27,7 +27,8 @@ export const useBaseStore = defineStore('baseStore', {
const diff = dayjs(this.latest.block?.header?.time).diff(
this.earlest.block?.header?.time
);
- return diff;
+ const blocks = Number(this.latest.block.header.height) - Number(this.earlest.block.header.height)
+ return diff / (blocks);
}
}
return 6000;