snapshot-labs / sx-monorepo

Snapshot monorepo
https://snapshot.box
MIT License
11 stars 10 forks source link

bug: voting power from OZ Votes storage proof #301

Closed bonustrack closed 3 months ago

bonustrack commented 4 months ago

Currently on SX.js we use "getVotes" to get current voting power on the "proposals" page for a space using "OZ Votes storage proof" voting strategy. This can be misleading if the storage slot is not set correctly, someone may see his voting power on "proposals" page but it may not work on "proposal" page. Ideally we should use the same logic as when we query vp for a single proposal, using storage proof to calculate voting power. Similar than EVM storage slot.