decentraland / decentraland/governance

VP sources mismatched due to incorrect Snapshot strategy order

Open
#1,904 1 comment 0 reactions 1 assignee Claimed by @Gaffomdz View on GitHub
bug
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.

Image

Image

Snapshot voting strategies order

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.