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

delvtech / hyperdrive / 9179140169

21 May 2024 05:53PM UTC coverage: 88.259% (-2.8%) from 91.088%
9179140169

push

github

cashd
wip

16 of 32 new or added lines in 4 files covered. (50.0%)

77 existing lines in 15 files now uncovered.

1774 of 2010 relevant lines covered (88.26%)

371757.72 hits per line

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

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

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

9
/// @author DELV
10
/// @title EzETHHyperdriveCoreDeployer
11
/// @notice The core 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 EzETHHyperdriveCoreDeployer is IHyperdriveCoreDeployer {
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 Hyperdrive instance with the given parameters.
26
    /// @param _config The configuration of the Hyperdrive pool.
27
    /// @param target0 The target0 address.
28
    /// @param target1 The target1 address.
29
    /// @param target2 The target2 address.
30
    /// @param target3 The target3 address.
31
    /// @param target4 The target4 address.
32
    /// @param _salt The create2 salt used in the deployment.
33
    /// @return The address of the newly deployed EzETHHyperdrive instance.
34
    function deploy(
35
        IHyperdrive.PoolConfig memory _config,
36
        bytes memory, // unused extra data
37
        address target0,
38
        address target1,
39
        address target2,
40
        address target3,
41
        address target4,
42
        bytes32 _salt
43
    ) external returns (address) {
UNCOV
44
        address hyperdrive = address(
×
45
            // NOTE: We hash the sender with the salt to prevent the
46
            // front-running of deployments.
47
            new EzETHHyperdrive{
48
                salt: keccak256(abi.encode(msg.sender, _salt))
49
            }(
50
                _config,
51
                target0,
52
                target1,
53
                target2,
54
                target3,
55
                target4,
56
                restakeManager
57
            )
58
        );
UNCOV
59
        return hyperdrive;
×
60
    }
61
}
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