Skip to content

Commit 568f892

Browse files
committed
chore: wand vacuum src/test/integration --delete
1 parent 76120f5 commit 568f892

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

src/test/integration/IntegrationChecks.t.sol

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -249,35 +249,6 @@ contract IntegrationChecks is IntegrationUtils {
249249
assert_Snap_DSF_State_Deposit(staker, strategies, "staker's DSF not updated correctly");
250250
}
251251

252-
/// @notice Used for edge cases where rounding behaviors impact the assertions after a deposit, specifically when
253-
/// there already exists depositShares for a staker for a strategy.
254-
function check_Deposit_State_SubsequentDeposit_WithRounding(User staker, IStrategy[] memory strategies, uint[] memory shares)
255-
internal
256-
{
257-
/// Deposit into strategies:
258-
// For each of the assets held by the staker (either StrategyManager or EigenPodManager),
259-
// the staker calls the relevant deposit function, depositing all held assets.
260-
//
261-
// ... check that all underlying tokens were transferred to the correct destination
262-
// and that the staker now has the expected amount of delegated shares in each strategy
263-
assert_HasNoUnderlyingTokenBalance(staker, strategies, "staker should have transferred all underlying tokens");
264-
assert_DepositShares_GTE_WithdrawableShares(
265-
staker, strategies, "deposit shares should be greater than or equal to withdrawable shares"
266-
);
267-
assert_Snap_Added_Staker_DepositShares(staker, strategies, shares, "staker should expect shares in each strategy after depositing");
268-
assert_StrategiesInStakerStrategyList(staker, strategies, "staker strategy list should contain all strategies");
269-
270-
if (delegationManager.isDelegated(address(staker))) {
271-
User operator = User(payable(delegationManager.delegatedTo(address(staker))));
272-
assert_Snap_Expected_Staker_WithdrawableShares_Deposit(
273-
staker, operator, strategies, shares, "staker should have received expected withdrawable shares"
274-
);
275-
} else {
276-
assert_Snap_Added_Staker_WithdrawableShares(staker, strategies, shares, "deposit should increase withdrawable shares");
277-
}
278-
assert_Snap_WithinErrorBounds_DSF(staker, strategies, "staker's DSF not updated correctly");
279-
}
280-
281252
function check_Delegation_State(User staker, User operator, IStrategy[] memory strategies, uint[] memory depositShares) public {
282253
/// Delegate to an operator:
283254
//

src/test/integration/IntegrationDeployer.t.sol

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -511,27 +511,6 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
511511
return (user, tokenBalances);
512512
}
513513

514-
/// @dev Create a new user without native ETH. See _randUser above for standard usage
515-
function _randUser_NoETH(string memory name) internal noTracing returns (User, IStrategy[] memory, uint[] memory) {
516-
// Deploy new User contract
517-
uint userType = _randUserType();
518-
User user = _genRandUser(name, userType);
519-
520-
// Pick the user's asset distribution, removing "native ETH" as an option
521-
// I'm sorry if this eventually leads to a bug that's really hard to track down
522-
uint assetType = _randAssetType();
523-
if (assetType == HOLDS_ETH) assetType = NO_ASSETS;
524-
else if (assetType == HOLDS_ALL || assetType == HOLDS_MAX) assetType = HOLDS_LST;
525-
526-
// For the specific asset selection we made, get a random assortment of strategies
527-
// and deal the user some corresponding underlying token balances
528-
IStrategy[] memory strategies = _selectRandAssets(assetType);
529-
uint[] memory tokenBalances = _dealRandAmounts(user, strategies);
530-
531-
print.user(name, assetType, userType, strategies, tokenBalances);
532-
return (user, strategies, tokenBalances);
533-
}
534-
535514
/// @dev Creates a new user without any assets
536515
function _randUser_NoAssets(string memory name) internal noTracing returns (User) {
537516
// Deploy new User contract
@@ -681,24 +660,6 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
681660
return strats;
682661
}
683662

684-
function _randomStrategies() internal returns (IStrategy[][] memory strategies) {
685-
uint numOpSets = _randUint({min: 1, max: 5});
686-
687-
strategies = new IStrategy[][](numOpSets);
688-
689-
for (uint i; i < numOpSets; ++i) {
690-
IStrategy[] memory randomStrategies = _shuffle(allStrats);
691-
uint numStrategies = _randUint({min: 1, max: maxUniqueAssetsHeld});
692-
693-
// Modify the length of the array in memory (thus ignoring remaining elements).
694-
assembly {
695-
mstore(randomStrategies, numStrategies)
696-
}
697-
698-
strategies[i] = randomStrategies;
699-
}
700-
}
701-
702663
/**
703664
* @dev Converts a bitmap into an array of bytes
704665
* @dev Each byte in the input is processed as indicating a single bit to flip in the bitmap

0 commit comments

Comments
 (0)