Skip to content

Rework Staking Overview page #11933

@kianenigma

Description

@kianenigma

The major issues are that:

  1. Own stake is not shown
  2. Nominator count is only showing first page (see westend)

I think under the hood, based on what I have learned in #11930, this page is using some api.derive stuff that is wrong.

I suggest two actions:

  1. For this page, we don't need anything else other than reading erasStakersOverview. The keys are the validators, the value has nominator_count, own_stake, total_stake. We don't need to show all nominators one by one. If we try and show nominators, it should show all pages properly.
  2. Fix the drive stuff

I think a first PR should implement only 1 and finish #11930
A second PR can re-add nominator list in a paginated way
A third PR can fix api.derive details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions