Skip to content

Conversation

jarrydallison
Copy link
Contributor

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume/fees/revenue adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Small PR to update the provenance protocols to use the cosmos queryV1Beta1 function and update the provenance api endpoint.

@llamabutler
Copy link

The adapter at projects/figure-markets-democratized-prime exports TVL:

provenance                25.67 M
provenance-borrowed       16.66 M
borrowed                  16.66 M

total                    25.67 M 

@llamabutler
Copy link

The adapter at projects/figure-markets exports TVL:

provenance                120.21 M

total                    120.21 M 

const collateralizedAssets = 'pm.sale.pool.3dxq3fk9llvhrqqwhodiap'

const getPoolsCollateralValue = async (api) => {
const collateralTotal = (await Promise.all(demoPrimePools.map(async pool => {
const poolHash = (await get(recordsEndpoint(pool))).records[0]?.record?.outputs[0]?.hash
const poolHash = (await await queryV1Beta1({
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need to await twice here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We sure don't. I removed it.

@waynebruce0x waynebruce0x self-assigned this Sep 1, 2025
@llamabutler
Copy link

The adapter at projects/figure-markets-democratized-prime exports TVL:

provenance                25.46 M
provenance-borrowed       16.90 M
borrowed                  16.90 M

total                    25.46 M 

@llamabutler
Copy link

The adapter at projects/figure-markets exports TVL:

provenance                121.64 M

total                    121.64 M 

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