From 6c473b78dd3fdf4896eb2d379e52c7020e0cd7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Thu, 17 Oct 2024 09:13:09 +0200 Subject: [PATCH] fix: target start date of the expiration epoch in GAs --- govtool/backend/sql/list-proposals.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/govtool/backend/sql/list-proposals.sql b/govtool/backend/sql/list-proposals.sql index e1130442..b3b83654 100644 --- a/govtool/backend/sql/list-proposals.sql +++ b/govtool/backend/sql/list-proposals.sql @@ -55,9 +55,9 @@ SELECT ) as description, CASE WHEN meta.network_name::text = 'mainnet' THEN - latest_epoch.start_time + (gov_action_proposal.expiration - latest_epoch.no)::bigint * INTERVAL '5 days' + INTERVAL '5 days' + latest_epoch.start_time + (gov_action_proposal.expiration - latest_epoch.no)::bigint * INTERVAL '5 days' ELSE - latest_epoch.start_time + (gov_action_proposal.expiration - latest_epoch.no)::bigint * INTERVAL '1 day' + INTERVAL '1 day' + latest_epoch.start_time + (gov_action_proposal.expiration - latest_epoch.no)::bigint * INTERVAL '1 day' END AS expiry_date, gov_action_proposal.expiration, creator_block.time,