@@ -76,9 +76,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
7676 /// @notice Emitted to notify a deposit of beacon chain ETH recorded in the strategy manager
7777 event BeaconChainETHDeposited (address indexed podOwner , uint256 amount );
7878
79- /// @notice Emitted when `maxPods` value is updated from `previousValue` to `newValue`
80- event MaxPodsUpdated (uint256 previousValue , uint256 newValue );
81-
8279 // EIGENPOD EVENTS
8380 /// @notice Emitted when an ETH validator stakes via this eigenPod
8481 event EigenPodStaked (bytes pubkey );
@@ -238,7 +235,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
238235 address (eigenPodManagerImplementation),
239236 abi.encodeWithSelector (
240237 EigenPodManager.initialize.selector ,
241- type (uint256 ).max, // maxPods
242238 beaconChainOracle,
243239 initialOwner,
244240 pauserReg,
@@ -1334,37 +1330,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
13341330 require (numPodsAfter == numPodsBefore + 1 , "numPods did not increment correctly " );
13351331 }
13361332
1337- // verifies that the `maxPods` variable is enforced on the `EigenPod.stake` function
1338- function test_maxPodsEnforcementOnStake (
1339- bytes calldata _pubkey ,
1340- bytes calldata _signature ,
1341- bytes32 _depositDataRoot
1342- ) public {
1343- // set pod limit to current number of pods
1344- cheats.startPrank (unpauser);
1345- EigenPodManager (address (eigenPodManager)).setMaxPods (EigenPodManager (address (eigenPodManager)).numPods ());
1346- cheats.stopPrank ();
1347-
1348- cheats.startPrank (podOwner);
1349- cheats.expectRevert ("EigenPodManager._deployPod: pod limit reached " );
1350- eigenPodManager.stake {value: 32 ether }(_pubkey, _signature, _depositDataRoot);
1351- cheats.stopPrank ();
1352-
1353- // set pod limit to *one more than* current number of pods
1354- cheats.startPrank (unpauser);
1355- EigenPodManager (address (eigenPodManager)).setMaxPods (EigenPodManager (address (eigenPodManager)).numPods () + 1 );
1356- cheats.stopPrank ();
1357-
1358- IEigenPod newPod = eigenPodManager.getPod (podOwner);
1359-
1360- cheats.startPrank (podOwner);
1361- // successful call
1362- cheats.expectEmit (true , true , true , true , address (newPod));
1363- emit EigenPodStaked (_pubkey);
1364- eigenPodManager.stake {value: 32 ether }(_pubkey, _signature, _depositDataRoot);
1365- cheats.stopPrank ();
1366- }
1367-
13681333 // verifies that the `numPod` variable increments correctly on a succesful call to the `EigenPod.createPod` function
13691334 function test_incrementNumPodsOnCreatePod () public {
13701335 uint256 numPodsBefore = EigenPodManager (address (eigenPodManager)).numPods ();
@@ -1379,53 +1344,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
13791344 eigenPodManager.createPod ();
13801345 }
13811346
1382- // verifies that the `maxPods` variable is enforced on the `EigenPod.createPod` function
1383- function test_maxPodsEnforcementOnCreatePod () public {
1384- // set pod limit to current number of pods
1385- cheats.startPrank (unpauser);
1386- uint256 previousValue = EigenPodManager (address (eigenPodManager)).maxPods ();
1387- uint256 newValue = EigenPodManager (address (eigenPodManager)).numPods ();
1388- cheats.expectEmit (true , true , true , true , address (eigenPodManager));
1389- emit MaxPodsUpdated (previousValue, newValue);
1390- EigenPodManager (address (eigenPodManager)).setMaxPods (newValue);
1391- cheats.stopPrank ();
1392-
1393- cheats.expectRevert ("EigenPodManager._deployPod: pod limit reached " );
1394- eigenPodManager.createPod ();
1395-
1396- // set pod limit to *one more than* current number of pods
1397- cheats.startPrank (unpauser);
1398- previousValue = EigenPodManager (address (eigenPodManager)).maxPods ();
1399- newValue = EigenPodManager (address (eigenPodManager)).numPods () + 1 ;
1400- cheats.expectEmit (true , true , true , true , address (eigenPodManager));
1401- emit MaxPodsUpdated (previousValue, newValue);
1402- EigenPodManager (address (eigenPodManager)).setMaxPods (newValue);
1403- cheats.stopPrank ();
1404-
1405- // successful call
1406- eigenPodManager.createPod ();
1407- }
1408-
1409- function test_setMaxPods (uint256 newValue ) public {
1410- cheats.startPrank (unpauser);
1411- uint256 previousValue = EigenPodManager (address (eigenPodManager)).maxPods ();
1412- cheats.expectEmit (true , true , true , true , address (eigenPodManager));
1413- emit MaxPodsUpdated (previousValue, newValue);
1414- EigenPodManager (address (eigenPodManager)).setMaxPods (newValue);
1415- cheats.stopPrank ();
1416-
1417- require (EigenPodManager (address (eigenPodManager)).maxPods () == newValue, "maxPods value not set correctly " );
1418- }
1419-
1420- function test_setMaxPods_RevertsWhenNotCalledByUnpauser (address notUnpauser ) public fuzzedAddress (notUnpauser) {
1421- cheats.assume (notUnpauser != unpauser);
1422- uint256 newValue = 0 ;
1423- cheats.startPrank (notUnpauser);
1424- cheats.expectRevert ("msg.sender is not permissioned as unpauser " );
1425- EigenPodManager (address (eigenPodManager)).setMaxPods (newValue);
1426- cheats.stopPrank ();
1427- }
1428-
14291347 function test_validatorPubkeyToInfo () external {
14301348 bytes memory _pubkey = hex "93a0dd04ccddf3f1b419fdebf99481a2182c17d67cf14d32d6e50fc4bf8effc8db4a04b7c2f3a5975c1b9b74e2841888 " ;
14311349
0 commit comments