-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 Adrena Adapter #12266
Add Adrena Adapter #12266
Conversation
Error while running adapter at projects/adrena:
|
Error while running adapter at projects/adrena:
|
projects/adrena/index.js
Outdated
'solana:AuQaustGiaqxRvj2gtCdrd22PBzTn8kM3kEPEkZCtuDw': decodeAccount('tokenAccount', res[0]).amount.toString(), | ||
|
||
// ALP | ||
'solana:4yCLi5yWGzpTWMQ1iWHG5CrGYAdBkhyEdsuSugjDUqwj': decodeAccount('tokenAccount', res[1]).amount.toString(), |
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.
would skip this since the tokens backing it is already counted towards tvl
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.
Hello, we have a staking system where people can stake theirs ALP (pool token) in the program for some time 90day, 180d etc.
Same for our governance token (ADX).
I guess it depends what defilama is doing with the data, will follow your recommendation.
wdyt?
(thanks for 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.
the reason is, when a user deposits 1 USDC into your protocol, it counts towards tvl, then they stake the ALP, now that same USDC is counted again under staking, do you see the issue?
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.
understandable! done ✅
Error while running adapter at projects/adrena:
|
Error while running adapter at projects/adrena:
|
Error while running adapter at projects/adrena:
|
Error while running adapter at projects/adrena:
|
Name (to be shown on DefiLlama):
Adrena Protocol
Twitter Link:
https://x.com/AdrenaProtocol
List of audit links if any:
https://docs.adrena.xyz/technical-documentation/audits
Website Link:
https://app.adrena.xyz/
Logo (High resolution, will be shown with rounded borders):
Current TVL:
$13M
Treasury Addresses (if the protocol has treasury)
None
Chain:
Solana
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
{"id":"adrena","symbol":"adx","name":"Adrena"}
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)
None
Short Description (to be shown on DefiLlama):
Solana Perps DEX. 100x Leverage. 0% Slippage. 100% Rev Share. Open Source. Community Owned.
Token address and ticker if any:
AuQaustGiaqxRvj2gtCdrd22PBzTn8kM3kEPEkZCtuDw
(Adrena Governance Token)4yCLi5yWGzpTWMQ1iWHG5CrGYAdBkhyEdsuSugjDUqwj
(Adrena Pool Token)Category (full list at https://defillama.com/categories) *Please choose only one:
Dexes
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Pyth
Implementation Details: Briefly describe how the oracle is integrated into your project:
Pyth oracle accounts are bound to our pool and used within our onchain program for asset pricing.
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
Our program is a fork of open sources solana-labs/perpetuals: https://github.com/solana-labs/perpetuals, and inspired by GMX.
methodology (what is being counted as tvl, how is tvl being calculated):
TVL is calculated by aggregating the value of all assets in the pool's token accounts.
Github org/user (Optional, if your code is open source, we can track activity):
https://github.com/AdrenaFoundation