Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data Source] Get stkSHU staked balance #42

Open
FrancoAguzzi opened this issue Aug 18, 2024 · 0 comments
Open

[Data Source] Get stkSHU staked balance #42

FrancoAguzzi opened this issue Aug 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FrancoAguzzi
Copy link
Contributor

FrancoAguzzi commented Aug 18, 2024

Get user stakes and sum total stkSHU amount

This can be done by either calling Staking or Delegate contract, based on the address "isKeyper" truth.
Then, "getUserStakeIds" must be called, followed by individual "stakes" function call for each stake id.
Lastly, a sum of all stake amounts shall be done to achieve the desired total stkSHU amount.

@FrancoAguzzi FrancoAguzzi self-assigned this Aug 20, 2024
@FrancoAguzzi FrancoAguzzi added the enhancement New feature or request label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In review
Development

No branches or pull requests

1 participant