diff --git a/contracts/CandidateHub.sol b/contracts/CandidateHub.sol index 4cbc005a..b8ea5df5 100644 --- a/contracts/CandidateHub.sol +++ b/contracts/CandidateHub.sol @@ -307,7 +307,7 @@ contract CandidateHub is ICandidateHub, System, IParamSubscriber { ); if (roundTag != c.commissionLastChangeRound) { c.commissionLastChangeRound = roundTag; - c.commissionLastRoundValue = commissionThousandths; + c.commissionLastRoundValue = c.commissionThousandths; } if (c.consensusAddr != consensusAddr) { require(consensusMap[consensusAddr] == 0, "the consensus already exists"); diff --git a/contracts/CandidateHub.template b/contracts/CandidateHub.template index 3898aa42..196d190f 100644 --- a/contracts/CandidateHub.template +++ b/contracts/CandidateHub.template @@ -319,7 +319,7 @@ contract CandidateHub is ICandidateHub, System, IParamSubscriber { ); if (roundTag != c.commissionLastChangeRound) { c.commissionLastChangeRound = roundTag; - c.commissionLastRoundValue = commissionThousandths; + c.commissionLastRoundValue = c.commissionThousandths; } if (c.consensusAddr != consensusAddr) { require(consensusMap[consensusAddr] == 0, "the consensus already exists");