• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

delvtech / hyperdrive / 9978203640

17 Jul 2024 04:00PM UTC coverage: 92.08%. Remained the same
9978203640

push

github

web-flow
EzETH and RETH redeployments (#1098)

* Bump the version

* Added configuration files for the renzo and rocket pool yield sources

* Removed fixmes

* Fixed the issues in the deployment scripts

* Deployed the EzETH and RETH deployer coordinators and pools

* Fixed a bug in `convertToBase` and `convertToShares`

* FIXME: Temporarily updated deployment.json and deploy.sh

* Redeployed the pools

* Added a script to remove old depoyer coordinators

0 of 2 new or added lines in 1 file covered. (0.0%)

2081 of 2260 relevant lines covered (92.08%)

381859.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/contracts/src/deployers/ezeth/EzETHTarget2Deployer.sol
1
// SPDX-License-Identifier: Apache-2.0
2
pragma solidity 0.8.20;
3

4
import { EzETHTarget2 } from "../../instances/ezeth/EzETHTarget2.sol";
5
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
6
import { IHyperdriveTargetDeployer } from "../../interfaces/IHyperdriveTargetDeployer.sol";
7
import { IRestakeManager } from "../../interfaces/IRenzo.sol";
8

9
/// @author DELV
10
/// @title EzETHTarget2Deployer
11
/// @notice The target2 deployer for the EzETHHyperdrive implementation.
12
/// @custom:disclaimer The language used in this code is for coding convenience
13
///                    only, and is not intended to, and does not, have any
14
///                    particular legal or regulatory significance.
15
contract EzETHTarget2Deployer is IHyperdriveTargetDeployer {
16
    /// @notice The Renzo contract.
17
    IRestakeManager public immutable restakeManager;
18

19
    /// @notice Instantiates the core deployer.
20
    /// @param _restakeManager The Renzo contract.
21
    constructor(IRestakeManager _restakeManager) {
22
        restakeManager = _restakeManager;
×
23
    }
24

25
    /// @notice Deploys a target2 instance with the given parameters.
26
    /// @param _config The configuration of the Hyperdrive pool.
27
    /// @param _salt The create2 salt used in the deployment.
28
    /// @return The address of the newly deployed EzETHTarget2 instance.
29
    function deployTarget(
30
        IHyperdrive.PoolConfig memory _config,
31
        bytes memory, // unused extra data
32
        bytes32 _salt
33
    ) external returns (address) {
34
        return
22✔
35
            address(
36
                // NOTE: We hash the sender with the salt to prevent the
37
                // front-running of deployments.
38
                new EzETHTarget2{
39
                    salt: keccak256(abi.encode(msg.sender, _salt))
40
                }(_config, restakeManager)
41
            );
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc