Smart Contracts
Overview of StakeWise smart contracts.
This section of the documentation is pending an update.
StakeWise smart contracts architecture
The StakeWise smart contracts are open-sourced and the source code can be found on Github. Below you will find an overview of the contracts, with more details on separate contracts' pages.
The Pool contract is an entry point for deposits into the StakeWise Pool. This contract stores ETH collected from the users before it is sent to the ETH2 Validator Registration Contract.
Read more about the Pool contract:
The Solos contract is an entry point for deposits into StakeWise Solo. This contract stores ETH collected from the users before it is sent to the ETH2 Validator Registration Contract.
The contract is not upgradable to prevent StakeWise from unilaterally changing the withdrawal credentials through the upgrade mechanism.
Read more about the Solos contract:
The StakedEthToken is an ERC-20 contract. It reflects the deposits made by the stakers in the form of
stETH
tokens. The tokens are mapped 1 to 1 to ETH. The total supply of
stETH
is the sum of all the StakeWise Pool's validators' effective balances, plus an additional amount of up to (32 ETH - 1 Wei) ETH awaiting inclusion into a new validator. Read more about the StakedEthToken contract:
The RewardEthToken is an ERC-20 contract. It reflects the rewards accumulated by the stakers in the form of
rwETH
tokens. The tokens are mapped 1 to 1 to ETH. The total supply of
rwETH
is the amount that is above the effective balance of all the validators registered for the StakeWise Pool. The StakedTokens contract can be used to lock the supported ERC-20 tokens to allow stakers to continue accumulating
rwETH
when they transfer stETH
to an external ERC-20 contract. Read more about StakedTokens contract:
Last modified 2yr ago