Skip to content

fix: attribute proxied votes - #1231

Merged
bryzettler merged 1 commit into
developfrom
fix/vote-attribution-rent-refund
Jul 27, 2026
Merged

fix: attribute proxied votes#1231
bryzettler merged 1 commit into
developfrom
fix/vote-attribution-rent-refund

Conversation

@bryzettler

Copy link
Copy Markdown
Contributor

fix: attribute proxied votes via index-0 rent_refund, not the default-pubkey voter

The votes endpoint attributed proxy-cast weight to the index-0 proxy assignment's voter, which on-chain is always Pubkey::default() (it seeds the PDA), collapsing all proxied weight into a single 11111...11111 row. Attribute via the assignment's rent_refund (the wallet that paid for the first assignment) instead, only for proxy-cast markers, falling back to the casting voter when it is missing or default.

…-pubkey voter

The votes endpoint attributed proxy-cast weight to the index-0 proxy
assignment's voter, which on-chain is always Pubkey::default() (it seeds
the PDA), collapsing all proxied weight into a single 11111...11111 row.
Attribute via the assignment's rent_refund (the wallet that paid for the
first assignment) instead, only for proxy-cast markers, falling back to
the casting voter when it is missing or default.
@bryzettler
bryzettler requested a review from madninja July 27, 2026 19:34
@bryzettler
bryzettler force-pushed the fix/vote-attribution-rent-refund branch from 7902946 to 5eba044 Compare July 27, 2026 19:34
@bryzettler
bryzettler requested review from allenan and jthiller July 27, 2026 19:37
@bryzettler
bryzettler merged commit fae9e37 into develop Jul 27, 2026
9 checks passed
@bryzettler
bryzettler deleted the fix/vote-attribution-rent-refund branch July 27, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants