Skip to content

Commit 2403c1c

Browse files
authored
GenesisProtocol - deposit reputation only for preboosting state proposals (#8)
1 parent bea244c commit 2403c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/VotingMachines/GenesisProtocol.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ contract GenesisProtocol is IntVoteInterface {
888888
vote: _vote,
889889
preBoosted:(proposal.state == ProposalState.PreBoosted)
890890
});
891-
if (proposal.state != ProposalState.Boosted) {
891+
if (proposal.state == ProposalState.PreBoosted) {
892892
proposal.preBoostedVotes[_vote] = rep.add(proposal.preBoostedVotes[_vote]);
893893
uint reputationDeposit = (params.votersReputationLossRatio * rep)/100;
894894
GenesisProtocolCallbacksInterface(proposal.organization).burnReputation(reputationDeposit,_voter,_proposalId);

0 commit comments

Comments
 (0)