Skip to main content
Archived documentation for @eco-incorp/sauce@0.99.16. Install this release with npm install --save-exact @eco-incorp/sauce@0.99.16. Links to guides outside this tab open current documentation.
Liquid staking protocol for Ethereum. Stake ETH and receive stETH, a rebasing liquid staking token. wstETH is the non-rebasing wrapped version for DeFi composability.

What it offers

  • submit: Stake ETH and receive stETH (rebasing)
  • wrap: Wrap stETH into wstETH (non-rebasing, DeFi-compatible)
  • unwrap: Unwrap wstETH back to stETH

Notes

  • stETH rebases daily (balance increases). wstETH does not rebase (exchange rate increases instead)
  • Always use wstETH for DeFi integrations (Aave, Uniswap, etc.) since rebasing tokens cause issues
  • submit() requires ETH sent as msg.value. The referral parameter can be zero address
  • Approve stETH to wstETH contract before calling wrap()
  • On Arbitrum, wstETH is the bridged token: an ERC-20 (balanceOf, transfer, approve) with no wrap, unwrap, getStETHByWstETH or getWstETHByStETH, so each of those reverts there. Wrap, unwrap and read the stETH rate on Ethereum

Its names in a program

On Ethereum, Lido is a namespace: its contracts need no import.

Deployments

ABI

LidoABI

import LidoABI from "./protocols/lido/LidoABI.json"; Speaks for: stETH.
  • submit(address _referral) payable returns (uint256)
  • balanceOf(address account) view returns (uint256)
  • approve(address spender, uint256 amount) returns (bool)

WstETHABI

import WstETHABI from "./protocols/lido/WstETHABI.json"; Speaks for: wstETH.
  • wrap(uint256 _stETHAmount) returns (uint256)
  • unwrap(uint256 _wstETHAmount) returns (uint256)
  • getStETHByWstETH(uint256 _wstETHAmount) view returns (uint256)
  • getWstETHByStETH(uint256 _stETHAmount) view returns (uint256)
Not on Arbitrum One’s wstETH (0x5979D7b546E38E414F7E9822514be443A4800529), whose code does not dispatch them: wrap, unwrap, getStETHByWstETH, getWstETHByStETH. Do not call them there: the call does not run the function, and whether it reverts is up to that code.

Next steps