Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Vested amount not shown correctly #86

Open
infinity0 opened this issue Dec 29, 2020 · 0 comments
Open

Vested amount not shown correctly #86

infinity0 opened this issue Dec 29, 2020 · 0 comments

Comments

@infinity0
Copy link

https://polkadot.polkastats.io/account/16iZ5JgtXmH7kedwxbbPwvzMXYtRUgwmiwiALSkWLZY8eFR

Today on 2020-12-29 at block height ~3109000 it says Total Balance | 7.1000 kDOT / Vested Balance | 104.5129 DOT

I am not sure how this is being calculated, however if you query the chain vesting.vesting($accId) e.g. via polkadot-js you get:

{
  locked: 7.1000 kDOT,
  perBlock: 1.3508 mDOT,
  startingBlock: 2,047,000
}

From this we calculate (3109000 - 2047000) * 0.00013508 = 143.45 as the vested balance, not 104.5 as stated by polkastats.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant