Staking
Stake any amount of ETH
Used to stake any amount of ETH into the pool.
This can only be executed by calling a smart contract method:
Get the amount of shares from integration contract by wallet
Used to find the amount of shares for a given wallet from the integration contract
Using the smart contract view methods
Get the current value of a user's staked position
Allows you to obtain the value (in ETH) of the users current staked position
For example, consider the scenario where a user staked 12 ETH several months ago. Every time they visit your app, you want to showcase the current value of the staked position accounting for the accrued value from staking rewards over time.
You can simply query the smart contract with the users wallet.
Using the smart contract view methods
Using TheGraph queries
Retrieving all the deposit actions of a user
TheGraph queries
Last updated