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 Prom chain integration and token details #14106

Merged
merged 6 commits into from
Apr 3, 2025
Merged

Conversation

valeryV99
Copy link
Contributor

@valeryV99 valeryV99 commented Mar 31, 2025

  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

Name (to be shown on DefiLlama):

Prom

Twitter Link:

https://x.com/prom_io

List of audit links if any:
Website Link:

https://prom.io/

Logo (High resolution, will be shown with rounded borders):

https://assets-cdn.trustwallet.com/blockchains/ethereum/assets/0xfc82bb4ba86045Af6F327323a46E80412b91b27d/logo.png

Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:

prom

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)

https://www.coingecko.com/en/coins/prom

Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)

https://coinmarketcap.com/currencies/prom/

Short Description (to be shown on DefiLlama):

Lastly, update the project’s configuration file to add your new blockchain as a valid supported chain. If we don´t track any protocol on your blockchain, we can not add it. So make sure to add the new chain under a current project or add a new adapter to track the project on your blockchain

Token address and ticker if any:

0xfc82bb4ba86045af6f327323a46e80412b91b27d prom

Category (full list at https://defillama.com/categories) *Please choose only one:
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
Github org/user (Optional, if your code is open source, we can track activity):

https://github.com/prom-io

Replaced the factory address in savmswap for Prometeus and added "prom" to the supported chains list. Implemented token mappings for PROM and associated assets across Prom, Ethereum, and BSC. These updates improve chain support and token balance accuracy.
@waynebruce0x
Copy link
Collaborator

Could you take a look at the conflicts please?

@waynebruce0x waynebruce0x self-assigned this Mar 31, 2025
@valeryV99 valeryV99 changed the title Add Prometeus chain integration and token details Add Prom chain integration and token details Apr 1, 2025
@llamabutler
Copy link

Error while running adapter at projects/savmswap:

SyntaxError: Unexpected identifier 'ibcChains'
Truncated error stack:

    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:21:30)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

Replaced the old factory address with the new one in the uniTvlExport function. This ensures the TVL calculation uses the correct and updated address.
@llamabutler
Copy link

Error while running adapter at projects/savmswap:

SyntaxError: Unexpected identifier 'ibcChains'
Truncated error stack:

    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:21:30)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

Included 'prom' in the `ibcChains` array to ensure compatibility with IBC-related functionality. This update enhances the mapping logic for improved chain support.
@llamabutler
Copy link

Error while running adapter at projects/savmswap:

SyntaxError: Unexpected identifier 'ibcChains'
Truncated error stack:

    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:21:30)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@valeryV99
Copy link
Contributor Author

@waynebruce0x how Can I fix this test?

Removed an extra comment misplacement in the BSC mapping section for better readability. The change does not affect functionality or data structure.
@llamabutler
Copy link

The adapter at projects/savmswap exports TVL:

prom                      276.40 k

total                    276.40 k 

module.exports = uniTvlExport('prom', '0x3B73a7eDc9dfE4847a20BcCfEf6Eb1c90439f5C9') //factory address
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we track both the prom and svm deployments here? It will be more complete and better for our historical data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes
What should I change?

@waynebruce0x waynebruce0x merged commit eebb567 into DefiLlama:main Apr 3, 2025
1 check passed
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