-
Notifications
You must be signed in to change notification settings - Fork 4
/
ERC4626Target0.sol
33 lines (30 loc) · 1.51 KB
/
ERC4626Target0.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.22;
import { HyperdriveTarget0 } from "../../external/HyperdriveTarget0.sol";
import { IHyperdrive } from "../../interfaces/IHyperdrive.sol";
import { IHyperdriveAdminController } from "../../interfaces/IHyperdriveAdminController.sol";
import { ERC4626_HYPERDRIVE_KIND } from "../../libraries/Constants.sol";
import { ERC4626Base } from "./ERC4626Base.sol";
/// @author DELV
/// @title ERC4626Target0
/// @notice ERC4626Hyperdrive's target0 logic contract. This contract contains
/// all of the getters for Hyperdrive as well as some stateful
/// functions.
/// @custom:disclaimer The language used in this code is for coding convenience
/// only, and is not intended to, and does not, have any
/// particular legal or regulatory significance.
contract ERC4626Target0 is HyperdriveTarget0, ERC4626Base {
/// @notice Initializes the target0 contract.
/// @param _config The configuration of the Hyperdrive pool.
/// @param __adminController The admin controller that will specify the
/// admin parameters for this instance.
constructor(
IHyperdrive.PoolConfig memory _config,
IHyperdriveAdminController __adminController
) HyperdriveTarget0(_config, __adminController) {}
/// @notice Returns the instance's kind.
/// @return The instance's kind.
function kind() external pure override returns (string memory) {
_revert(abi.encode(ERC4626_HYPERDRIVE_KIND));
}
}