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

Fetch cluster balance and burn rate from contract #3

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

mksh
Copy link
Contributor

@mksh mksh commented Sep 25, 2024

It turned out that SSV API only shows data from the latest cluster snapshot, which happens only on deposit/withdrawal and similar events, e.g. not often.

To get latest, most actual, balance and burn rate of a cluster, need to use SSVNetworkViews contract methods described at https://docs.ssv.network/developers/smart-contracts/ssvnetworkviews#s1a6da24gvwp

@mksh mksh merged commit c8cab29 into main Sep 25, 2024
1 check passed
@mksh mksh deleted the cluster-metrics-contract branch September 25, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant