Skip to content

Commit a1eeb0c

Browse files
committed
fix: fix wrong status of past DRep information
1 parent af1ca81 commit a1eeb0c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ changes.
1616

1717
### Fixed
1818

19+
- Fix wrong statuses on past DRep info
1920
- Fix listing voted-on governance actions [Issue 2379](https://github.com/IntersectMBO/govtool/issues/2379)
2021
- Fix wronly displayed markdown on slider card [Issue 2263](https://github.com/IntersectMBO/govtool/issues/2316)
2122
- fix ada quantities format to avoid thousands when the total is 0 [Issue 2372](https://github.com/IntersectMBO/govtool/issues/2382)

govtool/backend/sql/get-drep-info.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ WasRegisteredAsDRep AS (
8787
CROSS JOIN DRepId
8888
WHERE
8989
drep_hash.raw = DRepId.raw
90+
AND drep_registration.deposit >= 0
9091
AND drep_registration.voting_anchor_id IS NOT NULL)) AS value
9192
),
9293
WasRegisteredAsSoleVoter AS (
@@ -100,6 +101,7 @@ WasRegisteredAsSoleVoter AS (
100101
CROSS JOIN DRepId
101102
WHERE
102103
drep_hash.raw = DRepId.raw
104+
AND drep_registration.deposit >= 0
103105
AND drep_registration.voting_anchor_id IS NULL)) AS value
104106
),
105107
CurrentMetadata AS (

0 commit comments

Comments
 (0)