Skip to content

Commit

Permalink
Fabo/fix vote count (#157)
Browse files Browse the repository at this point in the history
* fixed vote count calculation

* linted
  • Loading branch information
faboweb authored and jbibla committed Nov 28, 2019
1 parent 4bdcad1 commit c33c8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function getTotalVotePercentage(proposal, totalBondedTokens, totalVoted) {
if (proposalFinalized(proposal)) return -1
if (BigNumber(totalVoted).eq(0)) return 0
if (!totalBondedTokens) return -1
return BigNumber(totalBondedTokens)
.div(atoms(totalVoted))
return BigNumber(totalVoted)
.div(atoms(totalBondedTokens))
.toNumber()
}

Expand Down

0 comments on commit c33c8a6

Please sign in to comment.