WSTETH

Wrap and Unwrap STETH.

WSTETH-v1.0 connector triggers methods like deposit, withdraw. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

Deposit

Wrap STETH into WSTETH

spells.add({
  connector: "WSTETH-A",
  method: "deposit",
  args: [stethAmt, getId, setId]
});
Parameter Type Description
stethAmt uint256 The amount of STETH to deposit. (For max: `uint256(-1)`)
getId uint256 ID to retrieve STETH amount.
setId uint256 ID stores the amount of WSTETH deposited.

Withdraw

Unwrap STETH from WSTETH

spells.add({
  connector: "WSTETH-A",
  method: "withdraw",
  args: [wstethAmt, getId, setId]
});
Parameter Type Description
wstethAmt uint256 The amount of WSTETH to withdraw. (For max: `uint256(-1)`)
getId uint256 ID to retrieve WSTETH amount.
setId uint256 ID stores the amount of STETH.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.