Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: voting power for offchain pending proposals should use the proposal snapshot #1042

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Dec 10, 2024

Summary

Closes: #940

This PR fix the voting power for offchain pending proposal, which were based on latest block, instead of the proposal own snapshot

How to test

  1. Open the network in the dev console
  2. Go to an offchain pending proposal
  3. Inspect the payload for https://score.snapshot.org/
  4. It should use a number as snapshot, instead of latest

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tAck

apps/ui/src/composables/useVotingPower.ts Outdated Show resolved Hide resolved
@wa0x6e wa0x6e force-pushed the fix-offchain-pending-proposal-vp branch from 15050a3 to 24cf638 Compare December 11, 2024 05:04
@wa0x6e wa0x6e merged commit ebd0b3b into master Dec 11, 2024
4 checks passed
@wa0x6e wa0x6e deleted the fix-offchain-pending-proposal-vp branch December 11, 2024 05:15
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.

bug: wrong voting power on offchain pending proposals
2 participants