Skip to content

Commit

Permalink
Added coalesce to ensure drep with an update isn't shown as unregistered
Browse files Browse the repository at this point in the history
  • Loading branch information
gregbgithub committed Aug 17, 2024
1 parent dcfed50 commit bebbfb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/grest/rpc/governance/drep_list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AS $$
ENCODE(dh.raw, 'hex')::text AS hex,
dh.has_script AS has_script,
(CASE
WHEN dr.deposit >= 0 THEN TRUE
WHEN coalesce(dr.deposit, 0) >= 0 THEN TRUE
ELSE FALSE
END) AS registered
FROM public.drep_hash AS dh
Expand Down

0 comments on commit bebbfb5

Please sign in to comment.