Skip to content

Commit

Permalink
Merge branch 'prod' into snca-fix-feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoseneca authored Jan 15, 2024
2 parents f8f5f1d + d37954f commit f7eed0b
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@ const VoteConfirmationModal: React.FC<{
const votes = voteAllotments
.filter(a => a.votes > 0)
.map(a => {
const factor = BigNumber.from(10).pow(GOV_POWER_OVERRIDES[round.address].decimals);
let votes = GOV_POWER_OVERRIDES[round.address]
? BigNumber.from(a.votes).mul(factor).toString()
: String(a.votes);
let votes;

if (GOV_POWER_OVERRIDES[round.address]) {
const factor = BigNumber.from(10).pow(GOV_POWER_OVERRIDES[round.address].decimals);
votes = BigNumber.from(a.votes).mul(factor).toString();
} else {
votes = String(a.votes);
}

return { proposalId: a.proposalId, votingPower: votes };
});

Expand Down

0 comments on commit f7eed0b

Please sign in to comment.