-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Supervaults APY adapter (Neutron) #2175
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
Conversation
|
Error while running supervaults adapter: Test Suites: 1 failed, 1 total |
|
@clydedevv ty for adding. |
|
hey @slasher125 I went ahead and removed them, let me know if anything else is necessary ehre |
|
Error while running supervaults adapter: Test Suites: 1 failed, 1 total |
Protocol Details
supervaults(TVL adapter already merged: #16617)Key Features
BTC LST Symbol Display
Maps IBC denoms to proper symbols:
maxBTC-uniBTC,wBTC-eBTC,solvBTC-maxBTC(instead of generic "BTC-BTC")BTC LSTs included:
Token Denom Mappings
All Bitcoin LST IBC denoms documented in code:
ibc/3F1D988D9EEA...ibc/E2A000FD3E...ibc/C0F284F165...ibc/B7BF60BB54...ibc/2EB3035012...ibc/107552050...factory/neutron17sp75wng9...ibc/0E293A7622D...APY Methodology
Using
apy_vault_over_hold_30dUses indexer's 30-day performance metric which accounts for:
Test Results
Results:
Pool Distribution
Sample Output with Proper Symbols
Top Pool:
{ "pool": "neutron19v7gd733gjuh8h5v7vfxh4kqmhjzpcfe8u6uwrr55zsf9605ccmqch9kv2-neutron", "chain": "Neutron", "project": "supervaults", "symbol": "maxBTC-uniBTC", "tvlUsd": 1732218.87, "apyBase": 1.15, "underlyingTokens": [ "factory/neutron17sp75wng9vl2hu3sf4ky86d7smmk3wle9gkts2gmedn9x4ut3xcqa5xp34/maxbtc", "ibc/3F1D988D9EEA19EB0F3950B4C19664218031D8BCE68CE7DE30F187D5ACEA0463" ] }Negative APY Example (Honest Reporting):
{ "pool": "neutron16jdl03kz2ggrdm90lu3t4hdqj3tpc808r06nrcpnf0xun9wuqaws7qw42x-neutron", "chain": "Neutron", "project": "supervaults", "symbol": "USDC-NTRN", "tvlUsd": 216556.78, "apyBase": -48.98, "underlyingTokens": [ "ibc/B559A80D62249C8AA07A380E2A2BEA6E5CA9A6F079C912C3A9E9B494105E4F81", "untrn" ] }Technical Implementation
Code Structure
Features
What's Excluded
APY represents net vault performance only (per DefiLlama guidelines):
Token Pricing Notes (For DefiLlama Team)
All Bitcoin LSTs should be priced as BTC (1:1) on coins.llama.fi:
Full Token Mapping Table (click to expand)
ibc/3F1D988D9EEA19EB0F3950B4C19664218031D8BCE68CE7DE30F187D5ACEA0463ibc/E2A000FD3EDD91C9429B473995CE2C7C555BCC8CFC1D0A3D02F514392B7A80E8ibc/C0F284F165E6152F6DDDA900537C1BC8DA1EA00F03B9C9EC1841FA7E004EF7A3ibc/B7BF60BB54433071B49D586F54BD4DED5E20BEFBBA91958E87488A761115106Bibc/2EB30350120BBAFC168F55D0E65551A27A724175E8FBCC7B37F9A71618FE136Bibc/1075520501498E008B02FD414CD8079C0A2BAF9657278F8FB8F7D37A857ED668factory/neutron17sp75wng9vl2hu3sf4ky86d7smmk3wle9gkts2gmedn9x4ut3xcqa5xp34/maxbtcibc/0E293A7622DC9A6439DB60E6D234B5AF446962E27CA3AB44D0590603DFF6968ECentralized API Usage Justification
Per DefiLlama guidelines: "Centralised api calls are only accepted if there is no other way of obtaining that data."
Why This Adapter Uses Centralized API
Concentrated liquidity vault APY requires complex calculations impractical on-chain:
Example: maxBTC-uniBTC vault rebalanced 47 times in 30 days across 15 tick ranges. Calculating APY would require ~2,000+ contract queries per vault.
Precedent on Neutron
app.astroport.fi/api/trpccache.marsprotocol.io/apiapp.neutron.org/api/indexerAll use centralized APIs because Neutron lacks subgraph infrastructure and CL calculations are impractical on-chain.