Skip to content

Commit

Permalink
Merge pull request #2434 from IntersectMBO/fix/2407-something-went-wr…
Browse files Browse the repository at this point in the history
…ong-response-from-api-when-fetching-the-voting-power-of-a-newly-registered-drep

fix(#2407): fix fetching voting power for newly registered DRep
  • Loading branch information
MSzalowski authored Nov 29, 2024
2 parents 435664d + 2ba10f3 commit 437cd48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ changes.

### Fixed

-
- Fix fetching voting power of newly registerd DRep [Issue 2407](https://github.com/IntersectMBO/govtool/issues/2407)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/sql/get-voting-power.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
select sum(uv.value) as amount
select coalesce(sum(uv.value), 0) as amount
from utxo_view uv
join delegation_vote dv on uv.stake_address_id = dv.addr_id
join drep_hash dh on dv.drep_hash_id = dh.id
Expand Down

0 comments on commit 437cd48

Please sign in to comment.