-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat: update api for spl-governance TVL #12160
Conversation
0xShuk
commented
Nov 4, 2024
- This PR updates the TVL calculation for the tokens held by DAOs in the SPL Governance program.
- The total TVL in usd value is updated at: https://realms-tvl.vercel.app/tvl/latest weekly on Sunday.
The adapter at projects/spl-governance exports TVL:
|
@@ -1,22 +1,13 @@ | |||
const { getCache } = require('../helper/http') | |||
const url = 'https://api.realms.today/stats/tvl' | |||
const url = 'https://realms-tvl.vercel.app/tvl/latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update, but we would like a token breakdown, or even better a way to pull the values on chain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update, but we would like a token breakdown, or even better a way to pull the values on chain
The API has been updated to provide token-wise data. Fetching the token amounts for every DAO has a lot of overhead so we are providing it via API but we have included the treasuries holding each token in the API for additional verification if needed. Let me know if any further change is required, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
The adapter at projects/spl-governance exports TVL:
|
The adapter at projects/spl-governance exports TVL:
|
The adapter at projects/spl-governance exports TVL:
|
sorry, we cant treat projects gov token as tvl, because they mint and deposit it, for example JITO: https://solscan.io/account/2Ch9AWnbAaummLkWTTtNgTAvrFq8YMATUaaN77TB2Y6C |
would it be possible to get a list of projects, linked wallets and their gov token? we could list each individual project treasury |
Co-authored-by: g1nt0ki <[email protected]>