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 llama.airforce data to Daowatch #1

Closed
Tritium-VLK opened this issue Jan 13, 2022 · 6 comments
Closed

Add llama.airforce data to Daowatch #1

Tritium-VLK opened this issue Jan 13, 2022 · 6 comments
Assignees

Comments

@Tritium-VLK
Copy link
Contributor

Story: As a daowatch user, I want to be able to calculate the value of badger voting, as well as the value badger can earn by bribing and be able to compare that to the stated votium yeld.

Technical details.

This data is shown on llama.airforce coded by Alnuara from Votium. We need the following information:

we need the most recent $/vlCVX as well as the emissions/bribe on this page
https://llama.airforce/#/votium/overview
and the Convex APR on this page
https://llama.airforce/#/convex/flyer

this data should go into a new gauge called llama. It seems the only required selector is parameter, which should be one of the above.

Llama has an API but it does not provide this data. Will connect @SHAKOTN with Alunara to figure out how he got this data and/or we could scrape it.

not super urgent but would be super slick to have.

@SHAKOTN SHAKOTN self-assigned this Jan 13, 2022
@Tritium-VLK
Copy link
Contributor Author

From llama: https://docs.google.com/spreadsheets/d/1P10Z5TUVMY-MeB9pIHFJU_TLIrjtRY7xqjcAdc3guwY/edit#gid=127099604

Also use snapshot api to get vote data and votium api to get bribe data:

Votium API: https://api.llama.airforce/bribes

@Tritium-VLK
Copy link
Contributor Author

image

@Tritium-VLK
Copy link
Contributor Author

image

@Tritium-VLK
Copy link
Contributor Author

those 3 API calls + a bit more should get these numbers.

@Tritium-VLK
Copy link
Contributor Author

Votium has asked us not to repeat query their API more than once an hour and only updates every 15 minutes.

@Tritium-VLK
Copy link
Contributor Author

In the end just pull all numeric data from each fo the 3 endpoints listed above and put them in a new gauge

One selector should be endpoint

The bribes endpoint is structured data that can be broken down by parameters, ask me if you need help. The other 2 just seem like a list of params with values.

@SHAKOTN SHAKOTN closed this as completed Feb 2, 2022
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