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

feat: updated to include wombat LPs #1277

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

Sindermann
Copy link
Contributor

Currently, the YY adapter returns TVL as 0 for single-sided wombat vaults due to attempting to fetch a price for an LP token instead of an underlying token.

As the price returned is 0, the TVL is also 0, meaning the pool isn't shown on the dashboard.

This PR adds a separate logic for Wombat Pools without breaking TVL calculations for the rest of the vaults.

@llamatester
Copy link

The yield-yak-aggregator adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 268 passed, 268 total
Snapshots: 0 total
Time: 0.337 s
Ran all test suites.

Nb of pools: 44
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────────┬────────────────────────┬─────────────┬──────────────┬─────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────┐
│ (index) │                     pool                     │    chain    │        project         │   symbol    │   poolMeta   │ apyBase │                                        underlyingTokens                                        │       tvlUsd       │
├─────────┼──────────────────────────────────────────────┼─────────────┼────────────────────────┼─────────────┼──────────────┼─────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────┤
│    0    │ '0x8B414448de8B609e96bd63Dcf2A8aDbd5ddf7fdd' │ 'Avalanche' │ 'yield-yak-aggregator' │   'AVAX'    │   'benqi'    │   2.1   │                        [ '0x0000000000000000000000000000000000000000' ]                        │ 6336925.233340936  │
│    1    │ '0xc8cEeA18c2E168C6e767422c8d144c55545D23e9' │ 'Avalanche' │ 'yield-yak-aggregator' │   'sAVAX'   │   'benqi'    │   1.5   │                        [ '0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE' ]                        │ 5537373.561716991  │
│    2    │ '0x9f637540149f922145c06e1aa3f38dcDc32Aff5C' │ 'Avalanche' │ 'yield-yak-aggregator' │    'GLP'    │    'gmx'     │  8.36   │                        [ '0x5643F4b25E36478eE1E90418d5343cb6591BcB9d' ]                        │ 2576527.214794361  │
│    3    │ '0x0C4684086914D5B1525bf16c62a0FF8010AB991A' │ 'Avalanche' │ 'yield-yak-aggregator' │    'YAK'    │    'yak'     │  12.8   │                        [ '0x59414b3089ce2AF0010e7523Dea7E2b35d776ec7' ]                        │ 1656058.9094974324 │
│    4    │ '0x8889Da43CeE581068C695A2c256Ba2D514608F4A' │ 'Avalanche' │ 'yield-yak-aggregator' │   'BTC.b'   │   'benqi'    │  0.14   │                        [ '0x152b9d0FdC40C096757F570A51E494bd4b943E50' ]                        │ 1386104.1756008002 │
│    5    │ '0x714e06410B4960D3C1FC033bCd53ad9EB2d1f874' │ 'Avalanche' │ 'yield-yak-aggregator' │   'sJOE'    │ 'traderjoe'  │  5.15   │                        [ '0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd' ]                        │ 1126558.1046792322 │
│    6    │ '0xFB692D03BBEA21D8665035779dd3082c2B1622d0' │ 'Avalanche' │ 'yield-yak-aggregator' │   'USDC'    │   'benqi'    │  14.64  │                        [ '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ]                        │   1081708.775663   │
│    7    │ '0x68D8108f6FB797e7eb0C8d9524ba08D98BF27Bcb' │ 'Avalanche' │ 'yield-yak-aggregator' │   'USDC'    │ 'deltaprime' │  24.05  │                        [ '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ]                        │   804639.594078    │
│    8    │ '0x19707F26050Dfe7eb3C1b36E49276A088cE98752' │ 'Avalanche' │ 'yield-yak-aggregator' │    'PNG'    │  'pangolin'  │  7.98   │                        [ '0x60781C2586D68229fde47564546784ab3fACA982' ]                        │ 627240.8207891203  │
│    9    │ '0xC0cd58661b68e10b49D3Bec4bC5E44e7A7c20656' │ 'Avalanche' │ 'yield-yak-aggregator' │ 'USDC-AVAX' │  'pangolin'  │  61.68  │ [ '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │ 524837.3348717504  │
└─────────┴──────────────────────────────────────────────┴─────────────┴────────────────────────┴─────────────┴──────────────┴─────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit 89c9ee1 into DefiLlama:master Apr 22, 2024
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