IStETH
Inherits: IERC20, IERC20Permit
Functions
getTotalPooledEther
Gets the total amount of Ether controlled by the system
function getTotalPooledEther() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | total balance in wei |
setStEthPerToken
Set the amount of stETH per wstETH token (only for owner)
function setStEthPerToken(uint256 stEthAmount, IWstETH wstETH) external returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
stEthAmount | uint256 | The new amount of stETH per wstETH token |
wstETH | IWstETH | The wstETH contract |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The new amount of stETH per token |
mint
Mint stETH (only for owner)
function mint(address account, uint256 amount) external;
Parameters
Name | Type | Description |
---|---|---|
account | address | The account to mint stETH to |
amount | uint256 | The amount of stETH to mint |
submit
Deposit ETH to mint stETH
function submit(address account) external payable;
Parameters
Name | Type | Description |
---|---|---|
account | address | The account to mint stETH to |
sweep
Sweep ETH from the contract (only for owner)
function sweep(address payable to) external;
Parameters
Name | Type | Description |
---|---|---|
to | address payable | The account to sweep ETH to |