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

delvtech / hyperdrive / 10637797741

30 Aug 2024 06:57PM UTC coverage: 89.37%. First build
10637797741

Pull #1152

github

web-flow
Merge 1e72dcbdc into 9857eb6ef
Pull Request #1152: RsETH on Linea

43 of 64 new or added lines in 10 files covered. (67.19%)

2354 of 2634 relevant lines covered (89.37%)

347620.55 hits per line

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

50.0
/contracts/src/deployers/rseth-linea/RsETHLineaTarget4Deployer.sol
1
// SPDX-License-Identifier: Apache-2.0
2
pragma solidity 0.8.22;
3

4
import { RsETHLineaTarget4 } from "../../instances/rseth-linea/RsETHLineaTarget4.sol";
5
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
6
import { IHyperdriveAdminController } from "../../interfaces/IHyperdriveAdminController.sol";
7
import { IHyperdriveTargetDeployer } from "../../interfaces/IHyperdriveTargetDeployer.sol";
8
import { IRSETHPoolV2 } from "../../interfaces/IRSETHPoolV2.sol";
9

10
/// @author DELV
11
/// @title RsETHLineaTarget4Deployer
12
/// @notice The target4 deployer for the RsETHLineaHyperdrive 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 RsETHLineaTarget4Deployer is IHyperdriveTargetDeployer {
17
    /// @notice The Kelp DAO deposit contract on Linea. The rsETH/ETH price is
18
    ///         used as the vault share price.
19
    IRSETHPoolV2 public immutable rsETHPool;
20

21
    /// @notice Instantiates the rsETH Linea Hyperdrive base contract.
22
    /// @param _rsETHPool The Kelp DAO deposit contract that provides the vault
23
    ///        share price.
24
    constructor(IRSETHPoolV2 _rsETHPool) {
NEW
25
        rsETHPool = _rsETHPool;
×
26
    }
27

28
    /// @notice Deploys a target4 instance with the given parameters.
29
    /// @param _config The configuration of the Hyperdrive pool.
30
    /// @param _adminController The admin controller that will specify the
31
    ///        admin parameters for this instance.
32
    /// @param _salt The create2 salt used in the deployment.
33
    /// @return The address of the newly deployed RsETHLineaTarget4 instance.
34
    function deployTarget(
35
        IHyperdrive.PoolConfig memory _config,
36
        IHyperdriveAdminController _adminController,
37
        bytes memory, // unused  _extraData
38
        bytes32 _salt
39
    ) external returns (address) {
40
        return
32✔
41
            address(
42
                // NOTE: We hash the sender with the salt to prevent the
43
                // front-running of deployments.
44
                new RsETHLineaTarget4{
45
                    salt: keccak256(abi.encode(msg.sender, _salt))
46
                }(_config, _adminController, rsETHPool)
47
            );
48
    }
49
}
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