Skip to content

Commit

Permalink
Simplify assign statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Oct 29, 2024
1 parent 718edef commit 1c5036a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/sfc/SFCLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ contract SFCLib is SFCBase {
function _stashRewards(address delegator, uint256 toValidatorID) internal returns (bool updated) {
uint256 nonStashedReward = _newRewards(delegator, toValidatorID);
stashedRewardsUntilEpoch[delegator][toValidatorID] = _highestPayableEpoch(toValidatorID);
_rewardsStash[delegator][toValidatorID] = _rewardsStash[delegator][toValidatorID] + nonStashedReward;
_rewardsStash[delegator][toValidatorID] += nonStashedReward;
return nonStashedReward != 0;
}

Expand Down

0 comments on commit 1c5036a

Please sign in to comment.