mirror of
https://github.com/Instadapp/fluid-contracts-public.git
synced 2024-07-29 21:57:37 +00:00
22 lines
728 B
Solidity
22 lines
728 B
Solidity
//SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.21;
|
|
|
|
import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol";
|
|
|
|
interface IStETH is IERC20 {
|
|
/**
|
|
* @return the entire amount of Ether controlled by the protocol.
|
|
*
|
|
* @dev The sum of all ETH balances in the protocol, equals to the total supply of stETH.
|
|
*/
|
|
function getTotalPooledEther() external view returns (uint256);
|
|
|
|
/**
|
|
* @return the total amount of shares in existence.
|
|
*
|
|
* @dev The sum of all accounts' shares can be an arbitrary number, therefore
|
|
* it is necessary to store it in order to calculate each account's relative share.
|
|
*/
|
|
function getTotalShares() external view returns (uint256);
|
|
}
|