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

Add retro adaptor #1118

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Add retro adaptor #1118

merged 2 commits into from
Dec 14, 2023

Conversation

styopaiv
Copy link
Contributor

No description provided.

@llamatester
Copy link

The retro adapter exports pools:

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

Nb of pools: 74
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬─────────┬─────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                         pool                         │   chain   │ project │         symbol          │       tvlUsd       │      apyBase       │                   rewardTokens                   │                                        underlyingTokens                                        │                                                                                   url                                                                                   │
├─────────┼──────────────────────────────────────────────────────┼───────────┼─────────┼─────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0x336536f5bb478d8624ddce0942fdef5c92bc4662-polygon' │ 'Polygon' │ 'retro' │   'WBTC/WETH (0.05%)'   │ 1570673.5497436877 │ 23.239058852766764 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6', '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6&currencyB=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&rangeType=automatic' │
│    1    │ '0xe7806b5ba13d4b2ab3eab3061cb31d4a4f3390aa-polygon' │ 'Polygon' │ 'retro' │  'WMATIC/WETH (0.05%)'  │ 1451845.0926390705 │ 57.995389220996536 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&currencyB=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&rangeType=automatic' │
│    2    │ '0x26304acfd64deea7f585fad9e56e4a5b2fa7443d-polygon' │ 'Polygon' │ 'retro' │   'CASH/STAR (0.05%)'   │ 532948.6869639461  │ 16.885475519454857 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x5D066D022EDE10eFa2717eD3D79f22F949F8C175', '0xC19669A405067927865B40Ea045a2baabbbe57f5' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x5d066d022ede10efa2717ed3d79f22f949f8c175&currencyB=0xc19669a405067927865b40ea045a2baabbbe57f5&rangeType=automatic' │
│    3    │ '0xbe4e30b74b558e41f5837dc86562df44af57a013-polygon' │ 'Polygon' │ 'retro' │  'WMATIC/USDC (0.05%)'  │ 479216.4374222593  │ 124.23379977302423 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&currencyB=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&rangeType=automatic' │
│    4    │ '0xa7565dfeb16010153d3368e002ec53cbfaf96e05-polygon' │ 'Polygon' │ 'retro' │   'USDC/USDT (0.01%)'   │ 452115.65389782365 │ 47.00171919704321  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', '0xc2132D05D31c914a87C6611C10748AEb04B58e8F' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&currencyB=0xc2132d05d31c914a87c6611c10748aeb04b58e8f&rangeType=automatic' │
│    5    │ '0xe058e1ffff9b13d3fcd4803fdb55d1cc2fe07ddc-polygon' │ 'Polygon' │ 'retro' │   'USDC/WETH (0.05%)'   │ 385095.23278896755 │ 50.80824388660447  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&currencyB=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&rangeType=automatic' │
│    6    │ '0x11a04129c6ec84038d2d1723506c2f8d27a1a03a-polygon' │ 'Polygon' │ 'retro' │    'CASH/RETRO (1%)'    │ 322032.1953412197  │ 52.87833670014844  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x5D066D022EDE10eFa2717eD3D79f22F949F8C175', '0xBFA35599c7AEbb0dAcE9b5aa3ca5f2a79624D8Eb' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x5d066d022ede10efa2717ed3d79f22f949f8c175&currencyB=0xbfa35599c7aebb0dace9b5aa3ca5f2a79624d8eb&rangeType=automatic' │
│    7    │ '0x2589469b7a72802ce02484f053cb6df869eb2689-polygon' │ 'Polygon' │ 'retro' │ 'WMATIC/MaticX (0.01%)' │ 248014.37974028994 │ 11.557582292269357 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', '0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&currencyB=0xfa68fb4628dff1028cfec22b4162fccd0d45efb6&rangeType=automatic' │
│    8    │ '0xce58cd86a6043973a96a6a2a50ef1f6351d7dbce-polygon' │ 'Polygon' │ 'retro' │    'ICHI/CASH (1%)'     │ 224158.91651818668 │ 19.843329465256666 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x111111517e4929D3dcbdfa7CCe55d30d4B6BC4d6', '0x5D066D022EDE10eFa2717eD3D79f22F949F8C175' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x111111517e4929d3dcbdfa7cce55d30d4b6bc4d6&currencyB=0x5d066d022ede10efa2717ed3d79f22f949f8c175&rangeType=automatic' │
│    9    │ '0x184a51465925ab8a0025e47a00cab6d3769b5487-polygon' │ 'Polygon' │ 'retro' │  'WETH/frxETH (0.01%)'  │ 141964.70670181833 │ 13.215358291515434 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', '0xEe327F889d5947c1dc1934Bb208a1E792F953E96' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&currencyB=0xee327f889d5947c1dc1934bb208a1e792f953e96&rangeType=automatic' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴─────────┴─────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

project: 'retro',
symbol: pool.symbol,
tvlUsd: tvl,
apyBase: merklPool?.meanAPR ?? 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if pool reward is oRetro token then it should be apyReward instead of base apy

@llamatester
Copy link

The retro adapter exports pools:

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

Nb of pools: 74
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬─────────┬─────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │                         pool                         │   chain   │ project │         symbol          │       tvlUsd       │     apyReward      │                   rewardTokens                   │                                        underlyingTokens                                        │                                                                                   url                                                                                   │
├─────────┼──────────────────────────────────────────────────────┼───────────┼─────────┼─────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│    0    │ '0x336536f5bb478d8624ddce0942fdef5c92bc4662-polygon' │ 'Polygon' │ 'retro' │   'WBTC/WETH (0.05%)'   │ 1585856.3874021517 │ 23.339098491900458 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6', '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6&currencyB=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&rangeType=automatic' │
│    1    │ '0xe7806b5ba13d4b2ab3eab3061cb31d4a4f3390aa-polygon' │ 'Polygon' │ 'retro' │  'WMATIC/WETH (0.05%)'  │ 1476387.696876918  │ 58.06237530793881  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&currencyB=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&rangeType=automatic' │
│    2    │ '0x26304acfd64deea7f585fad9e56e4a5b2fa7443d-polygon' │ 'Polygon' │ 'retro' │   'CASH/STAR (0.05%)'   │ 534589.1278143437  │ 17.133736753327163 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x5D066D022EDE10eFa2717eD3D79f22F949F8C175', '0xC19669A405067927865B40Ea045a2baabbbe57f5' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x5d066d022ede10efa2717ed3d79f22f949f8c175&currencyB=0xc19669a405067927865b40ea045a2baabbbe57f5&rangeType=automatic' │
│    3    │ '0xbe4e30b74b558e41f5837dc86562df44af57a013-polygon' │ 'Polygon' │ 'retro' │  'WMATIC/USDC (0.05%)'  │ 475681.9548338359  │ 127.40994288111908 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&currencyB=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&rangeType=automatic' │
│    4    │ '0xa7565dfeb16010153d3368e002ec53cbfaf96e05-polygon' │ 'Polygon' │ 'retro' │   'USDC/USDT (0.01%)'   │ 464640.23428919795 │ 46.50677916888036  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', '0xc2132D05D31c914a87C6611C10748AEb04B58e8F' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&currencyB=0xc2132d05d31c914a87c6611c10748aeb04b58e8f&rangeType=automatic' │
│    5    │ '0xe058e1ffff9b13d3fcd4803fdb55d1cc2fe07ddc-polygon' │ 'Polygon' │ 'retro' │   'USDC/WETH (0.05%)'   │ 384989.5311203455  │ 51.61429609026197  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174', '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&currencyB=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&rangeType=automatic' │
│    6    │ '0x11a04129c6ec84038d2d1723506c2f8d27a1a03a-polygon' │ 'Polygon' │ 'retro' │    'CASH/RETRO (1%)'    │ 326265.12009628187 │ 53.12385075500343  │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x5D066D022EDE10eFa2717eD3D79f22F949F8C175', '0xBFA35599c7AEbb0dAcE9b5aa3ca5f2a79624D8Eb' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x5d066d022ede10efa2717ed3d79f22f949f8c175&currencyB=0xbfa35599c7aebb0dace9b5aa3ca5f2a79624d8eb&rangeType=automatic' │
│    7    │ '0x2589469b7a72802ce02484f053cb6df869eb2689-polygon' │ 'Polygon' │ 'retro' │ 'WMATIC/MaticX (0.01%)' │ 252829.47381310654 │ 11.552635666007927 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', '0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&currencyB=0xfa68fb4628dff1028cfec22b4162fccd0d45efb6&rangeType=automatic' │
│    8    │ '0xce58cd86a6043973a96a6a2a50ef1f6351d7dbce-polygon' │ 'Polygon' │ 'retro' │    'ICHI/CASH (1%)'     │ 226195.66712575563 │ 19.977501998686094 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x111111517e4929D3dcbdfa7CCe55d30d4B6BC4d6', '0x5D066D022EDE10eFa2717eD3D79f22F949F8C175' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x111111517e4929d3dcbdfa7cce55d30d4b6bc4d6&currencyB=0x5d066d022ede10efa2717ed3d79f22f949f8c175&rangeType=automatic' │
│    9    │ '0x184a51465925ab8a0025e47a00cab6d3769b5487-polygon' │ 'Polygon' │ 'retro' │  'WETH/frxETH (0.01%)'  │ 143856.4561545626  │ 13.359907490475493 │ [ '0x3a29cab2e124919d14a6f735b6033a3aad2b260f' ] │ [ '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', '0xEe327F889d5947c1dc1934Bb208a1E792F953E96' ] │ 'https://app.retro.finance/liquidity/add?currencyA=0x7ceb23fd6bc0add59e62ac25578270cff1b9f619&currencyB=0xee327f889d5947c1dc1934bb208a1e792f953e96&rangeType=automatic' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴─────────┴─────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@vrtnd vrtnd merged commit f65ce53 into DefiLlama:master Dec 14, 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