Always set cumulative rewards when _withdrawAndSyncDelegatorRewards is called
This commit is contained in:
@@ -139,12 +139,10 @@ contract MixinStakingPoolRewards is
|
||||
}
|
||||
|
||||
// Add a cumulative reward entry for this epoch.
|
||||
if (!_isCumulativeRewardSet(_cumulativeRewardsByPool[poolId][currentEpoch])) {
|
||||
_forceSetCumulativeReward(
|
||||
poolId,
|
||||
_getMostRecentCumulativeReward(poolId)
|
||||
);
|
||||
}
|
||||
_forceSetCumulativeReward(
|
||||
poolId,
|
||||
_getMostRecentCumulativeReward(poolId)
|
||||
);
|
||||
}
|
||||
|
||||
/// @dev Handles a pool's reward at the current epoch.
|
||||
|
Reference in New Issue
Block a user