Comment on page
StakeWise Pool smart contract details.
By calling the addDeposit function in the
Poolcontract, the user will add ether to the Pool. The contract will mint
stETHtokens 1 to 1 with the deposited amount. For example, if you deposited 10 ether, you will get 10
stETHthat represents the amount of ETH you staked in the StakeWise Pool.
When there is 32 ETH or more collected in the
Poolcontract, a user with an
operatorrole can register a new validator. It is possible to create multiple validators in one batch if there is enough ether collected. In order to register a new validator, the
operatormust generate the deposit data for every validator and submit it by calling the registerValidator function. Note that the StakeWise Pool will use its own withdrawal credentials, which remain the same for every Pool's validator. The withdrawal credentials are stored in the Settings contract and the private key is distributed among trusted entities and stored in the cold storage. This method of custody will be replaced with a different mechanism as soon as withdrawal to ETH1 addresses becomes supported.
Operator generates deposit data for every validator and initiates validator registration
operatorruns in the cluster and listens to the
Pool's events. As soon as there is enough ETH collected, the
operatorwill spin up the validator nodes and register their deposit data through the
Poolcontract. The Validators contract keeps track of all the validators registered by the
Soloscontracts. It rejects registering the validators with already used public keys as there should be only one validator registration call per public key. The ETH2 Validator Registration Contract is an official contract for registering new validators.