Skip to content

Commit

Permalink
Merge pull request #618 from MrXJC/jiacheng/develop
Browse files Browse the repository at this point in the history
Fix the participation bug
  • Loading branch information
HaoyangLiu authored Nov 15, 2018
2 parents e547ec0 + 881b04a commit e72cff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gov/tally.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func tally(ctx sdk.Context, keeper Keeper, proposal Proposal) (passes bool, tall
}
//////////////////// iris begin ///////////////////////////
//if more than 1/3 of voters abstain, proposal fails
if totalVotingPower.Sub(results[OptionAbstain]).Quo(totalVotingPower).LTE(tallyingProcedure.Participation){
if results[OptionYes].Add(results[OptionAbstain]).Add(results[OptionNo]).Add(results[OptionNoWithVeto]).Quo(totalVotingPower).LTE(tallyingProcedure.Participation){
return false, tallyResults
}
//////////////////// iris end ///////////////////////////
Expand Down

0 comments on commit e72cff7

Please sign in to comment.