Skip to content

Commit

Permalink
Merge pull request #2165 from IntersectMBO/fix/target-start-date-of-t…
Browse files Browse the repository at this point in the history
…he-epoch-of-governance-action-expiration

fix: target start date of the expiration epoch in GAs
  • Loading branch information
MSzalowski authored Oct 17, 2024
2 parents 2d10730 + 6c473b7 commit bc73a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions govtool/backend/sql/list-proposals.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc73a86

Please sign in to comment.