Skip to content

Commit 3fe7bde

Browse files
committed
fix: fix wrong status of past DRep information
1 parent 3417a4f commit 3fe7bde

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
@@ -17,6 +17,7 @@ changes.
1717
### Fixed
1818

1919
- Fix ada holder voting power calculation
20+
- Fix wrong statuses on past DRep info
2021
- Fix listing voted-on governance actions [Issue 2379](https://github.com/IntersectMBO/govtool/issues/2379)
2122
- Fix wronly displayed markdown on slider card [Issue 2263](https://github.com/IntersectMBO/govtool/issues/2316)
2223
- 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)