• 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/instances/ezeth/EzETHTarget0.sol
1
// SPDX-License-Identifier: Apache-2.0
2
pragma solidity 0.8.20;
3

4
import { ERC20 } from "openzeppelin/token/ERC20/ERC20.sol";
5
import { SafeERC20 } from "openzeppelin/token/ERC20/utils/SafeERC20.sol";
6
import { HyperdriveTarget0 } from "../../external/HyperdriveTarget0.sol";
7
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
8
import { IRestakeManager, IRenzoOracle } from "../../interfaces/IRenzo.sol";
9
import { EzETHBase } from "./EzETHBase.sol";
10

11
/// @author DELV
12
/// @title EzETHTarget0
13
/// @notice EzETHHyperdrive's target0 logic contract. This contract contains
14
///         all of the getters for Hyperdrive as well as some stateful
15
///         functions.
16
/// @custom:disclaimer The language used in this code is for coding convenience
17
///                    only, and is not intended to, and does not, have any
18
///                    particular legal or regulatory significance.
19
contract EzETHTarget0 is HyperdriveTarget0, EzETHBase {
20
    using SafeERC20 for ERC20;
21

22
    /// @dev The instance's name.
23
    string internal constant NAME = "EzETHHyperdrive";
24

25
    /// @notice Initializes the target0 contract.
26
    /// @param _config The configuration of the Hyperdrive pool.
27
    /// @param _restakeManager The Renzo contract.
28
    constructor(
29
        IHyperdrive.PoolConfig memory _config,
30
        IRestakeManager _restakeManager
31
    ) HyperdriveTarget0(_config) EzETHBase(_restakeManager) {}
32

33
    /// Extras ///
34

35
    /// @notice Returns the instance's name.
36
    /// @return The instance's name.
37
    function name() external pure override returns (string memory) {
UNCOV
38
        _revert(abi.encode(NAME));
×
39
    }
40

41
    /// @notice Returns the Renzo contract.
42
    /// @return The Renzo contract.
43
    function renzo() external view returns (IRestakeManager) {
UNCOV
44
        _revert(abi.encode(_restakeManager));
×
45
    }
46

47
    /// @notice Gets the RenzoOracle contract.
48
    /// @return The RenzoOracle contract.
49
    function renzoOracle() external view returns (IRenzoOracle) {
UNCOV
50
        _revert(abi.encode(_renzoOracle));
×
51
    }
52

53
    /// @notice Returns the MultiToken's decimals.
54
    /// @return The MultiToken's decimals.
55
    function decimals() external pure override returns (uint8) {
UNCOV
56
        _revert(abi.encode(uint8(18)));
×
57
    }
58
}
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