We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30539b9 commit a085fddCopy full SHA for a085fdd
contracts/sfc/SFCLib.sol
@@ -348,9 +348,12 @@ contract SFCLib is SFCBase {
348
349
function _stashRewards(address delegator, uint256 toValidatorID) internal returns (bool) {
350
uint256 nonStashedReward = _newRewards(delegator, toValidatorID);
351
+ if (nonStashedReward == 0) {
352
+ return false;
353
+ }
354
stashedRewardsUntilEpoch[delegator][toValidatorID] = _highestPayableEpoch(toValidatorID);
355
_rewardsStash[delegator][toValidatorID] = _rewardsStash[delegator][toValidatorID] + nonStashedReward;
- return nonStashedReward != 0;
356
+ return true;
357
}
358
359
function _claimRewards(address delegator, uint256 toValidatorID) internal returns (uint256) {
0 commit comments