• 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/lseth/LsETHHyperdriveCoreDeployer.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 { LsETHHyperdrive } from "../../instances/lseth/LsETHHyperdrive.sol";
7

8
/// @author DELV
9
/// @title LsETHHyperdriveCoreDeployer
10
/// @notice The core deployer for the LsETHHyperdrive implementation.
11
/// @custom:disclaimer The language used in this code is for coding convenience
12
///                    only, and is not intended to, and does not, have any
13
///                    particular legal or regulatory significance.
14
contract LsETHHyperdriveCoreDeployer is IHyperdriveCoreDeployer {
15
    /// @notice Deploys a Hyperdrive instance with the given parameters.
16
    /// @param _config The configuration of the Hyperdrive pool.
17
    /// @param target0 The target0 address.
18
    /// @param target1 The target1 address.
19
    /// @param target2 The target2 address.
20
    /// @param target3 The target3 address.
21
    /// @param target4 The target4 address.
22
    /// @param _salt The create2 salt used in the deployment.
23
    /// @return The address of the newly deployed LsETHHyperdrive instance.
24
    function deploy(
25
        IHyperdrive.PoolConfig memory _config,
26
        bytes memory, // unused extra data
27
        address target0,
28
        address target1,
29
        address target2,
30
        address target3,
31
        address target4,
32
        bytes32 _salt
33
    ) external returns (address) {
UNCOV
34
        address hyperdrive = address(
×
35
            // NOTE: We hash the sender with the salt to prevent the
36
            // front-running of deployments.
37
            new LsETHHyperdrive{
38
                salt: keccak256(abi.encode(msg.sender, _salt))
39
            }(_config, target0, target1, target2, target3, target4)
40
        );
UNCOV
41
        return hyperdrive;
×
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