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

4
import { HyperdriveTarget0 } from "../../external/HyperdriveTarget0.sol";
5
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
6
import { StETHBase } from "./StETHBase.sol";
7

8
/// @author DELV
9
/// @title StETHTarget0
10
/// @notice StETHHyperdrive's target0 logic contract. This contract contains
11
///         all of the getters for Hyperdrive as well as some stateful
12
///         functions.
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 StETHTarget0 is HyperdriveTarget0, StETHBase {
17
    /// @dev The instance's name.
18
    string internal constant NAME = "StETHHyperdrive";
19

20
    /// @notice Initializes the target0 contract.
21
    /// @param _config The configuration of the Hyperdrive pool.
22
    constructor(
23
        IHyperdrive.PoolConfig memory _config
24
    ) HyperdriveTarget0(_config) {}
25

26
    /// Getters ///
27

28
    /// @notice Returns the instance's name.
29
    /// @return The instance's name.
30
    function name() external pure override returns (string memory) {
UNCOV
31
        _revert(abi.encode(NAME));
×
32
    }
33

34
    /// @notice Returns the MultiToken's decimals.
35
    /// @return The MultiToken's decimals.
36
    function decimals() external pure override returns (uint8) {
UNCOV
37
        _revert(abi.encode(uint8(18)));
×
38
    }
39
}
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