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

Add current APY Endpoint? #26

Open
robcxyz opened this issue Nov 6, 2023 · 1 comment
Open

Add current APY Endpoint? #26

robcxyz opened this issue Nov 6, 2023 · 1 comment
Assignees

Comments

@robcxyz
Copy link
Contributor

robcxyz commented Nov 6, 2023

Might not be needed as it is just a single entry of the APY over time endpoint but will ask community member who was asking for this if they needed it and it can be done. Still best to do over RPC can calc oneself but in this case it is one vs two calls and lighter than pulling whole time series

@robcxyz
Copy link
Contributor Author

robcxyz commented Dec 9, 2024

Related to sudoblockio/icon-tracker-frontend#513

Calculating APY for a single prep should be simple

For all APYs it is in here -> https://github.com/sudoblockio/icon-governance/blob/main/icon_governance/utils/apys.py

We want on individual prep level and will need to expose that over API to get to #513 above

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

No branches or pull requests

2 participants