DefiLlama / yield-server

140 stars 779 forks source link

Notional V3: migrate yield data url #1473

Closed jeffywu closed 1 month ago

jeffywu commented 1 month ago

Not sure how to change these to use the decentralized graph URL, but the subgraph ids are here:

const SUBGRAPHS = {
  // arbitrum graph id: 'DnghsCNvJ4xmp4czX8Qn7UpkJ8HyHjy7cFN4wcH91Nrx',
  arbitrum:
    'https://api.studio.thegraph.com/query/60626/notional-v3-arbitrum/version/latest',
  // ethereum graph id: '4oVxkMtN4cFepbiYrSKz1u6HWnJym435k5DQRAFt2vHW',
  ethereum:
    'https://api.studio.thegraph.com/query/60626/notional-v3-mainnet/version/latest',
};
llamatester commented 1 month ago

The notional-v3 adapter exports pools:

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

Nb of pools: 116

Sample pools:
┌─────────┬───────────────────────────────────────────────────────────────────────────────┬────────────┬───────────────┬───────────────────────┬──────────────────────────────────────────────────┬─────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────┬────────────────────┬─────────────────────┬───────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────┐
│ (index) │                                     pool                                      │   chain    │    project    │        symbol         │                 underlyingTokens                 │              poolMeta               │                                         url                                          │       tvlUsd       │       apyBase       │ apyBaseBorrow │   totalSupplyUsd   │   totalBorrowUsd   │                                          rewardTokens                                          │     apyReward      │
├─────────┼───────────────────────────────────────────────────────────────────────────────┼────────────┼───────────────┼───────────────────────┼──────────────────────────────────────────────────┼─────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┼────────────────────┼─────────────────────┼───────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────┤
│    0    │             '0x4a9e282635567cc4d3c6a24e16c2335f10dee9b8-ethereum'             │ 'ethereum' │ 'notional-v3' │        'pETH'         │ [ '0x0000000000000000000000000000000000000000' ] │           'Variable Lend'           │                 'https://notional.finance/lend-variable/mainnet/ETH'                 │ 3228257.216521098  │      0.1335598      │   1.1379187   │  4083136.12954299  │  854878.913021892  │                                                                                                │                    │
│    1    │             '0x2920f9fc667e780c0cb5a78a104d21413377f97e-ethereum'             │ 'ethereum' │ 'notional-v3' │        'nUSDC'        │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │          'Liquidity Token'          │              'https://notional.finance/liquidity-variable/mainnet/USDC'              │ 3048498.4293654067 │      6.8445928      │               │                    │                    │                        [ '0xcfeaead4947f0705a14ec42ac3d44129e1ef3ed5' ]                        │ 4.504432363257372  │
│    2    │        '0x2920f9fc667e780c0cb5a78a104d21413377f97e-ethereum-leveraged'        │ 'ethereum' │ 'notional-v3' │        'nUSDC'        │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │     'Leveraged Liquidity Token'     │  'https://notional.finance/liquidity-leveraged/mainnet/CreateLeveragedNToken/USDC'   │ 3048498.4293654067 │      7.9853226      │               │                    │                    │                        [ '0xcfeaead4947f0705a14ec42ac3d44129e1ef3ed5' ]                        │ 20.269945634658175 │
│    3    │             '0x3410463726a7a22ce0809367a4418fe82fc31fd3-ethereum'             │ 'ethereum' │ 'notional-v3' │        'nETH'         │ [ '0x0000000000000000000000000000000000000000' ] │          'Liquidity Token'          │              'https://notional.finance/liquidity-variable/mainnet/ETH'               │ 2833136.391678561  │      0.9361975      │               │                    │                    │                        [ '0xcfeaead4947f0705a14ec42ac3d44129e1ef3ed5' ]                        │  3.91872061917098  │
│    4    │        '0x3410463726a7a22ce0809367a4418fe82fc31fd3-ethereum-leveraged'        │ 'ethereum' │ 'notional-v3' │        'nETH'         │ [ '0x0000000000000000000000000000000000000000' ] │     'Leveraged Liquidity Token'     │   'https://notional.finance/liquidity-leveraged/mainnet/CreateLeveragedNToken/ETH'   │ 2833136.391678561  │ 0.23017330000000025 │               │                    │                    │                        [ '0xcfeaead4947f0705a14ec42ac3d44129e1ef3ed5' ]                        │ 17.63424278626941  │
│    5    │ '0x00000000000000000000000000000000000000000000000000030066e4d20001-ethereum' │ 'ethereum' │ 'notional-v3' │        'fUSDC'        │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │ 'Fixed Lend Maturing On 2024-09-14' │                  'https://notional.finance/lend-fixed/mainnet/USDC'                  │  2551489.05455155  │      9.2193275      │   9.2193275   │ 1366706.1226360975 │ 2999638.9167710175 │                                                                                                │                    │
│    6    │             '0xeeb885af7c8075aa3b93e2f95e1c0bd51c758f91-ethereum'             │ 'ethereum' │ 'notional-v3' │ 'Aura: GHO/USDT/USDC' │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │          'Leveraged Vault'          │ 'https://notional.finance/vaults/mainnet/0xeeb885af7c8075aa3b93e2f95e1c0bd51c758f91' │ 2491327.4759443174 │ 40.285205069407255  │               │                    │                    │                                                                                                │                    │
│    7    │ '0x00000000000000000000000000000000000000000000000000010066e4d20001-ethereum' │ 'ethereum' │ 'notional-v3' │        'fETH'         │ [ '0x0000000000000000000000000000000000000000' ] │ 'Fixed Lend Maturing On 2024-09-14' │                  'https://notional.finance/lend-fixed/mainnet/ETH'                   │ 2204237.488292287  │      3.9381628      │   3.9381628   │ 557632.2329751302  │ 1260224.0861152813 │                                                                                                │                    │
│    8    │             '0xb9bfbb35c2ed588a42f9fd1120929c607b463192-arbitrum'             │ 'arbitrum' │ 'notional-v3' │        'pWBTC'        │ [ '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f' ] │           'Variable Lend'           │                'https://notional.finance/lend-variable/arbitrum/WBTC'                │  1606436.54783069  │      0.0054353      │   0.5699973   │  1741678.56797685  │  135242.02014616   │                                                                                                │                    │
│    9    │             '0x18b0fc5a233acf1586da7c199ca9e3f486305a29-arbitrum'             │ 'arbitrum' │ 'notional-v3' │        'nETH'         │ [ '0x0000000000000000000000000000000000000000' ] │          'Liquidity Token'          │              'https://notional.finance/liquidity-variable/arbitrum/ETH'              │ 1590408.3351124802 │      1.6610423      │               │                    │                    │ [ '0x019be259bc299f3f653688c7655c87f998bc7bc1', '0x912ce59144191c1204e64559fe8253a0e49e6548' ] │ 5.217734190546956  │
└─────────┴───────────────────────────────────────────────────────────────────────────────┴────────────┴───────────────┴───────────────────────┴──────────────────────────────────────────────────┴─────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┴────────────────────┴─────────────────────┴───────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama