Lunie: Validators with non-whole fractions of steaks showing incorrectly in staking window

Created on 29 Jul 2018  路  2Comments  路  Source: luniehq/lunie

UI Version: 0.9.1 Windows

Description:

Validators with non-whole fractions of steaks are showing the incorrect amount in the Staking window of Voyager.

image

Querying the above two validators in the Explorer shows that they should have 135.9 and 126.9 steaks respectively.

image

image

While this looks like the decimal place is not being handled correctly, another validator (#kingnet.com) is showing as 432 steak when according to the Explorer they have 86.4 (out by factor of 5 instead of 10).

The percent of vote is being calculated off the incorrect Total Votes, so I'm guessing this will be resolved once the votes is fixed.

Feel free to open Voyager v0.9.1 Windows on live testnet (gaia-7003) to view the same results.

bug

Most helpful comment

Awesome bug report. We will follow up quickly.

All 2 comments

Only had a quick chance to have a look, but appears to be the way it is expecting only integers somewhere here:
https://github.com/cosmos/voyager/blob/develop/app/src/renderer/components/staking/PageStaking.vue#L72

Awesome bug report. We will follow up quickly.

Was this page helpful?
0 / 5 - 0 ratings