You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
COALESCE(RankedDRepRegistration.deposit, 0) as latest_deposit,
124
-
hndva.valueAS has_non_deregister_voting_anchor,
121
+
newestRegister.time AT TIME ZONE 'UTC'AS last_register_time,
125
122
fetch_error.messageAS fetch_error,
126
123
off_chain_vote_drep_data.payment_address,
127
124
off_chain_vote_drep_data.given_name,
128
125
off_chain_vote_drep_data.objectives,
129
126
off_chain_vote_drep_data.motivations,
130
127
off_chain_vote_drep_data.qualifications,
131
128
off_chain_vote_drep_data.image_url,
132
-
off_chain_vote_drep_data.image_hash
129
+
off_chain_vote_drep_data.image_hash,
130
+
-- drep type
131
+
CASE
132
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) >=0ANDleva.url IS NULL THEN 'SoleVoter'
133
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) >=0ANDleva.urlIS NOT NULL THEN 'DRep'
134
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) <0ANDhndva.value= true THEN 'SoleVoter'
135
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) <0ANDhndva.value= false THEN 'DRep'
136
+
END AS drep_type,
137
+
-- status
138
+
CASE
139
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) <0 THEN 'Retired'
140
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) >=0AND (DRepActivity.epoch_no- GREATEST(COALESCE(voting_procedure_block.epoch_no, block_first_register.epoch_no), lve.epoch_no, newestRegister.epoch_no)) <=DRepActivity.drep_activity THEN 'Active'
141
+
WHEN COALESCE(RankedDRepRegistration.deposit, 0) >=0AND NOT (DRepActivity.epoch_no- GREATEST(COALESCE(voting_procedure_block.epoch_no, block_first_register.epoch_no), lve.epoch_no, newestRegister.epoch_no)) <=DRepActivity.drep_activity THEN 'Inactive'
0 commit comments