-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Neutral.trade adapter #12674
base: main
Are you sure you want to change the base?
Neutral.trade adapter #12674
Conversation
The adapter at projects/neutral-trade exports TVL:
|
The adapter at projects/neutral-trade exports TVL:
|
use last recorded entry in case a specific date in missing
The adapter at projects/neutral-trade exports 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.
@NeutralTrade thanks for the PR but can you compute it using on chain data instead?
Sure can do. But would it work with timetravel: true ? I thought it would be OK to use the historical data we're recording along with our vault keepers like some other protocols listed on defillama are doing, it seems easier than doing a ton of rpc calls. I understand your concern is transparency, all our vaults are using Drift Vault Program, you can find most of our vaults listed on drift UI here https://app.drift.trade/vaults, it's all transparent, can't cheat the numbers :) let me know, thanks 🙏 |
unfortunately no, we cant fetch historical data from atm. Maybe you do re-use vectis code? Think they are using drift vaults as well: https://github.com/DefiLlama/DefiLlama-Adapters/pull/12564/files *maybe move the common code to helper file to avoid code duplication |
Ok got it. So i will revamp the code to compute everything from the chain directly. Please let me know, thanks 🙏 |
The adapter at projects/neutral-trade exports TVL:
|
The adapter at projects/neutral-trade exports TVL:
|
Error while running adapter at projects/neutral-trade:
|
Error while running adapter at :
|
Hi @g1nt0ki , I'd like to request to add the drift sdk to your repo, this will be a big help for all future projects building on top of Drift. |
sorry for the late reply, sorry but no. I am trying to keep the # dependencies to an absolute minimum. |
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.json
file 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):
Neutral Trade
Twitter Link:
https://x.com/TradeNeutral
List of audit links if any:
Neutral Trade uses Drift vault program ; see all drifts audits:
Website Link:
https://www.neutral.trade/
Logo (High resolution, will be shown with rounded borders):
Current TVL:
13,561,777
Treasury Addresses (if the protocol has treasury)
N/A
Chain:
Solana
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
N/A
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)
N/A
Short Description (to be shown on DefiLlama):
Neutral Trade is the on-chain multi-strategy hedge fund, built by experienced quants and traders from Goldman Sachs and Top Global Hedge Funds.
Token address and ticker if any:
N/A
Category (full list at https://defillama.com/categories) *Please choose only one:
Yield
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:
Fetch asset prices for rebalancing
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
N/A
forkedFrom (Does your project originate from another project):
N/A
methodology (what is being counted as tvl, how is tvl being calculated):
The Total Value Locked (TVL) is calculated as the sum of all deposits across public and private vaults, combined with their respective profit and loss (PnL).
Github org/user (Optional, if your code is open source, we can track activity):
https://github.com/neutral-trade