Skip to content

Commit

Permalink
remove bad code
Browse files Browse the repository at this point in the history
  • Loading branch information
bxmmm1 committed Sep 10, 2024
1 parent 8d46b01 commit f53a07a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 63 deletions.
2 changes: 1 addition & 1 deletion mainnet-contracts/script/DeployFWRHolesky.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract DeployFWRHolesky is DeployerHelper {
IStETH(_getStETH()),
IWETH(_getWETH()),
ILidoWithdrawalQueue(_getLidoWithdrawalQueue()),
IStrategy(_getEigenLayerNativeETHStrategy()),
IStrategy(_getStETHStrategy()),
IEigenLayer(_getEigenLayerStrategyManager()),
IPufferOracle(_getPufferOracle()),
IDelegationManager(_getEigenDelegationManager())
Expand Down
2 changes: 0 additions & 2 deletions mainnet-contracts/script/DeployPufferVaultV3.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { IStrategy } from "src/interface/EigenLayer/IStrategy.sol";
import { IEigenLayer } from "src/interface/EigenLayer/IEigenLayer.sol";
import { IPufferOracle } from "src/interface/IPufferOracle.sol";
import { IDelegationManager } from "src/interface/EigenLayer/IDelegationManager.sol";
import { UUPSUpgradeable } from "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
import { AccessManager } from "@openzeppelin/contracts/access/manager/AccessManager.sol";

/**
* @title DeployPufferVaultV3
Expand Down
60 changes: 0 additions & 60 deletions mainnet-contracts/script/DeployerHelper.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -275,66 +275,6 @@ abstract contract DeployerHelper is Script {
revert("lido withdrawal queue not available for this chain");
}

function _getStETH() internal view returns (address) {
if (block.chainid == mainnet) {
return 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;
} else if (block.chainid == holesky) {
return 0x3F1c547b21f65e10480dE3ad8E19fAAC46C95034;
}

revert("stETH not available for this chain");
}

function _getEigenLayerNativeETHStrategy() internal view returns (address) {
if (block.chainid == mainnet) {
return 0x93c4b944D05dfe6df7645A86cd2206016c51564D;
} else if (block.chainid == holesky) {
return 0x7D704507b76571a51d9caE8AdDAbBFd0ba0e63d3;
}

revert("beacon strategy not available for this chain");
}

function _getEigenLayerStrategyManager() internal view returns (address) {
if (block.chainid == mainnet) {
return 0x858646372CC42E1A627fcE94aa7A7033e7CF075A;
} else if (block.chainid == holesky) {
return 0xdfB5f6CE42aAA7830E94ECFCcAd411beF4d4D5b6;
}

revert("strategy manager not available for this chain");
}

function _getPufferOracle() internal view returns (address) {
if (block.chainid == mainnet) {
return 0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f;
} else if (block.chainid == holesky) {
return 0x8e043ed3F06720615685D4978770Cd5C8fe90fe3;
}

revert("puffer oracle not available for this chain");
}

function _getEigenDelegationManager() internal view returns (address) {
if (block.chainid == mainnet) {
return 0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A;
} else if (block.chainid == holesky) {
return 0xA44151489861Fe9e3055d95adC98FbD462B948e7;
}

revert("eigen delegation manager not available for this chain");
}

function _getLidoWithdrawalQueue() internal view returns (address) {
if (block.chainid == mainnet) {
return 0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1;
} else if (block.chainid == holesky) {
return 0xc7cc160b58F8Bb0baC94b80847E2CF2800565C50;
}

revert("lido withdrawal queue not available for this chain");
}

function _getAccessManager() internal view returns (address) {
if (block.chainid == base) {
// https://basescan.org/address/0x6f62c8647b7cD3830F21BF0741BAD6f4b838Cb37
Expand Down

0 comments on commit f53a07a

Please sign in to comment.