diff --git a/src/StEthBundler.sol b/src/StEthBundler.sol index 1459fb83..0a31c9bf 100644 --- a/src/StEthBundler.sol +++ b/src/StEthBundler.sol @@ -28,8 +28,8 @@ abstract contract StEthBundler is BaseBundler { /* CONSTRUCTOR */ /// @dev Warning: assumes the given addresses are non-zero (they are not expected to be deployment arguments). - constructor(address stEth, address wstEth) { - ST_ETH = stEth; + constructor(address wstEth) { + ST_ETH = IWstEth(wstEth).stETH(); WST_ETH = wstEth; ERC20(ST_ETH).safeApprove(WST_ETH, type(uint256).max); diff --git a/src/ethereum/EthereumStEthBundler.sol b/src/ethereum/EthereumStEthBundler.sol index caf5bfcc..d9a5540f 100644 --- a/src/ethereum/EthereumStEthBundler.sol +++ b/src/ethereum/EthereumStEthBundler.sol @@ -12,5 +12,5 @@ import {StEthBundler} from "../StEthBundler.sol"; abstract contract EthereumStEthBundler is StEthBundler { /* CONSTRUCTOR */ - constructor() StEthBundler(MainnetLib.ST_ETH, MainnetLib.WST_ETH) {} + constructor() StEthBundler(MainnetLib.WST_ETH) {} } diff --git a/src/ethereum/libraries/MainnetLib.sol b/src/ethereum/libraries/MainnetLib.sol index 6b14d904..4307da02 100644 --- a/src/ethereum/libraries/MainnetLib.sol +++ b/src/ethereum/libraries/MainnetLib.sol @@ -5,9 +5,6 @@ library MainnetLib { /// @dev The address of the WETH contract on Ethereum. address internal constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; - /// @dev The address of the stETH contract on Ethereum. - address internal constant ST_ETH = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84; - /// @dev The address of the wstETH contract on Ethereum. address internal constant WST_ETH = 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0; diff --git a/src/goerli/GoerliBundler.sol b/src/goerli/GoerliBundler.sol index 6a2897f1..1e4659d1 100644 --- a/src/goerli/GoerliBundler.sol +++ b/src/goerli/GoerliBundler.sol @@ -26,9 +26,5 @@ contract GoerliBundler is { /* CONSTRUCTOR */ - constructor(address morpho) - WNativeBundler(GoerliLib.WETH) - StEthBundler(GoerliLib.ST_ETH, GoerliLib.WST_ETH) - MorphoBundler(morpho) - {} + constructor(address morpho) WNativeBundler(GoerliLib.WETH) StEthBundler(GoerliLib.WST_ETH) MorphoBundler(morpho) {} } diff --git a/src/goerli/libraries/GoerliLib.sol b/src/goerli/libraries/GoerliLib.sol index 27b946a5..ba3c7a80 100644 --- a/src/goerli/libraries/GoerliLib.sol +++ b/src/goerli/libraries/GoerliLib.sol @@ -5,9 +5,6 @@ library GoerliLib { /// @dev The address of the WETH contract on Ethereum. address internal constant WETH = 0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6; - /// @dev The address of the stETH contract on Ethereum. - address internal constant ST_ETH = 0x1643E812aE58766192Cf7D2Cf9567dF2C37e9B7F; - /// @dev The address of the wstETH contract on Ethereum. address internal constant WST_ETH = 0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f; }