-
Notifications
You must be signed in to change notification settings - Fork 6.7k
add: implement TVL exports for Mantra in lotusdex v2 and v3 #17354
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
base: main
Are you sure you want to change the base?
Conversation
projects/lotusdex-v3/index.js
Outdated
| @@ -0,0 +1,4 @@ | |||
| const { uniV3Export } = require('../helper/uniswapV3') | |||
| module.exports = uniV3Export({ | |||
| 'mantra': { factory: '0xf091964417222474f1835B1bF096995d66303d96', fromBlock: 1 } | |||
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.
fromBlock should be 9868586
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 your comment, we updated
projects/lotusdex-v2/index.js
Outdated
| @@ -0,0 +1,4 @@ | |||
| const { uniTvlExports } = require('../helper/unknownTokens') | |||
| module.exports = uniTvlExports({ | |||
| 'mantra': '0xf8f54C91E868c7CF87774C388B6793807921BAa1' | |||
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.
and please try chain key mantrachain
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 your comment, we updated
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.
sir, the key in chains.json is "mantra", i do not find "mantrachain", please review
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.
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.
I dont think thats an EVM chain, try adding mantrachain to chains.json
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.
I updated sir
|
Error while running adapter at projects/lotusdex-v2: |
|
The adapter at projects/lotusdex-v2 exports TVL: |
|
Where are the bridged assets on mantrachain bridged from? Where is the collateral held? eg 0x5E76be0F4e09057D75140216F70fd4cE3365bb29 What backs mantraUSD? |

NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.jsonfile as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CIName (to be shown on DefiLlama): LotusDex
Twitter Link: https://x.com/LotusDex
List of audit links if any: https://docs.lotusdex.io/informational/audit
Website Link: https://app.lotusdex.io/
Logo (High resolution, will be shown with rounded borders): https://drive.google.com/drive/u/1/folders/1skZj1sem09dQ02EOBNcsL5LOfvnXS_JW
Current TVL: 154.7k
Treasury Addresses (if the protocol has treasury)
Chain: Mantra
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
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)
Short Description (to be shown on DefiLlama): Lotus is the first native DEX for the MANTRA. Lotus is deeply integrated across the MANTRA EVM with most of the top protocols, tokens, and liquidity providers in the ecosystem.
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one: Dexs
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):
Does this project have a referral program? No