@@ -76,9 +76,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
76
76
/// @notice Emitted to notify a deposit of beacon chain ETH recorded in the strategy manager
77
77
event BeaconChainETHDeposited (address indexed podOwner , uint256 amount );
78
78
79
- /// @notice Emitted when `maxPods` value is updated from `previousValue` to `newValue`
80
- event MaxPodsUpdated (uint256 previousValue , uint256 newValue );
81
-
82
79
// EIGENPOD EVENTS
83
80
/// @notice Emitted when an ETH validator stakes via this eigenPod
84
81
event EigenPodStaked (bytes pubkey );
@@ -238,7 +235,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
238
235
address (eigenPodManagerImplementation),
239
236
abi.encodeWithSelector (
240
237
EigenPodManager.initialize.selector ,
241
- type (uint256 ).max, // maxPods
242
238
beaconChainOracle,
243
239
initialOwner,
244
240
pauserReg,
@@ -1334,37 +1330,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
1334
1330
require (numPodsAfter == numPodsBefore + 1 , "numPods did not increment correctly " );
1335
1331
}
1336
1332
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
-
1368
1333
// verifies that the `numPod` variable increments correctly on a succesful call to the `EigenPod.createPod` function
1369
1334
function test_incrementNumPodsOnCreatePod () public {
1370
1335
uint256 numPodsBefore = EigenPodManager (address (eigenPodManager)).numPods ();
@@ -1379,53 +1344,6 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
1379
1344
eigenPodManager.createPod ();
1380
1345
}
1381
1346
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
-
1429
1347
function test_validatorPubkeyToInfo () external {
1430
1348
bytes memory _pubkey = hex "93a0dd04ccddf3f1b419fdebf99481a2182c17d67cf14d32d6e50fc4bf8effc8db4a04b7c2f3a5975c1b9b74e2841888 " ;
1431
1349
0 commit comments