forked from cerc-io/cosmos-explorer
correct upgrade time for proposals
I think it will be a more dynamic option)
This commit is contained in:
parent
5fed99b1ab
commit
838c74dbce
@ -128,7 +128,7 @@ const upgradeCountdown = computed((): number => {
|
|||||||
if (height > 0) {
|
if (height > 0) {
|
||||||
const base = useBaseStore();
|
const base = useBaseStore();
|
||||||
const current = Number(base.latest?.block?.header?.height || 0);
|
const current = Number(base.latest?.block?.header?.height || 0);
|
||||||
return (height - current) * 6 * 1000;
|
return (height - current) * Number((base.blocktime / 1000).toFixed()) * 1000;
|
||||||
}
|
}
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const end = new Date(proposal.value.content?.plan?.time || '');
|
const end = new Date(proposal.value.content?.plan?.time || '');
|
||||||
|
Loading…
Reference in New Issue
Block a user