Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/test/EigenLayerTestHelper.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ contract EigenLayerTestHelper is EigenLayerDeployer {
//uint256 strategyTokenBalance = strategyArray[i].underlyingToken().balanceOf(address(strategyArray[i]));
uint256 tokenBalanceDelta = (strategyTokenBalance[i] * shareAmounts[i]) / priorTotalShares[i];

// filter out unrealistic case, where the withdrawer is the strategy contract itself
cheats.assume(withdrawer != address(strategyArray[i]));
require(
strategyArray[i].underlyingToken().balanceOf(withdrawer) == balanceBefore[i] + tokenBalanceDelta,
"_testCompleteQueuedWithdrawalTokens: withdrawer balance not incremented"
Expand Down
2 changes: 2 additions & 0 deletions src/test/unit/DelegationUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ contract DelegationUnitTests is EigenLayerTestHelper {
cheats.assume(operatorDetails.stakerOptOutWindowBlocks <= delegationManager.MAX_STAKER_OPT_OUT_WINDOW_BLOCKS());
// filter out zero address since people can't set their earningsReceiver address to the zero address (special test case to verify)
cheats.assume(operatorDetails.earningsReceiver != address(0));
// filter out case where staker *is* the operator
cheats.assume(staker != _operator);

// register *this contract* as an operator
IDelegationManager.OperatorDetails memory _operatorDetails = IDelegationManager.OperatorDetails({
Expand Down
2 changes: 1 addition & 1 deletion src/test/unit/EigenPodManagerUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ contract EigenPodManagerUnitTests_Initialization_Setters is EigenPodManagerUnitT
0 /*initialPausedStatus*/);
}

function testFuzz_setMaxPods_revert_notUnpauser(address notUnpauser) public {
function testFuzz_setMaxPods_revert_notUnpauser(address notUnpauser) public filterFuzzedAddressInputs(notUnpauser) {
cheats.assume(notUnpauser != unpauser);
cheats.prank(notUnpauser);
cheats.expectRevert("msg.sender is not permissioned as unpauser");
Expand Down