mirror of
https://github.com/luxfi/uma.git
synced 2026-10-30 15:14:44 +00:00
Signed-off-by: JasperSlimmens <[email protected]> Co-authored-by: Matt Rice <[email protected]>
17 lines
585 B
Solidity
17 lines
585 B
Solidity
// SPDX-License-Identifier: AGPL-3.0-only
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
|
|
/**
|
|
* @title Interface for Harvest-style vaults.
|
|
* @dev This only contains the methods/events that we use in our contracts or offchain infrastructure.
|
|
*/
|
|
abstract contract HarvestVaultInterface {
|
|
// Return the underlying token.
|
|
function underlying() external view virtual returns (IERC20);
|
|
|
|
// Gets the number of return tokens that a "share" of this vault is worth.
|
|
function getPricePerFullShare() external view virtual returns (uint256);
|
|
}
|