GithubHelp home page GithubHelp logo

Comments (3)

rossbulat avatar rossbulat commented on August 19, 2024

Thank you for reporting this.

@frankli-dev would you be interested in tackling this issue?

A quick way to reproduce the issue would be to import a read only account that has this scenario where its bonded funds are split among multiple validators. Perhaps @Juanma0x can share the nominator in the screenshot?

The staked amount is displayed from src/library/ListItem/Labels/NominationStatus.tsx. It looks like same activeAccountOwnStake is being used, rather than the amount for the single validator.

My initial thoughts would be to store a Record<validator, ownStake> instead of a single activeAccountOwnStake, which is currently persisted to erasStakers state in src/contexts/Staking/index.tsx.

from polkadot-staking-dashboard.

Juanma0x avatar Juanma0x commented on August 19, 2024

Thanks @rossbulat for looking into it.

Because big accounts are more likely to be assigned multiple validators for any given era, you can copy almost any of the "staking whales" and add it as "read-only" account in the Staking Dashboard.

I.e.: 16GMHo9HZv8CcJy4WLoMaU9qusgzx2wxKDLbXStEBvt5274B

from polkadot-staking-dashboard.

frankli-dev avatar frankli-dev commented on August 19, 2024

Thank you for reporting this.

@frankli-dev would you be interested in tackling this issue?

A quick way to reproduce the issue would be to import a read only account that has this scenario where its bonded funds are split among multiple validators. Perhaps @Juanma0x can share the nominator in the screenshot?

The staked amount is displayed from src/library/ListItem/Labels/NominationStatus.tsx. It looks like same activeAccountOwnStake is being used, rather than the amount for the single validator.

My initial thoughts would be to store a Record<validator, ownStake> instead of a single activeAccountOwnStake, which is currently persisted to erasStakers state in src/contexts/Staking/index.tsx.

@rossbulat Sure. I didn't check my email though. I couldn't see this notification. I will handle this and will create a pr from https://github.com/frankli-polkadot (my github only for staking dashboard contribution)

Will update asap.

from polkadot-staking-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.