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

delvtech / hyperdrive / 9928368899

14 Jul 2024 01:43PM UTC coverage: 92.237%. First build
9928368899

Pull #1081

github

jalextowle
Added a getter for Aave's vault
Pull Request #1081: Added an Aave integration

120 of 143 new or added lines in 33 files covered. (83.92%)

2115 of 2293 relevant lines covered (92.24%)

376490.5 hits per line

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

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

4
import { EzETHTarget4 } from "../../instances/ezeth/EzETHTarget4.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 EzETHTarget4Deployer
11
/// @notice The target4 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 EzETHTarget4Deployer 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) {
NEW
22
        restakeManager = _restakeManager;
×
23
    }
24

25
    /// @notice Deploys a target4 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 EzETHTarget4 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(
22✔
36
                // NOTE: We hash the sender with the salt to prevent the
37
                // front-running of deployments.
38
                new EzETHTarget4{
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