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

feat: update api for spl-governance TVL #12160

Merged
merged 4 commits into from
Nov 15, 2024
Merged

feat: update api for spl-governance TVL #12160

merged 4 commits into from
Nov 15, 2024

Conversation

0xShuk
Copy link
Contributor

@0xShuk 0xShuk commented Nov 4, 2024

@llamatester
Copy link

The adapter at projects/spl-governance exports TVL:

solana                    927.41 M

total                    927.41 M 

@@ -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'
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

@g1nt0ki g1nt0ki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@g1nt0ki g1nt0ki self-assigned this Nov 5, 2024
@llamatester
Copy link

The adapter at projects/spl-governance exports TVL:

solana                    1.28 B

total                    1.28 B 

@llamatester
Copy link

The adapter at projects/spl-governance exports TVL:

solana-staking            1.12 B
staking                   1.12 B
solana                    19.10 M

total                    19.10 M 

@llamatester
Copy link

The adapter at projects/spl-governance exports TVL:

solana-staking            1.17 B
staking                   1.17 B
solana                    42.25 M

total                    42.25 M 

@g1nt0ki
Copy link
Member

g1nt0ki commented Nov 15, 2024

sorry, we cant treat projects gov token as tvl, because they mint and deposit it, for example JITO: https://solscan.io/account/2Ch9AWnbAaummLkWTTtNgTAvrFq8YMATUaaN77TB2Y6C

@g1nt0ki g1nt0ki merged commit 43fadb4 into DefiLlama:main Nov 15, 2024
1 check passed
@g1nt0ki
Copy link
Member

g1nt0ki commented Nov 15, 2024

would it be possible to get a list of projects, linked wallets and their gov token? we could list each individual project treasury

twothirtyfive pushed a commit to noble-assets/DefiLlama-Adapters that referenced this pull request Dec 11, 2024
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.

3 participants