Remove unnecessary assert

This commit is contained in:
Amir Bandeali
2019-10-10 16:05:58 +09:00
parent 9f6d113fe8
commit 8bf7c4cf48

View File

@@ -70,10 +70,7 @@ contract MixinCumulativeRewards is
{
uint256 currentEpoch_ = currentEpoch;
_cumulativeRewardsByPool[poolId][currentEpoch_] = value;
// Update state to reflect the most recent cumulative reward
uint256 currentMostRecentEpoch = _cumulativeRewardsByPoolLastStored[poolId];
assert(currentEpoch_ >= currentMostRecentEpoch);
_cumulativeRewardsByPoolLastStored[poolId] = currentEpoch_;
}