@@ -121,6 +121,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
121
121
_randStrategiesAndWadsToSlash (operatorSet);
122
122
slashingParams = avs.slashOperator (operator, operatorSet.id, strategiesToSlash, wadsToSlash);
123
123
assert_Snap_Allocations_Slashed (slashingParams, operatorSet, true , "operator allocations should be slashed " );
124
+ assert_Snap_Unchanged_StakerDepositShares (staker, "staker deposit shares should be unchanged after slashing " );
125
+ assert_Snap_StakerWithdrawableShares_AfterSlash (staker, allocateParams, slashingParams, "staker deposit shares should be slashed " );
124
126
}
125
127
126
128
// 5. Undelegate from an operator
@@ -188,6 +190,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
188
190
_randStrategiesAndWadsToSlash (operatorSet);
189
191
slashingParams = avs.slashOperator (operator, operatorSet.id, strategiesToSlash, wadsToSlash);
190
192
assert_Snap_Allocations_Slashed (slashingParams, operatorSet, true , "operator allocations should be slashed " );
193
+ assert_Snap_Unchanged_StakerDepositShares (staker, "staker deposit shares should be unchanged after slashing " );
194
+ assert_Snap_StakerWithdrawableShares_AfterSlash (staker, allocateParams, slashingParams, "staker deposit shares should be slashed " );
191
195
}
192
196
193
197
// 5. Undelegate from an operator
@@ -250,6 +254,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
250
254
_randStrategiesAndWadsToSlash (operatorSet);
251
255
slashingParams = avs.slashOperator (operator, operatorSet.id, strategiesToSlash, wadsToSlash);
252
256
assert_Snap_Allocations_Slashed (slashingParams, operatorSet, true , "operator allocations should be slashed " );
257
+ assert_Snap_Unchanged_StakerDepositShares (staker, "staker deposit shares should be unchanged after slashing " );
258
+ assert_Snap_StakerWithdrawableShares_AfterSlash (staker, allocateParams, slashingParams, "staker deposit shares should be slashed " );
253
259
}
254
260
255
261
// 6. Complete withdrawal
@@ -318,6 +324,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
318
324
_randStrategiesAndWadsToSlash (operatorSet);
319
325
slashingParams = avs.slashOperator (operator, operatorSet.id, strategiesToSlash, wadsToSlash);
320
326
assert_Snap_Allocations_Slashed (slashingParams, operatorSet, true , "operator allocations should be slashed " );
327
+ assert_Snap_Unchanged_StakerDepositShares (staker, "staker deposit shares should be unchanged after slashing " );
328
+ assert_Snap_StakerWithdrawableShares_AfterSlash (staker, allocateParams, slashingParams, "staker deposit shares should be slashed " );
321
329
}
322
330
323
331
// 4. Complete withdrawal
@@ -365,12 +373,10 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
365
373
assert_Snap_Allocations_Modified (
366
374
operator, allocateParams, true , "operator allocations should be updated after delay "
367
375
);
368
- console.log ("block allocation complete " , block .number );
369
376
370
377
// 4. Deallocate all.
371
- operator.deallocateAll (operatorSet);
378
+ IAllocationManagerTypes.AllocateParams memory deallocateParams = operator.deallocateAll (operatorSet);
372
379
_rollBlocksForCompleteAllocation (operator, operatorSet, strategies);
373
- console.log ("block deallocation complete " , block .number );
374
380
375
381
// 5. Slash operator
376
382
IAllocationManagerTypes.SlashingParams memory slashingParams;
@@ -379,6 +385,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
379
385
_randStrategiesAndWadsToSlash (operatorSet);
380
386
slashingParams = avs.slashOperator (operator, operatorSet.id, strategiesToSlash, wadsToSlash);
381
387
assert_Snap_Allocations_Slashed (slashingParams, operatorSet, true , "operator allocations should be slashed " );
388
+ assert_Snap_Unchanged_StakerDepositShares (staker, "staker deposit shares should be unchanged after slashing " );
389
+ assert_Snap_StakerWithdrawableShares_AfterSlash (staker, deallocateParams, slashingParams, "staker deposit shares should be slashed " );
382
390
}
383
391
384
392
// 6. Queue withdrawals
@@ -447,6 +455,8 @@ contract Integration_Deposit_Delegate_Allocate is IntegrationCheckUtils {
447
455
_randStrategiesAndWadsToSlash (operatorSet);
448
456
slashingParams = avs.slashOperator (operator, operatorSet.id, strategiesToSlash, wadsToSlash);
449
457
assert_Snap_Allocations_Slashed (slashingParams, operatorSet, true , "operator allocations should be slashed " );
458
+ assert_Snap_Unchanged_StakerDepositShares (staker, "staker deposit shares should be unchanged after slashing " );
459
+ assert_Snap_StakerWithdrawableShares_AfterSlash (staker, allocateParams, slashingParams, "staker deposit shares should be slashed " );
450
460
}
451
461
}
452
462
}
0 commit comments