Skip to content

cbridge: read lp info from the celer.app host - #3285

Open
takinanton wants to merge 1 commit into
DefiLlama:masterfrom
takinanton:cbridge-live-host
Open

takinanton wants to merge 1 commit into
DefiLlama:masterfrom
takinanton:cbridge-live-host

Conversation

@takinanton

@takinanton takinanton commented Nov 29, 2026 •

Copy link
Copy Markdown

The adapter calls cbridge-prod2.celer.network which no longer resolves so cbridge has no pools on the yields page while the protocol still holds about $10M. Celer's own API docs now use cbridge-prod2.celer.app and it serves the same lp_info payload. On master npm run test --adapter=cbridge stops with getaddrinfo ENOTFOUND. With the new host it returns 268 pools and all 1882 tests pass. The largest are MANTA on Moonbeam at $2.06M and WETH on BSC at $605k.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Updated the source used to retrieve liquidity provider information.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The cBridge LP information endpoint hostname changes to cbridge-prod2.celer.app. Response processing remains unchanged.

Changes: cBridge endpoint

Layer / File(s) Summary
LP information endpoint
src/adaptors/cbridge/index.js
topLvl now requests LP information from cbridge-prod2.celer.app instead of cbridge-prod2.celer.network.

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

Change: Bug fix

Suggested reviewers: slasher125

Merge Risk: Minimal · up to deb1f

This restores the cBridge pools on the yields page by pointing the adapter at the working host. The new endpoint's response was checked and is compatible, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the cbridge adapter and the change of reading lp info from the celer.app host. The raw summary confirms that the topLvl function in src/adaptors/cbridge/index.js now requests LP inform…
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.
Full details: Title check

Explanation

The title names the cbridge adapter and the change of reading lp info from the celer.app host. The raw summary confirms that the topLvl function in src/adaptors/cbridge/index.js now requests LP information from cbridge-prod2.celer.app instead of cbridge-prod2.celer.network. The title matches the single change in the changeset and the PR objectives.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f20ef1ea-53b9-4499-9c3a-915bbdd6adca
Commits

Reviewing files that changed from the base of the PR and between 80986c4 and deb1f21.

Files selected for processing: 1

  • src/adaptors/cbridge/index.js

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@github-actions

Copy link
Copy Markdown

The cbridge adapter exports pools:

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

Nb of pools: 268
 

Sample pools:
┌─────────┬───────────────────┬──────────────┬───────────┬──────────┬────────────────────┬──────────────────────┬─────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool              │ chain        │ project   │ symbol   │ tvlUsd             │ apyBase              │ apyReward           │ rewardTokens                                                                                   │ underlyingTokens                                 │
├─────────┼───────────────────┼──────────────┼───────────┼──────────┼────────────────────┼──────────────────────┼─────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────┤
│ 0       │ 'MANTA-1284'      │ 'Moonbeam'   │ 'cbridge' │ 'MANTA'  │ 2055411.0423817437 │ 0                    │ 0                   │ []                                                                                             │ [ '0xfFFffFFf7D3875460d4509eb8d0362c611B4E841' ] │
│ 1       │ 'WETH-56'         │ 'Binance'    │ 'cbridge' │ 'WETH'   │ 606203.2265056658  │ 0.019789770956627588 │ 0.29175362742210476 │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0x2170Ed0880ac9A755fd29B2688956BD959F933F8' ] │
│ 2       │ 'USDC-1666600000' │ 'Harmony'    │ 'cbridge' │ 'USDC'   │ 549224.5894133333  │ 0                    │ 0                   │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0x985458E523dB3d53125813eD68c274899e9DfAb4' ] │
│ 3       │ 'USDT-137'        │ 'Polygon'    │ 'cbridge' │ 'USDT'   │ 476095.65501389094 │ 0.11957191966655475  │ 0.3715366691893448  │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0xc2132D05D31c914a87C6611C10748AEb04B58e8F' ] │
│ 4       │ 'USDC-1'          │ 'Ethereum'   │ 'cbridge' │ 'USDC'   │ 280707.7619982416  │ 0                    │ 0.6300573558387019  │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' ] │
│ 5       │ 'USDT-1'          │ 'Ethereum'   │ 'cbridge' │ 'USDT'   │ 275226.8309226489  │ 0.6314465745744691   │ 0.6426953116685546  │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0xdAC17F958D2ee523a2206206994597C13D831ec7' ] │
│ 6       │ 'PENDLE-42161'    │ 'Arbitrum'   │ 'cbridge' │ 'PENDLE' │ 273044.2201151305  │ 0                    │ 0                   │ []                                                                                             │ [ '0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8' ] │
│ 7       │ 'WETH-1666600000' │ 'Harmony'    │ 'cbridge' │ 'WETH'   │ 242831.59101925    │ 0                    │ 0                   │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0x6983D1E6DEf3690C4d616b13597A09e6193EA013' ] │
│ 8       │ 'USDC-137'        │ 'Polygon'    │ 'cbridge' │ 'USDC'   │ 175030.58525828127 │ 0                    │ 0.20209266857792652 │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667' ]                                               │ [ '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174' ] │
│ 9       │ 'USDT-10'         │ 'OP Mainnet' │ 'cbridge' │ 'USDT'   │ 160591.49061161844 │ 0                    │ 0                   │ [ '0x4F9254C83EB525f9FCf346490bbb3ed28a81C667', '0x4200000000000000000000000000000000000042' ] │ [ '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58' ] │
└─────────┴───────────────────┴──────────────┴───────────┴──────────┴────────────────────┴──────────────────────┴─────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

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