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

delvtech / hyperdrive / 9928368899

14 Jul 2024 01:43PM UTC coverage: 92.237%. First build
9928368899

Pull #1081

github

jalextowle
Added a getter for Aave's vault
Pull Request #1081: Added an Aave integration

120 of 143 new or added lines in 33 files covered. (83.92%)

2115 of 2293 relevant lines covered (92.24%)

376490.5 hits per line

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

50.0
/contracts/src/instances/aave/AaveTarget0.sol
1
// SPDX-License-Identifier: Apache-2.0
2
pragma solidity 0.8.20;
3

4
import { IPool } from "aave/interfaces/IPool.sol";
5
import { HyperdriveTarget0 } from "../../external/HyperdriveTarget0.sol";
6
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
7
import { AAVE_HYPERDRIVE_KIND } from "../../libraries/Constants.sol";
8
import { AaveBase } from "./AaveBase.sol";
9

10
/// @author DELV
11
/// @title AaveTarget0
12
/// @notice AaveHyperdrive's target0 logic contract. This contract contains
13
///         all of the getters for Hyperdrive as well as some stateful
14
///         functions.
15
/// @custom:disclaimer The language used in this code is for coding convenience
16
///                    only, and is not intended to, and does not, have any
17
///                    particular legal or regulatory significance.
18
contract AaveTarget0 is HyperdriveTarget0, AaveBase {
19
    /// @notice Initializes the target0 contract.
20
    /// @param _config The configuration of the Hyperdrive pool.
21
    constructor(
22
        IHyperdrive.PoolConfig memory _config
23
    ) HyperdriveTarget0(_config) {}
24

25
    /// @notice Returns the instance's kind.
26
    /// @return The instance's kind.
27
    function kind() external pure override returns (string memory) {
28
        _revert(abi.encode(AAVE_HYPERDRIVE_KIND));
1✔
29
    }
30

31
    /// @notice Gets the Aave pool used as this pool's yield source.
32
    /// @return The Aave pool.
33
    function vault() external view returns (IPool) {
NEW
34
        _revert(abi.encode(_vault));
×
35
    }
36
}
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