SharedStake / Contracts

A repository to track and open source SharedStake's on-chain contracts and their addresses.
10 stars 4 forks source link

[Minter] Add solo staking #12

Open sharedStake-dev opened 3 years ago

sharedStake-dev commented 3 years ago

Users should be able to use our contract for solo staking. To start we would require users to have the following:

For this we will need to upgrade the send2eth2 function in the minter to use AccessControl over having a single owner.

For a simplified implementation, the SGT bonded user should be able to call the function directly, resulting in a deposit function call which returns 32 vETH2 to them in exchange for 32.1 ETH.

The solo staker can then use their vETH2 to earn profits at a higher APY in our ecosystem while waiting for ETH2 rewards to be unlocked via a chain merge or other mechanism the EF comes up with.

This way the solo staker holds onto both their private keys for withdrawals and the validator.

The solo staker will be responsible for running their own validator to start with and entering the correct public keys for the call registering the validator.