Commit 6c024a1
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 7b8c79b commit 6c024a1
1 file changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 274 | + | |
284 | 275 | | |
285 | 276 | | |
286 | 277 | | |
| |||
0 commit comments