IWstETH
Inherits: IERC20
Title: IWstETH
Minimal interface for Lido's wstETH.
Functions
getStETHByWstETH
Returns the amount of stETH for a given amount of wstETH.
function getStETHByWstETH(uint256 wstETHAmount) external view returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
wstETHAmount | uint256 | The amount of wstETH. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | The equivalent amount of stETH. |
getWstETHByStETH
Returns the amount of wstETH for a given amount of stETH.
function getWstETHByStETH(uint256 stETHAmount) external view returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
stETHAmount | uint256 | The amount of stETH. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | The equivalent amount of wstETH. |
wrap
Wraps stETH to wstETH.
function wrap(uint256 stETHAmount) external returns (uint256 wstETHAmount);
unwrap
Unwraps wstETH to stETH.
function unwrap(uint256 wstETHAmount) external returns (uint256 stETHAmount);