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

maverick-v2 yields #1565

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

maverick-v2 yields #1565

wants to merge 5 commits into from

Conversation

gte620v
Copy link

@gte620v gte620v commented Oct 22, 2024

No description provided.

@llamatester
Copy link

The maverick-v2 adapter exports pools:

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

Nb of pools: 79
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬───────────────┬──────────────────────────┬────────────────────┬────────────────────────┬──────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                         pool                          │   chain    │    project    │          symbol          │       tvlUsd       │        apyBase         │      apyReward       │                                                                         rewardTokens                                                                          │                                        underlyingTokens                                        │                                                                         url                                                                         │
├─────────┼───────────────────────────────────────────────────────┼────────────┼───────────────┼──────────────────────────┼────────────────────┼────────────────────────┼──────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0xe2ba221b9b130b24eba3c2216933e3f9a93bfdcf-ethereum' │ 'Ethereum' │ 'maverick-v2' │   'MBP-GHO-USDC-21-R1'   │ 6331062.047479168  │  0.010683952392187055  │ 0.027057614768433085 │                                [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                                 │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │ 'https://app.mav.xyz/boosted-position/0xE4b19eC7A7b352aa0E74604F6EADF58127bd9de9/0xe2BA221B9B130B24Eba3c2216933E3F9a93bfdcf?chain=undefined&f=true' │
│    1    │  '0x6d9a8c7a5d393335edc749863ee91faeeb5e22b9-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-33-R1'  │ 6247643.337208094  │ 0.00019992941748727717 │  0.1277625579014665  │                                                       [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E' ]                                                        │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0xe4f0338B50978e6DbF9aF1F5A914014525901367/0x6d9a8C7A5D393335eDC749863ee91FaeeB5E22b9?chain=undefined&f=true' │
│    2    │  '0xa59a65c86f1b383c0b2e5742165c9883be64b00c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-wstETH-weETH-26-R1' │ 5003427.659522224  │ 0.0002511387731945728  │ 0.12083426354717441  │ [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867', '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508', ... 1 more item ] │ [ '0x703b52F2b28fEbcB60E1372858AF5b18849FE867', '0xc1Fa6E2E8667d9bE0Ca938a54c7E0285E9Df924a' ] │ 'https://app.mav.xyz/boosted-position/0xDbc64F0c725cE1b7212290005c81834D9eCC2E4d/0xa59A65c86F1B383c0b2E5742165C9883be64b00C?chain=undefined&f=true' │
│    3    │   '0x242e1ffd23133c8b7974425c2e3bd64a8ec8af2b-base'   │   'Base'   │ 'maverick-v2' │ 'MBP-WETH-wstETH-22-R1'  │ 1404503.6399564904 │  0.001967288821139226  │ 0.09986698038649716  │                                [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7', '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ]                                 │ [ '0x4200000000000000000000000000000000000006', '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ] │ 'https://app.mav.xyz/boosted-position/0x3Cc953986041736edf558355591523ccb0cd20b6/0x242e1FFD23133c8b7974425c2e3bD64A8ec8AF2b?chain=undefined&f=true' │
│    4    │   '0xb2e6e155f3c6a12fb0708b75224c50d6ae2b03fc-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-gUSDC-33-R1'  │ 1140142.9734334508 │ 1.7602569799474758e-7  │ 0.17920460493535822  │         [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7', '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xad20523a7dc37babc1cc74897e4977232b3d02e5' ]          │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xad20523a7dc37babc1cc74897e4977232b3d02e5' ] │ 'https://app.mav.xyz/boosted-position/0x27fFd5a3828275c5938b9bE7a8db44b7DB897A34/0xB2E6E155f3c6A12FB0708B75224c50d6aE2b03FC?chain=undefined&f=true' │
│    5    │ '0x6b93690aad195a59823d2f70a3b1ffd516cae075-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-MAV-sprMAV-30-R1'  │ 145793.09545431205 │           0            │  1.5245763695355372  │                                [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                                 │ [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD', '0xC54Ff26fd5564Ff46b14d9825A2259a0d53Bf7d9' ] │ 'https://app.mav.xyz/boosted-position/0x98e201327d272ac4F5aCEd3Cd41bc25C9Ce02156/0x6B93690Aad195A59823d2f70a3b1ffd516CaE075?chain=undefined&f=true' │
│    6    │  '0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-31-R1'  │ 134686.8340270935  │  0.001178476775932023  │          0           │                                                       [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E' ]                                                        │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0x2c5AB8079D90bc47F8FaAB841144CB9408C2a183/0x5F2f2D05618b5A2e3d0E32604ac02eFc3Fca888c?chain=undefined&f=true' │
│    7    │  '0x7b069aa2b92d356db4e6b9552d541f5aab4415fc-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-USDC-USDC.e-27-R1'  │ 82879.61992671923  │  0.010980697289982515  │ 0.11392696956748913  │                                [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E', '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ]                                 │ [ '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4', '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4' ] │ 'https://app.mav.xyz/boosted-position/0x79DBdB18405395d06207b7E1d6f991a8579be505/0x7b069AA2b92d356Db4e6b9552D541f5AaB4415Fc?chain=undefined&f=true' │
│    8    │ '0x473599561e8b1a9e4e968ed69511abe87755a689-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-USDC-USDT-24-R1'   │  78130.6844972338  │ 4.6694609066157416e-8  │  0.2725764674695969  │                                                       [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                                                        │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │ 'https://app.mav.xyz/boosted-position/0x83Ca368ad3AAa9441dc00BE2f3917faA1B08BD60/0x473599561E8b1A9e4e968ed69511abe87755a689?chain=undefined&f=true' │
│    9    │   '0xd0558ca56f2fc71567851c2ad02e96f1e81c7ff4-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-USDbC-29-R1'  │ 71669.77396286197  │  0.02892601186052207   │ 0.061506752886255116 │                                                       [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7' ]                                                        │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA' ] │ 'https://app.mav.xyz/boosted-position/0xe6f8011777BEc282C71aA374651b08Fc34C37a9e/0xd0558Ca56F2fC71567851c2Ad02e96F1E81C7ff4?chain=undefined&f=true' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴───────────────┴──────────────────────────┴────────────────────┴────────────────────────┴──────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@gte620v gte620v marked this pull request as draft October 22, 2024 21:19
@llamatester
Copy link

The maverick-v2 adapter exports pools:

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

Nb of pools: 79
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬───────────────┬──────────────────────────┬────────────────────┬────────────────────────┬──────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                         pool                          │   chain    │    project    │          symbol          │       tvlUsd       │        apyBase         │      apyReward       │                                          rewardTokens                                          │                                        underlyingTokens                                        │                                                             url                                                              │
├─────────┼───────────────────────────────────────────────────────┼────────────┼───────────────┼──────────────────────────┼────────────────────┼────────────────────────┼──────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0xe2ba221b9b130b24eba3c2216933e3f9a93bfdcf-ethereum' │ 'Ethereum' │ 'maverick-v2' │   'MBP-GHO-USDC-21-R1'   │ 6331916.311332885  │  0.010682654742298214  │ 0.027096191601351953 │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │ 'https://app.mav.xyz/boosted-position/0xE4b19eC7A7b352aa0E74604F6EADF58127bd9de9/0xe2BA221B9B130B24Eba3c2216933E3F9a93bfdcf' │
│    1    │  '0x6d9a8c7a5d393335edc749863ee91faeeb5e22b9-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-33-R1'  │ 6247993.989066374  │ 0.00019992165910346792 │ 0.12780474975296263  │                        [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E' ]                        │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0xe4f0338B50978e6DbF9aF1F5A914014525901367/0x6d9a8C7A5D393335eDC749863ee91FaeeB5E22b9' │
│    2    │  '0xa59a65c86f1b383c0b2e5742165c9883be64b00c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-wstETH-weETH-26-R1' │ 5003996.023098575  │ 0.00025115501985800064 │  0.1208806816424441  │ [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E', '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ] │ [ '0x703b52F2b28fEbcB60E1372858AF5b18849FE867', '0xc1Fa6E2E8667d9bE0Ca938a54c7E0285E9Df924a' ] │ 'https://app.mav.xyz/boosted-position/0xDbc64F0c725cE1b7212290005c81834D9eCC2E4d/0xa59A65c86F1B383c0b2E5742165C9883be64b00C' │
│    3    │   '0x242e1ffd23133c8b7974425c2e3bd64a8ec8af2b-base'   │   'Base'   │ 'maverick-v2' │ 'MBP-WETH-wstETH-22-R1'  │ 1405406.064489246  │  0.001967715099719004  │ 0.09980381764071634  │                        [ '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ]                        │ [ '0x4200000000000000000000000000000000000006', '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ] │ 'https://app.mav.xyz/boosted-position/0x3Cc953986041736edf558355591523ccb0cd20b6/0x242e1FFD23133c8b7974425c2e3bD64A8ec8AF2b' │
│    4    │   '0xb2e6e155f3c6a12fb0708b75224c50d6ae2b03fc-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-gUSDC-33-R1'  │ 1140492.0058711402 │ 1.7602569799474764e-7  │ 0.17913699149671522  │ [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7', '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' ] │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xad20523a7dc37babc1cc74897e4977232b3d02e5' ] │ 'https://app.mav.xyz/boosted-position/0x27fFd5a3828275c5938b9bE7a8db44b7DB897A34/0xB2E6E155f3c6A12FB0708B75224c50d6aE2b03FC' │
│    5    │ '0x6b93690aad195a59823d2f70a3b1ffd516cae075-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-MAV-sprMAV-30-R1'  │ 146020.65715947349 │           0            │  1.5228690098015827  │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ] │ [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD', '0xC54Ff26fd5564Ff46b14d9825A2259a0d53Bf7d9' ] │ 'https://app.mav.xyz/boosted-position/0x98e201327d272ac4F5aCEd3Cd41bc25C9Ce02156/0x6B93690Aad195A59823d2f70a3b1ffd516CaE075' │
│    6    │  '0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-31-R1'  │ 134693.45487482412 │  0.001178431199562575  │          0           │                                               []                                               │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0x2c5AB8079D90bc47F8FaAB841144CB9408C2a183/0x5F2f2D05618b5A2e3d0E32604ac02eFc3Fca888c' │
│    7    │  '0x7b069aa2b92d356db4e6b9552d541f5aab4415fc-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-USDC-USDC.e-27-R1'  │ 82861.71792881505  │  0.010980697289982515  │ 0.11405759816431077  │                        [ '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ]                        │ [ '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4', '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4' ] │ 'https://app.mav.xyz/boosted-position/0x79DBdB18405395d06207b7E1d6f991a8579be505/0x7b069AA2b92d356Db4e6b9552D541f5AaB4415Fc' │
│    8    │ '0x473599561e8b1a9e4e968ed69511abe87755a689-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-USDC-USDT-24-R1'   │ 78154.14786985677  │  4.669081795666549e-8  │  0.2729199590741584  │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │ 'https://app.mav.xyz/boosted-position/0x83Ca368ad3AAa9441dc00BE2f3917faA1B08BD60/0x473599561E8b1A9e4e968ed69511abe87755a689' │
│    9    │   '0xd0558ca56f2fc71567851c2ad02e96f1e81c7ff4-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-USDbC-29-R1'  │ 71691.68385980558  │  0.028974888023277502  │ 0.06154516106187135  │                        [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7' ]                        │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA' ] │ 'https://app.mav.xyz/boosted-position/0xe6f8011777BEc282C71aA374651b08Fc34C37a9e/0xd0558Ca56F2fC71567851c2Ad02e96F1E81C7ff4' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴───────────────┴──────────────────────────┴────────────────────┴────────────────────────┴──────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The maverick-v2 adapter exports pools:

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

Nb of pools: 79
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬───────────────┬──────────────────────────┬────────────────────┬────────────────────────┬─────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                         pool                          │   chain    │    project    │          symbol          │       tvlUsd       │        apyBase         │      apyReward      │                                          rewardTokens                                          │                                        underlyingTokens                                        │                                                                      url                                                                       │
├─────────┼───────────────────────────────────────────────────────┼────────────┼───────────────┼──────────────────────────┼────────────────────┼────────────────────────┼─────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0xe2ba221b9b130b24eba3c2216933e3f9a93bfdcf-ethereum' │ 'Ethereum' │ 'maverick-v2' │   'MBP-GHO-USDC-21-R1'   │ 6333164.831666529  │  0.010682749392128016  │ 0.02710049990474048 │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │  'https://app.mav.xyz/boosted-position/0xE4b19eC7A7b352aa0E74604F6EADF58127bd9de9/0xe2BA221B9B130B24Eba3c2216933E3F9a93bfdcf?chain=1&f=true'   │
│    1    │  '0x6d9a8c7a5d393335edc749863ee91faeeb5e22b9-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-33-R1'  │ 6250199.932375581  │ 0.00019985147634375274 │ 0.12771635751388438 │                        [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E' ]                        │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0xe4f0338B50978e6DbF9aF1F5A914014525901367/0x6d9a8C7A5D393335eDC749863ee91FaeeB5E22b9?chain=324&f=true'  │
│    2    │  '0xa59a65c86f1b383c0b2e5742165c9883be64b00c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-wstETH-weETH-26-R1' │ 5004901.073212517  │  0.000251193836089056  │ 0.12083508573987724 │ [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E', '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ] │ [ '0x703b52F2b28fEbcB60E1372858AF5b18849FE867', '0xc1Fa6E2E8667d9bE0Ca938a54c7E0285E9Df924a' ] │ 'https://app.mav.xyz/boosted-position/0xDbc64F0c725cE1b7212290005c81834D9eCC2E4d/0xa59A65c86F1B383c0b2E5742165C9883be64b00C?chain=324&f=true'  │
│    3    │   '0x242e1ffd23133c8b7974425c2e3bd64a8ec8af2b-base'   │   'Base'   │ 'maverick-v2' │ 'MBP-WETH-wstETH-22-R1'  │ 1405779.8497986717 │  0.001968923025497776  │ 0.09977054290650714 │                        [ '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ]                        │ [ '0x4200000000000000000000000000000000000006', '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ] │ 'https://app.mav.xyz/boosted-position/0x3Cc953986041736edf558355591523ccb0cd20b6/0x242e1FFD23133c8b7974425c2e3bD64A8ec8AF2b?chain=8453&f=true' │
│    4    │   '0xb2e6e155f3c6a12fb0708b75224c50d6ae2b03fc-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-gUSDC-33-R1'  │ 1140628.8813369004 │  1.760256979947476e-7  │ 0.17915736490451914 │ [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7', '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' ] │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xad20523a7dc37babc1cc74897e4977232b3d02e5' ] │ 'https://app.mav.xyz/boosted-position/0x27fFd5a3828275c5938b9bE7a8db44b7DB897A34/0xB2E6E155f3c6A12FB0708B75224c50d6aE2b03FC?chain=8453&f=true' │
│    5    │ '0x6b93690aad195a59823d2f70a3b1ffd516cae075-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-MAV-sprMAV-30-R1'  │ 146109.24368041134 │           0            │ 1.5223274717229975  │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ] │ [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD', '0xC54Ff26fd5564Ff46b14d9825A2259a0d53Bf7d9' ] │  'https://app.mav.xyz/boosted-position/0x98e201327d272ac4F5aCEd3Cd41bc25C9Ce02156/0x6B93690Aad195A59823d2f70a3b1ffd516CaE075?chain=1&f=true'   │
│    6    │  '0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-31-R1'  │ 134732.5174870509  │  0.001178018882652795  │          0          │                                               []                                               │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0x2c5AB8079D90bc47F8FaAB841144CB9408C2a183/0x5F2f2D05618b5A2e3d0E32604ac02eFc3Fca888c?chain=324&f=true'  │
│    7    │  '0x7b069aa2b92d356db4e6b9552d541f5aab4415fc-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-USDC-USDC.e-27-R1'  │ 82879.61992671923  │  0.010980697289982515  │ 0.11407358147136813 │                        [ '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ]                        │ [ '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4', '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4' ] │ 'https://app.mav.xyz/boosted-position/0x79DBdB18405395d06207b7E1d6f991a8579be505/0x7b069AA2b92d356Db4e6b9552D541f5AaB4415Fc?chain=324&f=true'  │
│    8    │ '0x473599561e8b1a9e4e968ed69511abe87755a689-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-USDC-USDT-24-R1'   │ 78173.62246913384  │ 4.6688103997138294e-8  │ 0.27294916206148434 │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │  'https://app.mav.xyz/boosted-position/0x83Ca368ad3AAa9441dc00BE2f3917faA1B08BD60/0x473599561E8b1A9e4e968ed69511abe87755a689?chain=1&f=true'   │
│    9    │   '0xd0558ca56f2fc71567851c2ad02e96f1e81c7ff4-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-USDbC-29-R1'  │ 71700.28574418544  │  0.028978383292852097  │ 0.06155969789581213 │                        [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7' ]                        │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA' ] │ 'https://app.mav.xyz/boosted-position/0xe6f8011777BEc282C71aA374651b08Fc34C37a9e/0xd0558Ca56F2fC71567851c2Ad02e96F1E81C7ff4?chain=8453&f=true' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴───────────────┴──────────────────────────┴────────────────────┴────────────────────────┴─────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The maverick-v2 adapter exports pools:

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

Nb of pools: 79
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬───────────────┬──────────────────────────┬────────────────────┬─────────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                         pool                          │   chain    │    project    │          symbol          │       tvlUsd       │         apyBase         │     apyReward      │                                          rewardTokens                                          │                                        underlyingTokens                                        │                                                                      url                                                                       │
├─────────┼───────────────────────────────────────────────────────┼────────────┼───────────────┼──────────────────────────┼────────────────────┼─────────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0xe2ba221b9b130b24eba3c2216933e3f9a93bfdcf-ethereum' │ 'Ethereum' │ 'maverick-v2' │   'MBP-GHO-USDC-21-R1'   │ 6330578.1915404145 │   1.0682388066711541    │ 2.7071901155738525 │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │  'https://app.mav.xyz/boosted-position/0xE4b19eC7A7b352aa0E74604F6EADF58127bd9de9/0xe2BA221B9B130B24Eba3c2216933E3F9a93bfdcf?chain=1&f=true'   │
│    1    │  '0x6d9a8c7a5d393335edc749863ee91faeeb5e22b9-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-33-R1'  │ 6246725.360272068  │  0.019983959455065807   │ 12.755092940241063 │                        [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E' ]                        │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0xe4f0338B50978e6DbF9aF1F5A914014525901367/0x6d9a8C7A5D393335eDC749863ee91FaeeB5E22b9?chain=324&f=true'  │
│    2    │  '0xa59a65c86f1b383c0b2e5742165c9883be64b00c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-wstETH-weETH-26-R1' │ 5001717.065302538  │   0.02511924142073277   │ 12.07066866894438  │ [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E', '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ] │ [ '0x703b52F2b28fEbcB60E1372858AF5b18849FE867', '0xc1Fa6E2E8667d9bE0Ca938a54c7E0285E9Df924a' ] │ 'https://app.mav.xyz/boosted-position/0xDbc64F0c725cE1b7212290005c81834D9eCC2E4d/0xa59A65c86F1B383c0b2E5742165C9883be64b00C?chain=324&f=true'  │
│    3    │   '0x242e1ffd23133c8b7974425c2e3bd64a8ec8af2b-base'   │   'Base'   │ 'maverick-v2' │ 'MBP-WETH-wstETH-22-R1'  │ 1405128.3954022443 │   0.1968844484348602    │  9.97542056055527  │                        [ '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ]                        │ [ '0x4200000000000000000000000000000000000006', '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ] │ 'https://app.mav.xyz/boosted-position/0x3Cc953986041736edf558355591523ccb0cd20b6/0x242e1FFD23133c8b7974425c2e3bD64A8ec8AF2b?chain=8453&f=true' │
│    4    │   '0xb2e6e155f3c6a12fb0708b75224c50d6ae2b03fc-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-gUSDC-33-R1'  │ 1140142.9734334508 │ 0.00001760256979947476  │ 17.913582758182798 │ [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7', '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' ] │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xad20523a7dc37babc1cc74897e4977232b3d02e5' ] │ 'https://app.mav.xyz/boosted-position/0x27fFd5a3828275c5938b9bE7a8db44b7DB897A34/0xB2E6E155f3c6A12FB0708B75224c50d6aE2b03FC?chain=8453&f=true' │
│    5    │ '0x6b93690aad195a59823d2f70a3b1ffd516cae075-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-MAV-sprMAV-30-R1'  │ 145910.93990877064 │            0            │ 152.32645039171186 │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ] │ [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD', '0xC54Ff26fd5564Ff46b14d9825A2259a0d53Bf7d9' ] │  'https://app.mav.xyz/boosted-position/0x98e201327d272ac4F5aCEd3Cd41bc25C9Ce02156/0x6B93690Aad195A59823d2f70a3b1ffd516CaE075?chain=1&f=true'   │
│    6    │  '0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-WETH-wstETH-31-R1'  │ 134656.18080914303 │   0.11779490728141048   │         0          │                                               []                                               │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0x2c5AB8079D90bc47F8FaAB841144CB9408C2a183/0x5F2f2D05618b5A2e3d0E32604ac02eFc3Fca888c?chain=324&f=true'  │
│    7    │  '0x7b069aa2b92d356db4e6b9552d541f5aab4415fc-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'MBP-USDC-USDC.e-27-R1'  │  82841.0809034533  │   1.0980697289982515    │ 11.40002895762725  │                        [ '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ]                        │ [ '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4', '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4' ] │ 'https://app.mav.xyz/boosted-position/0x79DBdB18405395d06207b7E1d6f991a8579be505/0x7b069AA2b92d356Db4e6b9552D541f5AaB4415Fc?chain=324&f=true'  │
│    8    │ '0x473599561e8b1a9e4e968ed69511abe87755a689-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MBP-USDC-USDT-24-R1'   │ 78134.43863685348  │ 0.000004669353335000124 │ 27.268644221389437 │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │  'https://app.mav.xyz/boosted-position/0x83Ca368ad3AAa9441dc00BE2f3917faA1B08BD60/0x473599561E8b1A9e4e968ed69511abe87755a689?chain=1&f=true'   │
│    9    │   '0xd0558ca56f2fc71567851c2ad02e96f1e81c7ff4-base'   │   'Base'   │ 'maverick-v2' │  'MBP-USDC-USDbC-29-R1'  │ 71669.74993493383  │    2.899055761350305    │ 6.151773838060993  │                        [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7' ]                        │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA' ] │ 'https://app.mav.xyz/boosted-position/0xe6f8011777BEc282C71aA374651b08Fc34C37a9e/0xd0558Ca56F2fC71567851c2Ad02e96F1E81C7ff4?chain=8453&f=true' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴───────────────┴──────────────────────────┴────────────────────┴─────────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@gte620v gte620v marked this pull request as ready for review October 22, 2024 21:31
@slasher125
Copy link
Collaborator

gm,

  • symbols should be just GHO-USDC instead of 'MBP-GHO-USDC-21-R1', u can add the 21-R1 into poolMeta
  • pls make use of on chain calls using our sdk

@gte620v
Copy link
Author

gte620v commented Oct 23, 2024

hi @slasher125, thanks; I will fix the symbols.

not sure what you mean about on chain calls. there are no on chain calls here. the mav api that is called is a thin wrapper on a subgraph. i was following the convention in the beefy folder. can you point me to the line where i need to use the sdk?

@llamatester
Copy link

The maverick-v2 adapter exports pools:

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

Nb of pools: 79
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬───────────────┬────────────────┬────────────────────┬───────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────┐
│ (index) │                         pool                          │   chain    │    project    │     symbol     │       tvlUsd       │        apyBase        │     apyReward      │                                          rewardTokens                                          │                                        underlyingTokens                                        │                                                                      url                                                                       │ poolMeta │
├─────────┼───────────────────────────────────────────────────────┼────────────┼───────────────┼────────────────┼────────────────────┼───────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────┤
│    0    │ '0xe2ba221b9b130b24eba3c2216933e3f9a93bfdcf-ethereum' │ 'Ethereum' │ 'maverick-v2' │   'GHO-USDC'   │ 6438969.701177574  │  1.0033392776342538   │ 15.516241639291831 │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ] │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │  'https://app.mav.xyz/boosted-position/0xE4b19eC7A7b352aa0E74604F6EADF58127bd9de9/0xe2BA221B9B130B24Eba3c2216933E3F9a93bfdcf?chain=1&f=true'   │  '1-R1'  │
│    1    │  '0x6d9a8c7a5d393335edc749863ee91faeeb5e22b9-zksync'  │  'Zksync'  │ 'maverick-v2' │  'ETH-WSTETH'  │ 6115511.636187485  │ 0.006579008322013037  │ 12.180099429940165 │                        [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E' ]                        │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0xe4f0338B50978e6DbF9aF1F5A914014525901367/0x6d9a8C7A5D393335eDC749863ee91FaeeB5E22b9?chain=324&f=true'  │  '3-R1'  │
│    2    │  '0xa59a65c86f1b383c0b2e5742165c9883be64b00c-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'WSTETH-WEETH' │ 4892685.6192234345 │ 0.0014691072073780734 │ 11.602698615028869 │ [ '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E', '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ] │ [ '0x703b52F2b28fEbcB60E1372858AF5b18849FE867', '0xc1Fa6E2E8667d9bE0Ca938a54c7E0285E9Df924a' ] │ 'https://app.mav.xyz/boosted-position/0xDbc64F0c725cE1b7212290005c81834D9eCC2E4d/0xa59A65c86F1B383c0b2E5742165C9883be64b00C?chain=324&f=true'  │  '6-R1'  │
│    3    │   '0x242e1ffd23133c8b7974425c2e3bd64a8ec8af2b-base'   │   'Base'   │ 'maverick-v2' │  'ETH-WSTETH'  │ 1413250.2884495363 │ 0.005879905943189922  │ 9.706082335751356  │                        [ '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ]                        │ [ '0x4200000000000000000000000000000000000006', '0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452' ] │ 'https://app.mav.xyz/boosted-position/0x3Cc953986041736edf558355591523ccb0cd20b6/0x242e1FFD23133c8b7974425c2e3bD64A8ec8AF2b?chain=8453&f=true' │  '2-R1'  │
│    4    │   '0xb2e6e155f3c6a12fb0708b75224c50d6ae2b03fc-base'   │   'Base'   │ 'maverick-v2' │  'USDC-GUSDC'  │ 1186603.3002232062 │  0.11111927703888454  │ 17.12569577738769  │ [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7', '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' ] │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xad20523a7dc37babc1cc74897e4977232b3d02e5' ] │ 'https://app.mav.xyz/boosted-position/0x27fFd5a3828275c5938b9bE7a8db44b7DB897A34/0xB2E6E155f3c6A12FB0708B75224c50d6aE2b03FC?chain=8453&f=true' │  '3-R1'  │
│    5    │ '0x6b93690aad195a59823d2f70a3b1ffd516cae075-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'MAV-SPRMAV'  │ 140469.2725060374  │           0           │  156.566475745033  │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f', '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ] │ [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD', '0xC54Ff26fd5564Ff46b14d9825A2259a0d53Bf7d9' ] │  'https://app.mav.xyz/boosted-position/0x98e201327d272ac4F5aCEd3Cd41bc25C9Ce02156/0x6B93690Aad195A59823d2f70a3b1ffd516CaE075?chain=1&f=true'   │  '0-R1'  │
│    6    │  '0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c-zksync'  │  'Zksync'  │ 'maverick-v2' │  'ETH-WSTETH'  │ 131625.54879384907 │           0           │         0          │                                               []                                               │ [ '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', '0x703b52F2b28fEbcB60E1372858AF5b18849FE867' ] │ 'https://app.mav.xyz/boosted-position/0x2c5AB8079D90bc47F8FaAB841144CB9408C2a183/0x5F2f2D05618b5A2e3d0E32604ac02eFc3Fca888c?chain=324&f=true'  │  '1-R1'  │
│    7    │  '0x7b069aa2b92d356db4e6b9552d541f5aab4415fc-zksync'  │  'Zksync'  │ 'maverick-v2' │ 'USDC-USDC.E'  │ 82860.12379670898  │  0.5562971172195368   │ 10.95588272309535  │                        [ '0x787c09494Ec8Bcb24DcAf8659E7d5D69979eE508' ]                        │ [ '0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4', '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4' ] │ 'https://app.mav.xyz/boosted-position/0x79DBdB18405395d06207b7E1d6f991a8579be505/0x7b069AA2b92d356Db4e6b9552D541f5AaB4415Fc?chain=324&f=true'  │  '7-R1'  │
│    8    │ '0x473599561e8b1a9e4e968ed69511abe87755a689-ethereum' │ 'Ethereum' │ 'maverick-v2' │  'USDC-USDT'   │ 82689.78984548428  │           0           │ 24.777086618886823 │                        [ '0x7448c7456a97769F6cD04F1E83A4a23cCdC46aBD' ]                        │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │  'https://app.mav.xyz/boosted-position/0x83Ca368ad3AAa9441dc00BE2f3917faA1B08BD60/0x473599561E8b1A9e4e968ed69511abe87755a689?chain=1&f=true'   │  '4-R1'  │
│    9    │   '0xd0558ca56f2fc71567851c2ad02e96f1e81c7ff4-base'   │   'Base'   │ 'maverick-v2' │  'USDC-USDBC'  │ 71433.05077518361  │  1.7940891934375622   │ 5.930612991925964  │                        [ '0x64b88c73A5DfA78D1713fE1b4c69a22d7E0faAa7' ]                        │ [ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA' ] │ 'https://app.mav.xyz/boosted-position/0xe6f8011777BEc282C71aA374651b08Fc34C37a9e/0xd0558Ca56F2fC71567851c2Ad02e96F1E81C7ff4?chain=8453&f=true' │  '9-R1'  │
└─────────┴───────────────────────────────────────────────────────┴────────────┴───────────────┴────────────────┴────────────────────┴───────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

what i meant is to refactor the code using our sdk instead of fetching from our api (see readme)

@gte620v
Copy link
Author

gte620v commented Oct 24, 2024

@slasher125 sorry, i still dont understand.

I am using utils.getData from the sdk. This adapter has exactly the form and structure of the example in the readme from https://github.com/DefiLlama/yield-server?tab=readme-ov-file#adapter-module-structure where I pull data using getData, shape the data into the return format, and then return it.

Please do let me know more specifically which part of the code is not using the SDK in the way that it should and I will fix it. thanks!

@slasher125
Copy link
Collaborator

i'm referring to the defillama sdk https://www.npmjs.com/package/@defillama/sdk which we use across our server repos

using this (there are tons of examples in this repo alone) makes the adapter much more robust vs relying on the api + makes it transparent how apy values are being calculated.

@gte620v
Copy link
Author

gte620v commented Oct 24, 2024

so you are saying i cant use the convention in the readme and just hit an api and instead have to reconstruct the apy from scratch using blockchain calls?

@slasher125
Copy link
Collaborator

yes; there is more info here: https://github.com/DefiLlama/yield-server?tab=readme-ov-file#data-sources

@gte620v gte620v marked this pull request as draft October 27, 2024 20:36
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