Skip to content

superform: add Flare (chain id 14) to CHAIN_MAPPING#2807

Open
vikramarun wants to merge 1 commit into
DefiLlama:masterfrom
vikramarun:superform-add-flare
Open

superform: add Flare (chain id 14) to CHAIN_MAPPING#2807
vikramarun wants to merge 1 commit into
DefiLlama:masterfrom
vikramarun:superform-add-flare

Conversation

@vikramarun

@vikramarun vikramarun commented Jul 11, 2026

Copy link
Copy Markdown

Routes chain_id 14 vaults from the /supervaults API through the flare chain slug for on-chain calls.

Summary by CodeRabbit

  • Bug Fixes
    • Added support for displaying SuperVaults on the Flare network.
    • Flare vaults are now included in the available pool listings.

Routes chain_id 14 vaults from the /supervaults API through the
flare chain slug for on-chain calls.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ce52c07e-a2d3-4eb7-ac63-d766e59f4929

📥 Commits

Reviewing files that changed from the base of the PR and between 0254486 and 5c95460.

📒 Files selected for processing (1)
  • src/adaptors/superform/index.js

📝 Walkthrough

Walkthrough

The Superform adaptor maps SuperVault API entries with chain_id 14 to flare, allowing their vaults and pools to be included in chain-based processing.

Changes

Superform Flare chain support

Layer / File(s) Summary
Add Flare chain mapping
src/adaptors/superform/index.js
Adds chain id 14 to CHAIN_MAPPING with the name flare.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding Flare chain id 14 to Superform's chain mapping.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@github-actions

Copy link
Copy Markdown

The superform adapter exports pools:

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

Nb of pools: 9
 

Sample pools:
┌─────────┬─────────────────────────────────────────────────────────────────┬────────────┬─────────────┬──────────────┬────────────────────┬──────────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────┬───────────────────────────────────────────────────────────────────────────────────┬────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool                                                            │ chain      │ project     │ symbol       │ tvlUsd             │ apyBase              │ pricePerShare      │ underlyingTokens                                 │ poolMeta     │ url                                                                               │ apyReward          │ rewardTokens                                     │
├─────────┼─────────────────────────────────────────────────────────────────┼────────────┼─────────────┼──────────────┼────────────────────┼──────────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────┼───────────────────────────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────┤
│ 0       │ 'superform-0xf6ebea08a0dfd44825f67fa9963911c81be2a947-ethereum' │ 'Ethereum' │ 'superform' │ 'superUSDC'  │ 7954475.43981999   │ 2.876068836963075    │ 1022727999999.9904 │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/1_0xf6ebea08a0dfd44825f67fa9963911c81be2a947'    │ 2.1371442580549793 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 1       │ 'superform-0xa036823b9a24f63c32553367bf181ee04229c3ac-ethereum' │ 'Ethereum' │ 'superform' │ 'superWETH'  │ 2621423.2611984047 │ 1.337885430959207    │ 1.0100685287957212 │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/1_0xa036823b9a24f63c32553367bf181ee04229c3ac'    │ 1.9827797861339647 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 2       │ 'superform-0x11820afe50ea96851ee2bdbae329d97771e41ec6-base'     │ 'Base'     │ 'superform' │ 'superUSDC'  │ 2200725.8507798156 │ 3.6020363320893534   │ 1017067999999.7463 │ [ '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/8453_0x11820afe50ea96851ee2bdbae329d97771e41ec6' │ 2.1371442580549793 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 3       │ 'superform-0x8c365af7094eaac29314edee577b435892ca93a3-ethereum' │ 'Ethereum' │ 'superform' │ 'superWBTC'  │ 1603466.4629292674 │ 0.06126804672292874  │ 10037037396.123255 │ [ '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/1_0x8c365af7094eaac29314edee577b435892ca93a3'    │ 1.7918020110968167 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 4       │ 'superform-0x2c71f70e2ec720ae061ae7e0316fc9654d94f417-base'     │ 'Base'     │ 'superform' │ 'sUP'        │ 820744.8430089817  │ 10.384717267556987   │ 1.1440938236915958 │ [ '0x5b2193fdc451c1f847be09ca9d13a4bf60f8c86b' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/8453_0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' │                    │                                                  │
│ 5       │ 'superform-0xfc8a6526ffcd8248b8d0f8dac8037dbe438924ce-base'     │ 'Base'     │ 'superform' │ 'superCBBTC' │ 363987.9743338584  │ 0.003656203706747796 │ 10000101098.85962  │ [ '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/8453_0xfc8a6526ffcd8248b8d0f8dac8037dbe438924ce' │ 1.7918020110968167 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 6       │ 'superform-0x0e70c10fa06931f7b878653a15aecc86145c1af7-base'     │ 'Base'     │ 'superform' │ 'superWETH'  │ 290674.27543900575 │ 1.2061031997800287   │ 1.0055321327126612 │ [ '0x4200000000000000000000000000000000000006' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/8453_0x0e70c10fa06931f7b878653a15aecc86145c1af7' │ 1.9827797861339647 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 7       │ 'superform-0x34f90dfa0f1b2f691ee3a3a87954f8d282193c16-flare'    │ 'Flare'    │ 'superform' │ 'bizFXRP'    │ 285203.6292639707  │ 0.2505831406124148   │ 1000087999998.9331 │ [ '0xad552a648c74d49e10027ab8a618a3ad4901c5be' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/14_0x34f90dfa0f1b2f691ee3a3a87954f8d282193c16'   │ 1.9827797861339647 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
│ 8       │ 'superform-0xb7c1c8f7191c7d76b5c6650a6fb20f6f8027bf0d-flare'    │ 'Flare'    │ 'superform' │ 'bizUSDT0'   │ 239768.1999139808  │ 11.531562405637153   │ 1005328999998.3104 │ [ '0xe7cd86e13ac4309349f30b3435a9d337750fc82d' ] │ 'SuperVault' │ 'https://app.superform.xyz/vault/14_0xb7c1c8f7191c7d76b5c6650a6fb20f6f8027bf0d'   │ 2.1371442580549793 │ [ '0x2c71f70e2ec720ae061ae7e0316fc9654d94f417' ] │
└─────────┴─────────────────────────────────────────────────────────────────┴────────────┴─────────────┴──────────────┴────────────────────┴──────────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────┴───────────────────────────────────────────────────────────────────────────────────┴────────────────────┴──────────────────────────────────────────────────┘

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.

1 participant