Skip to content

Improve the component VotingPower #1661

@arielmergen

Description

@arielmergen

Feature or change description

Image

Now the component is taking the Hemi token symbol and simply appending the text, resulting in veHemi. Instead, it needs to fetch the symbol directly from the contract.

Problem or use case addressed

Proposed implementation

Once you obtain the token, do the following:

  • Validate the loading state; while it’s loading, display a skeleton (the components already exist, just implement them).
  • If there’s an error, fall back to ve${token.symbol}.
  • Recalculate the votingPower.
  • Display the token.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions