decentraland / decentraland/governance
VP sources mismatched due to incorrect Snapshot strategy order
- Dominant language
- TypeScript
- Stars
- 49
- Forks
- 41
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Description:
We currently retrieve VP sources (MANA, LAND, Delegation, NAMES, etc.) from the Snapshot API. After recent changes to the voting strategies in Snapshot, the sources are being displayed incorrectly.
Example: the UI shows that a user has X amount of MANA VP when in fact that X belongs to their LAND VP.
Cause:
• The governance platform assumes a fixed order of strategies when retrieving data from Snapshot.
• Snapshot has changed the order of the strategies in its API response.
• As a result, we are rendering mismatched values (i.e., mapping the wrong strategy to the wrong VP source).
Expected behavior:
Each VP source (MANA, LAND, Delegation, NAMES, etc.) should be correctly matched and displayed regardless of the order returned by Snapshot. This appears on the user profile and on the delegation view of the profile.
Snapshot voting strategies order
Contributor guide
Assessment
This issue has not been assessed yet.