SharedStake / SharedStake-ui

SharedStake User Interface using vue.js
https://www.sharedstake.org/
GNU General Public License v3.0
16 stars 16 forks source link

Implement stake & deposit #54

Open sharedStake-dev opened 3 years ago

sharedStake-dev commented 3 years ago

Currently on the stake page https://www.sharedstake.org/stake
A user may stake their ETH generating a returned vETH2 token.
Most users choose to deposit the vETH2 token on our earn page for the reward geyser returns.

Ideally we want to make this more seamless by having either a checkbox or different button that stakes & deposits to earn. The flow will require the same 2 extra steps as are on the earn page, to approve then deposit the token into the right geyser.
Using this button/checkbox should create 3 txs sequentially, waiting for each to succeed before popping open the next one to avoid errors.
i.e. ETH -> deposit on sharedDeposit -> approve vETH2 on geyser -> deposit vETH2 to geysers