Skip to content

Commit ba7bd63

Browse files
victorgesyondonfu
authored andcommitted
contracts/bm: Fix asertions for lte not lt
1 parent 9551600 commit ba7bd63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/bonding/BondingManager.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ contract BondingManager is ManagerProxyTarget, IBondingManager {
365365
);
366366
}
367367
// Make sure there's no accounting error on transcoder rewards state
368-
assert(activeCumulativeRewards < totalStake);
368+
assert(activeCumulativeRewards <= totalStake);
369369

370370
uint256 delegatorsFees = MathUtils.percOf(_fees, earningsPool.transcoderFeeShare);
371371
uint256 transcoderCommissionFees = _fees.sub(delegatorsFees);
@@ -1490,7 +1490,7 @@ contract BondingManager is ManagerProxyTarget, IBondingManager {
14901490
t.activeCumulativeRewards = t.cumulativeRewards;
14911491

14921492
// Make sure there's no accounting error on transcoder rewards state
1493-
assert(t.activeCumulativeRewards < earningsPool.totalStake);
1493+
assert(t.activeCumulativeRewards <= earningsPool.totalStake);
14941494
uint256 transcoderCommissionRewards = MathUtils.percOf(_rewards, earningsPool.transcoderRewardCut);
14951495
uint256 delegatorsRewards = _rewards.sub(transcoderCommissionRewards);
14961496
// Calculate the rewards earned by the transcoder's earned rewards

0 commit comments

Comments
 (0)