mirror of
https://github.com/luxfi/uma.git
synced 2026-10-30 15:14:44 +00:00
17 lines
571 B
Solidity
17 lines
571 B
Solidity
// SPDX-License-Identifier: AGPL-3.0-only
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
|
|
/**
|
|
* @title Interface for Yearn-style vaults.
|
|
* @dev This only contains the methods/events that we use in our contracts or offchain infrastructure.
|
|
*/
|
|
abstract contract VaultInterface {
|
|
// Return the underlying token.
|
|
function token() 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);
|
|
}
|