Always set cumulative rewards when _withdrawAndSyncDelegatorRewards is called

This commit is contained in:
Amir Bandeali
2019-10-13 08:54:03 +09:00
parent 8bf7c4cf48
commit b0699fc238

View File

@@ -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.