Skip to content

Commit

Permalink
Fix voting power home stats (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmirgaleev authored Jul 15, 2022
1 parent 88c0f6d commit 5787fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tzkt.Api/Services/Home/HomeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ async Task<GovernanceData> GetGovernanceData()
Hash = x.Hash,
Metadata = x.Metadata,
VotingPower = x.VotingPower,
VotingPowerPercentage = Math.Round(100.0 * x.VotingPower / (int)period.TotalVotingPower!, 2)
VotingPowerPercentage = Math.Round(100.0 * x.VotingPower / (long)period.TotalVotingPower!, 2)
}).ToList(),
UpvotesQuorum = period.UpvotesQuorum,
PeriodEndTime = period.EndTime,
Expand Down

0 comments on commit 5787fee

Please sign in to comment.