Skip to content

Commit cf383a8

Browse files
SidestreamSweatyPumpkinyondonfu
authored andcommitted
fix: update delegator fee validation to use approximate equality
1 parent 47fb673 commit cf383a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/BondingManagerRetroactiveRewardCalculationFix.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ contract BondingManagerRetroactiveRewardCalculationFix is BondingManagerRetroact
4343
}
4444

4545
function _validateDelegatorFees(uint256 consecutive, uint256 missed) internal override {
46-
assertEq(consecutive, missed, "Delegator fee loss persists");
46+
// We use 1e1 as a safe tolerance for the estimated delegator fees
47+
assertApproxEqAbs(consecutive, missed, 1e1, "Delegator fee loss persists");
4748
}
4849
}

0 commit comments

Comments
 (0)