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

delvtech / hyperdrive / 10078266229

24 Jul 2024 02:09PM UTC coverage: 91.041% (-0.6%) from 91.602%
10078266229

Pull #1110

github

web-flow
Merge b0abc7ad6 into 2514eecb1
Pull Request #1110: etherfi yield source

49 of 68 new or added lines in 10 files covered. (72.06%)

1 existing line in 1 file now uncovered.

2195 of 2411 relevant lines covered (91.04%)

360130.92 hits per line

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

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

4
import { EETHTarget3 } from "../../instances/eeth/EETHTarget3.sol";
5
import { IeETH } from "etherfi/src/interfaces/IeETH.sol";
6
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
7
import { IHyperdriveTargetDeployer } from "../../interfaces/IHyperdriveTargetDeployer.sol";
8
import { ILiquidityPool } from "etherfi/src/interfaces/ILiquidityPool.sol";
9

10
/// @author DELV
11
/// @title EETHTarget3Deployer
12
/// @notice The target3 deployer for the EETHHyperdrive implementation.
13
/// @custom:disclaimer The language used in this code is for coding convenience
14
///                    only, and is not intended to, and does not, have any
15
///                    particular legal or regulatory significance.
16
contract EETHTarget3Deployer is IHyperdriveTargetDeployer {
17
    /// @notice The Etherfi contract.
18
    ILiquidityPool public immutable liquidityPool;
19

20
    /// @notice Instantiates the core deployer.
21
    /// @param _liquidityPool The Etherfi contract.
22
    constructor(ILiquidityPool _liquidityPool) {
NEW
23
        liquidityPool = _liquidityPool;
×
24
    }
25

26
    /// @notice Deploys a target3 instance with the given parameters.
27
    /// @param _config The configuration of the Hyperdrive pool.
28
    /// @param _salt The create2 salt used in the deployment.
29
    /// @return The address of the newly deployed EETHTarget3 instance.
30
    function deployTarget(
31
        IHyperdrive.PoolConfig memory _config,
32
        bytes memory, // unused  _extraData
33
        bytes32 _salt
34
    ) external returns (address) {
35
        return
24✔
36
            address(
37
                // NOTE: We hash the sender with the salt to prevent the
38
                // front-running of deployments.
39
                new EETHTarget3{
40
                    salt: keccak256(abi.encode(msg.sender, _salt))
41
                }(_config, liquidityPool)
42
            );
43
    }
44
}
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