Skip to content

fix: sir adapter#2278

Merged
0xkr3p merged 1 commit intoDefiLlama:masterfrom
0xkr3p:fix/sir-adapter
Jan 21, 2026
Merged

fix: sir adapter#2278
0xkr3p merged 1 commit intoDefiLlama:masterfrom
0xkr3p:fix/sir-adapter

Conversation

@0xkr3p
Copy link
Contributor

@0xkr3p 0xkr3p commented Jan 21, 2026

Summary by CodeRabbit

  • Chores
    • Updated backend data source configuration to use production endpoints, improving service reliability and data consistency across supported networks.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 21, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Updated public subgraph endpoints for Ethereum and Hyperliquid from staging-like 2.0.3/gn paths to production prod/gn paths. No logic, error handling, or control flow modifications.

Changes

Cohort / File(s) Summary
Subgraph Endpoint Configuration
src/adaptors/sir/index.js
Updated 2 endpoint URLs from staging (2.0.3/gn) to production (prod/gn) for Ethereum and Hyperliquid subgraphs. No functional logic changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 From staging we hop to production so grand,
Two endpoints now point to the promised land,
URLs updated with care and with cheer,
Sir's subgraphs are ready, the prod path is clear! ✨

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@llamatester
Copy link

The sir adapter exports pools:

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

Nb of pools: 16
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────────────┬──────────────────┬─────────┬───────────────┬────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬───────────────────────┬─────────────────────────────────────────────────┐
│ (index) │ pool                                                          │ chain            │ project │ symbol        │ tvlUsd             │ apyBase            │ apyReward          │ rewardTokens                                     │ underlyingTokens                                 │ poolMeta              │ url                                             │
├─────────┼───────────────────────────────────────────────────────────────┼──────────────────┼─────────┼───────────────┼────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼───────────────────────┼─────────────────────────────────────────────────┤
│ 0       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-2-ethereum'       │ 'Ethereum'       │ 'sir'   │ 'WETH-USDC'   │ 17203.40160285429  │ 3.202727993592469  │ 247.31733281938486 │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 'Leverage ratio: 2'   │ 'https://app.sir.trading/liquidity?vault=0x02'  │
│ 1       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-10-ethereum'      │ 'Ethereum'       │ 'sir'   │ 'HOHM-SUSDS'  │ 9538.352874315075  │ 1.5570235903435536 │ 236.89025305859852 │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0x1db1591540d7a6062be0837ca3c808add28844f6' ] │ 'Leverage ratio: 2'   │ 'https://app.sir.trading/liquidity?vault=0x0a'  │
│ 2       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-14-ethereum'      │ 'Ethereum'       │ 'sir'   │ 'PNKSTR-WETH' │ 7676.47939639713   │ 3.676229471225745  │ 263.42665954793324 │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0xc50673edb3a7b94e8cad8a7d4e0cd68864e33edf' ] │ 'Leverage ratio: 2'   │ 'https://app.sir.trading/liquidity?vault=0x0e'  │
│ 3       │ '0xa06d0c5a8adb7134903ca13d1fc0641731e2b766-1-hyperliquid-l1' │ 'Hyperliquid L1' │ 'sir'   │ 'WHYPE-USD₮0' │ 4656.021162769841  │ 1.081656844129264  │ 868.8570941748038  │ [ '0xa06d0c5a8adb7134903ca13d1fc0641731e2b766' ] │ [ '0x5555555555555555555555555555555555555555' ] │ 'Leverage ratio: 2'   │ 'https://hype.sir.trading/liquidity?vault=0x01' │
│ 4       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-1-ethereum'       │ 'Ethereum'       │ 'sir'   │ 'WBTC-USDT'   │ 3784.365383105884  │ 0                  │ 217.90504930655925 │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599' ] │ 'Leverage ratio: 2'   │ 'https://app.sir.trading/liquidity?vault=0x01'  │
│ 5       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-5-ethereum'       │ 'Ethereum'       │ 'sir'   │ 'REKT-WETH'   │ 2272.261220365086  │ 0                  │ 181.4562839945259  │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0xdd3b11ef34cd511a2da159034a05fcb94d806686' ] │ 'Leverage ratio: 2'   │ 'https://app.sir.trading/liquidity?vault=0x05'  │
│ 6       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-13-ethereum'      │ 'Ethereum'       │ 'sir'   │ 'WLFI-USDT'   │ 2223.979197854619  │ 508.7477216501764  │ 547.4551984009379  │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0xda5e1988097297dcdc1f90d4dfe7909e847cbef6' ] │ 'Leverage ratio: 2'   │ 'https://app.sir.trading/liquidity?vault=0x0d'  │
│ 7       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-9-ethereum'       │ 'Ethereum'       │ 'sir'   │ 'CVX-CRV'     │ 1333.7119685912016 │ 0                  │ 185.48956012487326 │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' ] │ 'Leverage ratio: 3'   │ 'https://app.sir.trading/liquidity?vault=0x09'  │
│ 8       │ '0xa06d0c5a8adb7134903ca13d1fc0641731e2b766-2-hyperliquid-l1' │ 'Hyperliquid L1' │ 'sir'   │ 'SWAP-WHYPE'  │ 831.1419986804375  │ 0                  │ 605.0718571435235  │ [ '0xa06d0c5a8adb7134903ca13d1fc0641731e2b766' ] │ [ '0x03832767bdf9a8ef007449942125ad605acfadb8' ] │ 'Leverage ratio: 2'   │ 'https://hype.sir.trading/liquidity?vault=0x02' │
│ 9       │ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2-23-ethereum'      │ 'Ethereum'       │ 'sir'   │ 'PNKSTR-WETH' │ 753.8346506151872  │ 0                  │ 0                  │ [ '0x4da4fb565dcd5d5c5db495205c109ba983a8aba2' ] │ [ '0xc50673edb3a7b94e8cad8a7d4e0cd68864e33edf' ] │ 'Leverage ratio: 1.5' │ 'https://app.sir.trading/liquidity?vault=0x17'  │
└─────────┴───────────────────────────────────────────────────────────────┴──────────────────┴─────────┴───────────────┴────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴───────────────────────┴─────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@0xkr3p 0xkr3p merged commit 675c46d into DefiLlama:master Jan 21, 2026
1 of 2 checks 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.

2 participants