DefiLlama / yield-server

140 stars 779 forks source link

feat(compound-v3): Add USDC Optimism #1416

Closed 0xruhum closed 3 months ago

0xruhum commented 3 months ago

Adds the USDC Optimism pool: https://app.compound.finance/markets/usdc-op

llamatester commented 3 months ago

The compound-v3 adapter exports pools:

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

Nb of pools: 40

Sample pools:
┌─────────┬─────────────────────────────────────────────────────────────┬──────────┬────────────┬───────────────┬────────────────────┬─────┬──────────────────────────────────────────────────┬────────────────────┬───────┬─────────────┬────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬───────────────────┬────────────────────┬────────────────────┐
│ (index) │                            pool                             │  symbol  │   chain    │    project    │       tvlUsd       │ apy │                 underlyingTokens                 │   totalSupplyUsd   │  ltv  │  poolMeta   │ borrowable │      apyBase       │     apyReward      │                   rewardTokens                   │   apyBaseBorrow   │  apyRewardBorrow   │   totalBorrowUsd   │
├─────────┼─────────────────────────────────────────────────────────────┼──────────┼────────────┼───────────────┼────────────────────┼─────┼──────────────────────────────────────────────────┼────────────────────┼───────┼─────────────┼────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼───────────────────┼────────────────────┼────────────────────┤
│    0    │    '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599-cUSDCv3'     │  'WBTC'  │ 'Ethereum' │ 'compound-v3' │ 432167596.24807936 │  0  │ [ '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599' ] │ 432167596.24807936 │  0.8  │ 'USDC-pool' │   false    │                    │                    │                                                  │                   │                    │                    │
│    1    │    '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2-cUSDCv3'     │  'WETH'  │ 'Ethereum' │ 'compound-v3' │  312143730.130966  │  0  │ [ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' ] │  312143730.130966  │ 0.825 │ 'USDC-pool' │   false    │                    │                    │                                                  │                   │                    │                    │
│    2    │        '0xc3d688B66703497DAA19211EEdff47f25384cdc3'         │  'USDC'  │ 'Ethereum' │ 'compound-v3' │ 146860399.53546673 │     │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │ 555274556.7149737  │   0   │ 'USDC-pool' │    true    │   5.516381204568   │ 0.4269052347767739 │ [ '0xc00e94Cb662C3520282E6f5717214004A7f26888' ] │ 7.626860722512001 │  0.27291026288047  │ 408414157.17950696 │
│    3    │    '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0-cWETHv3'     │ 'wstETH' │ 'Ethereum' │ 'compound-v3' │ 106378212.73136467 │  0  │ [ '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0' ] │ 106378212.73136467 │  0.9  │ 'ETH-pool'  │   false    │                    │                    │                                                  │                   │                    │                    │
│    4    │        '0xA17581A9E3356d9A858b789D68B4d866e593aE94'         │  'ETH'   │ 'Ethereum' │ 'compound-v3' │ 53388673.665437266 │     │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 158848395.22524533 │   0   │ 'ETH-pool'  │    true    │  1.2282130680624   │ 0.6917951537637584 │ [ '0xc00e94Cb662C3520282E6f5717214004A7f26888' ] │  1.9294585354368  │ 0.297718404103018  │ 105459721.55980806 │
│    5    │    '0xc00e94Cb662C3520282E6f5717214004A7f26888-cUSDCv3'     │  'COMP'  │ 'Ethereum' │ 'compound-v3' │ 34590420.26379061  │  0  │ [ '0xc00e94Cb662C3520282E6f5717214004A7f26888' ] │ 34590420.26379061  │ 0.65  │ 'USDC-pool' │   false    │                    │                    │                                                  │                   │                    │                    │
│    6    │    '0x9c4ec768c28520B50860ea7a15bd7213a9fF58bf-arbitrum'    │  'USDC'  │ 'Arbitrum' │ 'compound-v3' │ 21945845.032326747 │     │ [ '0xaf88d065e77c8cC2239327C5EDb3A432268e5831' ] │ 38415496.54498909  │   0   │ 'USDC-pool' │    true    │ 3.2154305979744002 │ 0.6947119626245198 │ [ '0x354A6dA3fcde098F8389cad84b0182725c6C91dE' ] │  5.071271583312   │ 0.7625492251772277 │ 16469651.51266234  │
│    7    │ '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f-cUSDCv3-native' │  'WBTC'  │ 'Arbitrum' │ 'compound-v3' │  17200539.9015966  │  0  │ [ '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f' ] │  17200539.9015966  │ 0.75  │ 'USDC-pool' │   false    │                    │                    │                                                  │                   │                    │                    │
│    8    │    '0x514910771AF9Ca656af840dff83E8264EcF986CA-cUSDCv3'     │  'LINK'  │ 'Ethereum' │ 'compound-v3' │ 15946590.618653882 │  0  │ [ '0x514910771AF9Ca656af840dff83E8264EcF986CA' ] │ 15946590.618653882 │ 0.79  │ 'USDC-pool' │   false    │                    │                    │                                                  │                   │                    │                    │
│    9    │    '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6-cUSDCv3'     │  'WBTC'  │ 'Polygon'  │ 'compound-v3' │  14787496.986453   │  0  │ [ '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6' ] │  14787496.986453   │ 0.75  │ 'USDC-pool' │   false    │                    │                    │                                                  │                   │                    │                    │
└─────────┴─────────────────────────────────────────────────────────────┴──────────┴────────────┴───────────────┴────────────────────┴─────┴──────────────────────────────────────────────────┴────────────────────┴───────┴─────────────┴────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴───────────────────┴────────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama
slasher125 commented 3 months ago

ty, added here: 362129ee91bb187253600d42ea5ba7442051ce57