Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
danoctavian committed Oct 1, 2024
1 parent 9948232 commit 3c6f64e
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions test/integration/Upgrades.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,62 +120,4 @@ contract UpgradesTest is IntegrationBaseTest {
vm.prank(address(this));
upgradedYnETH.deposit(nETHDepositAmount, address(this));
}

// function setupInitializeYnLSD(address assetAddress) internal returns (ynLSD.Init memory, ynLSD ynlsd) {
// TransparentUpgradeableProxy ynlsdProxy;
// ynlsd = ynLSD(payable(ynlsdProxy));

// // Re-deploying ynLSD and creating its proxy again
// ynlsd = new ynLSD();
// ynlsdProxy = new TransparentUpgradeableProxy(address(ynlsd), actors.admin.PROXY_ADMIN_OWNER, "");
// ynlsd = ynLSD(payable(ynlsdProxy));

// address[] memory pauseWhitelist = new address[](1);
// pauseWhitelist[0] = actors.eoa.DEFAULT_SIGNER;

// IERC20[] memory assets = new IERC20[](2);
// address[] memory assetsAddresses = new address[](2);
// address[] memory priceFeeds = new address[](2);
// uint256[] memory maxAges = new uint256[](2);
// IStrategy[] memory strategies = new IStrategy[](2);

// // rETH
// assets[0] = IERC20(chainAddresses.lsd.RETH_ADDRESS);
// assetsAddresses[0] = chainAddresses.lsd.RETH_ADDRESS;
// strategies[0] = IStrategy(chainAddresses.lsd.RETH_STRATEGY_ADDRESS);
// priceFeeds[0] = chainAddresses.lsd.RETH_FEED_ADDRESS;
// maxAges[0] = uint256(86400);

// // Zero Addresses
// assets[1] = IERC20(assetAddress);
// assetsAddresses[1] = chainAddresses.lsd.STETH_ADDRESS;
// strategies[1] = IStrategy(chainAddresses.lsd.STETH_STRATEGY_ADDRESS);
// priceFeeds[1] = chainAddresses.lsd.STETH_FEED_ADDRESS;
// maxAges[1] = uint256(86400); //one hour
// ynLSD.Init memory init = ynLSD.Init({
// assets: assets,
// strategies: strategies,
// strategyManager: strategyManager,
// delegationManager: delegationManager,
// oracle: yieldNestOracle,
// maxNodeCount: 10,
// admin: actors.admin.ADMIN,
// stakingAdmin: actors.admin.STAKING_ADMIN,
// lsdRestakingManager: actors.ops.LSD_RESTAKING_MANAGER,
// lsdStakingNodeCreatorRole: actors.ops.STAKING_NODE_CREATOR,
// pauseWhitelist: pauseWhitelist,
// pauser: actors.ops.PAUSE_ADMIN,
// unpauser: actors.admin.UNPAUSE_ADMIN,
// depositBootstrapper: actors.eoa.DEPOSIT_BOOTSTRAPPER
// });

// return (init, ynlsd);
// }

// function testYnLSDInitializeRevertsAssetAddressZero() public {
// (ynLSD.Init memory init, ynLSD ynlsd) = setupInitializeYnLSD(address(0));
// bytes memory encodedError = abi.encodeWithSelector(ynLSD.ZeroAddress.selector);
// vm.expectRevert(encodedError);
// ynlsd.initialize(init);
// }
}

0 comments on commit 3c6f64e

Please sign in to comment.