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: integrate Reservoir's yield data #1013

Merged
merged 6 commits into from
Sep 27, 2023
Merged

Conversation

xenide
Copy link
Contributor

@xenide xenide commented Sep 24, 2023

  • let me know if there's anything that needs to be changed, so I can do it instead of you doing it

@llamatester
Copy link

The reservoir adapter exports pools:

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

Nb of pools: 5
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────────┬─────────────┬──────────────┬──────────────────────────┬────────────────────┬───────────┬──────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────┐
│ (index) │                     pool                     │    chain    │   project   │    symbol    │          tvlUsd          │      apyBase       │ apyReward │ rewardTokens │                                        underlyingTokens                                        │              poolMeta              │
├─────────┼──────────────────────────────────────────────┼─────────────┼─────────────┼──────────────┼──────────────────────────┼────────────────────┼───────────┼──────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────┤
│    0    │ '0x146d00567cef404c1c0aaf1dfd2abea9f260b8c7' │ 'Avalanche' │ 'reservoir' │ 'USDt-USDC'  │    19938.133246690202    │ 2.7264661698677854 │     0     │      []      │ [ '0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │      'USDt-USDC Stable Pair'       │
│    1    │ '0x1e93509a80e936bff8e27c129a9b99728a51d0cc' │ 'Avalanche' │ 'reservoir' │ 'WAVAX-USDC' │    23.100829121464116    │ 2.5203966132698694 │     0     │      []      │ [ '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │ 'WAVAX-USDC Constant Product Pair' │
│    2    │ '0x02ee8b06c500d0dddb8c689efdf24971ceb0ef19' │ 'Avalanche' │ 'reservoir' │ 'BTC.b-USDC' │    1.8999525703820201    │ 1.3614292536287937 │     0     │      []      │ [ '0x152b9d0FdC40C096757F570A51E494bd4b943E50', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │ 'BTC.b-USDC Constant Product Pair' │
│    3    │ '0x262ef86533cd7fc58060af8547c820978a8b231a' │ 'Avalanche' │ 'reservoir' │  'JOE-USDC'  │    1.1064908160786162    │ 1.3583123038415863 │     0     │      []      │ [ '0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │  'JOE-USDC Constant Product Pair'  │
│    4    │ '0x81e50d088987e8f96a7c5f909c5665cd267eec82' │ 'Avalanche' │ 'reservoir' │ 'USDC-DAI.e' │ 0.0000010000000005001342 │         0          │     0     │      []      │ [ '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E', '0xd586E7F844cEa2F87f50152665BCbc2C279D8d70' ] │      'USDC-DAI.e Stable Pair'      │
└─────────┴──────────────────────────────────────────────┴─────────────┴─────────────┴──────────────┴──────────────────────────┴────────────────────┴───────────┴──────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

hi, ty for adding. pls shorten the poolMeta field, can just be something like Stable

@xenide
Copy link
Contributor Author

xenide commented Sep 27, 2023

hi, ty for adding. pls shorten the poolMeta field, can just be something like Stable

Thanks for the feedback, fixed now.

@llamatester
Copy link

The reservoir adapter exports pools:

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

Nb of pools: 5
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────────┬─────────────┬──────────────┬──────────────────────────┬────────────────────┬───────────┬──────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────┐
│ (index) │                     pool                     │    chain    │   project   │    symbol    │          tvlUsd          │      apyBase       │ apyReward │ rewardTokens │                                        underlyingTokens                                        │      poolMeta      │
├─────────┼──────────────────────────────────────────────┼─────────────┼─────────────┼──────────────┼──────────────────────────┼────────────────────┼───────────┼──────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────┤
│    0    │ '0x146d00567cef404c1c0aaf1dfd2abea9f260b8c7' │ 'Avalanche' │ 'reservoir' │ 'USDt-USDC'  │    19931.524024776507    │ 2.7505932041975307 │     0     │      []      │ [ '0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │      'Stable'      │
│    1    │ '0x1e93509a80e936bff8e27c129a9b99728a51d0cc' │ 'Avalanche' │ 'reservoir' │ 'WAVAX-USDC' │    23.36689684628234     │ 2.502515236044701  │     0     │      []      │ [ '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │ 'Constant Product' │
│    2    │ '0x02ee8b06c500d0dddb8c689efdf24971ceb0ef19' │ 'Avalanche' │ 'reservoir' │ 'BTC.b-USDC' │        1.91078944        │ 1.3808816679545346 │     0     │      []      │ [ '0x152b9d0FdC40C096757F570A51E494bd4b943E50', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │ 'Constant Product' │
│    3    │ '0x262ef86533cd7fc58060af8547c820978a8b231a' │ 'Avalanche' │ 'reservoir' │  'JOE-USDC'  │    1.1059981521410123    │ 1.377769913980908  │     0     │      []      │ [ '0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E' ] │ 'Constant Product' │
│    4    │ '0x81e50d088987e8f96a7c5f909c5665cd267eec82' │ 'Avalanche' │ 'reservoir' │ 'USDC-DAI.e' │ 0.0000010000161404999454 │         0          │     0     │      []      │ [ '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E', '0xd586E7F844cEa2F87f50152665BCbc2C279D8d70' ] │      'Stable'      │
└─────────┴──────────────────────────────────────────────┴─────────────┴─────────────┴──────────────┴──────────────────────────┴────────────────────┴───────────┴──────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit faa2e53 into DefiLlama:master Sep 27, 2023
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