IStETH

Git Source

Inherits: IERC20, IERC20Permit

Functions

getTotalPooledEther

Gets the total amount of Ether controlled by the system

function getTotalPooledEther() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256total 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

NameTypeDescription
stEthAmountuint256The new amount of stETH per wstETH token
wstETHIWstETHThe wstETH contract

Returns

NameTypeDescription
<none>uint256The new amount of stETH per token

mint

Mint stETH (only for owner)

function mint(address account, uint256 amount) external;

Parameters

NameTypeDescription
accountaddressThe account to mint stETH to
amountuint256The amount of stETH to mint

submit

Deposit ETH to mint stETH

function submit(address account) external payable;

Parameters

NameTypeDescription
accountaddressThe account to mint stETH to

sweep

Sweep ETH from the contract (only for owner)

function sweep(address payable to) external;

Parameters

NameTypeDescription
toaddress payableThe account to sweep ETH to