Commit 7159e44
committed
fix(views): remove DISTINCT ON from delegation_events join to fix VP regression
The DISTINCT ON (delegator_id) was picking ft_burn events over ft_mint,
causing the delegate_event = 'ft_mint' filter to fail and making
delegating voters show their full principal balance instead of 0.
Restores the direct LEFT JOIN while keeping registered_voter_id
instead of signer_account_id for the join key.1 parent b518a0c commit 7159e44
1 file changed
+2
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 243 | + | |
| 244 | + | |
254 | 245 | | |
255 | 246 | | |
256 | 247 | | |
| |||
0 commit comments