From 838c74dbce5071c6268f4c1f74638352d089854d Mon Sep 17 00:00:00 2001 From: ToTheMars2 <109024799+ToTheMars2@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:59:12 +0300 Subject: [PATCH] correct upgrade time for proposals I think it will be a more dynamic option) --- src/modules/[chain]/gov/[proposal_id].vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index 1f640c2c..083b6e3a 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -128,7 +128,7 @@ const upgradeCountdown = computed((): number => { if (height > 0) { const base = useBaseStore(); 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 end = new Date(proposal.value.content?.plan?.time || '');