Skip to content

Add XOXNO Lending yield adapter (Stellar + MultiversX) - #2753

Open
mihaieremia wants to merge 11 commits into
DefiLlama:masterfrom
mihaieremia:codex/xoxno-lending-yields
Open

Add XOXNO Lending yield adapter (Stellar + MultiversX)#2753
mihaieremia wants to merge 11 commits into
DefiLlama:masterfrom
mihaieremia:codex/xoxno-lending-yields

Conversation

@mihaieremia

@mihaieremia mihaieremia commented Jun 22, 2026

Copy link
Copy Markdown

XOXNO Lending is an overcollateralized lending protocol on MultiversX and Stellar.

This PR adds the yield pools for both chains, with supply and borrow APYs, LTV and available liquidity. On Stellar the rates live on shared hubs and the risk parameters on isolated spokes, so spokes are emitted as routing rows like aave-v4 does. MultiversX is a flat market model, so each market is a normal pool.

It also fixes two things on the Stellar side: available borrow was reporting the borrow cap instead of the liquidity actually in the pool, and the pool token is now set explicitly since positions are NFTs rather than receipt tokens.

The second commit fixes the pool table in adapter PR comments, which has been empty for every adapter since CI moved to Node 24. It is unrelated to XOXNO and easy to drop if you would rather take it separately, but it cannot be tested on its own: a PR touching only the workflow runs no adapter and posts no comment. The comment on this PR shows it working.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 668b3362-3ff1-4879-82d9-cb217afc85ac

📥 Commits

Reviewing files that changed from the base of the PR and between 4fd5be2 and e3c395d.

📒 Files selected for processing (2)
  • src/adaptors/xoxno-lending/index.js
  • src/handlers/triggerAdaptor.js
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/adaptors/xoxno-lending/index.js

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

A XOXNO lending adaptor fetches per-chain exports, converts hub and spoke markets into DeFiLlama pool objects, validates hub numeric fields, and updates routing-only row filtering for xoxno-lending.

Changes

XOXNO Lending Adaptor

Layer / File(s) Summary
Configuration and export retrieval
src/adaptors/xoxno-lending/index.js
Defines the XOXNO API configuration, Stellar export path, request headers, timeout, URL helper, and JSON retrieval with chain-specific errors.
Market normalization and validation
src/adaptors/xoxno-lending/index.js
Converts hub markets into yield pools and spoke markets into routing_reserve pools. It converts APY values to percentages and filters non-finite values from hub pools.
Adaptor metadata and routing-row integration
src/adaptors/xoxno-lending/index.js, src/handlers/triggerAdaptor.js
Exports protocol ID 8109, the lending URL, timetravel: false, and apy. Routing-only rows are filtered for xoxno-lending.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to e3c39

This change adds XOXNO Stellar lending yield pools through the existing adapter pipeline with bounded requests, response validation, and filtering of routing-only records. No actionable merge-blocking risk remains after normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant apy
  participant getExport
  participant XOXNO_API as XOXNO Lending API
  participant triggerAdaptor

  apy->>getExport: request configured chain export
  getExport->>XOXNO_API: fetch export with timeout and User-Agent
  XOXNO_API-->>getExport: return JSON lending data
  getExport-->>apy: provide market export
  apy->>apy: normalize hub and spoke markets
  apy-->>triggerAdaptor: return yield and routing_reserve pools
  triggerAdaptor->>triggerAdaptor: filter routing-only rows for xoxno-lending
Loading

Suggested reviewers: slasher125

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: adding the XOXNO Lending yield adapter. The Stellar and MultiversX scope matches the adapter’s stated support and future deployment structure.
  • Fix all pre-merge checks with AI
✨ 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

Error while running xoxno-lending adapter:

Test Suites: 1 failed, 1 total
Tests: 8 failed, 45 passed, 53 total
Snapshots: 0 total
Time: 0.358 s
Ran all test suites.

Nb of pools: 6
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────────┬───────────────────────┬────────────────────┬────────────────────┬────────────────────┬─────────────────────┬────────────────────────────────────────────────────────────────┬─────────────────────────────┐
│ (index) │ pool                                                                             │ chain     │ project         │ symbol │ tvlUsd             │ apyBase               │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd     │ utilization         │ underlyingTokens                                               │ url                         │
├─────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────────┼───────────────────────┼────────────────────┼────────────────────┼────────────────────┼─────────────────────┼────────────────────────────────────────────────────────────────┼─────────────────────────────┤
│ 0       │ 'xoxno-lending-stellar-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 179668.0646344433  │ 0.03737978906072048   │ 1.2831666760744744 │ 186085.01864704455 │ 6416.954012601242  │ 3.448402140134979   │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'https://xoxno.com/lending' │
│ 1       │ 'xoxno-lending-stellar-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 3296.2595974263795 │ 0.05948166159582619   │ 1.4088957158499005 │ 3469.7550985646667 │ 173.4955011382873  │ 5.000227749442014   │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'https://xoxno.com/lending' │
│ 2       │ 'xoxno-lending-stellar-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 1010.296836148092  │ 0.0009094486988471988 │ 1.012433350250536  │ 1011.3112971092938 │ 1.0144610612619946 │ 0.10031145834459561 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'https://xoxno.com/lending' │
│ 3       │ 'xoxno-lending-stellar-CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 555.4285171687268  │ 0                     │ 1.0043331094768297 │ 555.4285168684955  │ 0                  │ 0                   │ [ 'CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' ] │ 'https://xoxno.com/lending' │
│ 4       │ 'xoxno-lending-stellar-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 380.6966703865482  │ 0.4174872561422485    │ 2.573761443722812  │ 471.668019293942   │ 90.97134901512798  │ 19.287156497171388  │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'https://xoxno.com/lending' │
│ 5       │ 'xoxno-lending-stellar-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 18.366261849559535 │ 0.6240241568756009    │ 2.9453630462717033 │ 24.106115239368958 │ 5.739853504598918  │ 23.81077832784871   │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'https://xoxno.com/lending' │
└─────────┴──────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────────┴───────────────────────┴────────────────────┴────────────────────┴────────────────────┴─────────────────────┴────────────────────────────────────────────────────────────────┴─────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/adaptors/xoxno-lending/index.js (1)

34-43: 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Consider reusing shared utils.keepFinite to avoid over-filtering.

This local filter is stricter than the repository’s shared contract and can exclude valid pools when optional fields are missing.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/adaptors/xoxno-lending/index.js` around lines 34 - 43, The local
keepFinite function is unnecessarily strict and filters out valid pools. Instead
of checking all seven fields with every(), use the shared utils.keepFinite
utility that already exists in the repository. Replace the local keepFinite
function implementation with a call to the shared utils.keepFinite function to
align with the repository's standard filtering logic and avoid excluding valid
pools when optional fields are missing.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/adaptors/xoxno-lending/index.js`:
- Around line 30-31: The return statement that returns data.markets ?? [] does
not properly validate that markets is actually an array before returning it,
which allows non-array values to be passed through and causes runtime errors
when the result is iterated at line 55. Replace the return statement with a
guard that explicitly checks if data.markets is an array using Array.isArray,
returning the markets array if it passes the check or an empty array otherwise,
to ensure the function always returns a valid array for iteration.
- Around line 21-24: The getMarkets function's fetch call lacks a timeout
mechanism, which can cause the adaptor to hang if upstream services are slow or
unresponsive. Add an AbortSignal with a 5000 millisecond timeout to the fetch
options by including a signal property that uses AbortSignal.timeout(5000) in
the fetch configuration object, similar to the pattern used in
evaa-protocol/getPrices.js.

---

Nitpick comments:
In `@src/adaptors/xoxno-lending/index.js`:
- Around line 34-43: The local keepFinite function is unnecessarily strict and
filters out valid pools. Instead of checking all seven fields with every(), use
the shared utils.keepFinite utility that already exists in the repository.
Replace the local keepFinite function implementation with a call to the shared
utils.keepFinite function to align with the repository's standard filtering
logic and avoid excluding valid pools when optional fields are missing.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5c9847ba-c602-47ce-a631-4829e1dc30ea

📥 Commits

Reviewing files that changed from the base of the PR and between a371b67 and d5aa68c.

📒 Files selected for processing (1)
  • src/adaptors/xoxno-lending/index.js

Comment thread src/adaptors/xoxno-lending/index.js Outdated
Comment thread src/adaptors/xoxno-lending/index.js Outdated
@mihaieremia
mihaieremia force-pushed the codex/xoxno-lending-yields branch from d5aa68c to 906795d Compare June 22, 2026 02:34
@github-actions

Copy link
Copy Markdown

Error while running xoxno-lending adapter:

Test Suites: 1 failed, 1 total
Tests: 8 failed, 45 passed, 53 total
Snapshots: 0 total
Time: 0.354 s
Ran all test suites.

Nb of pools: 6
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────────┬───────────────────────┬────────────────────┬────────────────────┬────────────────────┬─────────────────────┬────────────────────────────────────────────────────────────────┬─────────────────────────────┐
│ (index) │ pool                                                                             │ chain     │ project         │ symbol │ tvlUsd             │ apyBase               │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd     │ utilization         │ underlyingTokens                                               │ url                         │
├─────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────────┼───────────────────────┼────────────────────┼────────────────────┼────────────────────┼─────────────────────┼────────────────────────────────────────────────────────────────┼─────────────────────────────┤
│ 0       │ 'xoxno-lending-stellar-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 179668.0646344433  │ 0.03737978906072048   │ 1.2831666760744744 │ 186085.01864704455 │ 6416.954012601242  │ 3.448402140134979   │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'https://xoxno.com/lending' │
│ 1       │ 'xoxno-lending-stellar-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 3296.2595974263795 │ 0.05948166159582619   │ 1.4088957158499005 │ 3469.7550985646667 │ 173.4955011382873  │ 5.000227749442014   │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'https://xoxno.com/lending' │
│ 2       │ 'xoxno-lending-stellar-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 1010.296836148092  │ 0.0009094486988471988 │ 1.012433350250536  │ 1011.3112971092938 │ 1.0144610612619946 │ 0.10031145834459561 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'https://xoxno.com/lending' │
│ 3       │ 'xoxno-lending-stellar-CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 555.4285171687268  │ 0                     │ 1.0043331094768297 │ 555.4285168684955  │ 0                  │ 0                   │ [ 'CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' ] │ 'https://xoxno.com/lending' │
│ 4       │ 'xoxno-lending-stellar-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 380.6966703865482  │ 0.4174872561422485    │ 2.573761443722812  │ 471.668019293942   │ 90.97134901512798  │ 19.287156497171388  │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'https://xoxno.com/lending' │
│ 5       │ 'xoxno-lending-stellar-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 18.366261849559535 │ 0.6240241568756009    │ 2.9453630462717033 │ 24.106115239368958 │ 5.739853504598918  │ 23.81077832784871   │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'https://xoxno.com/lending' │
└─────────┴──────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────────┴───────────────────────┴────────────────────┴────────────────────┴────────────────────┴─────────────────────┴────────────────────────────────────────────────────────────────┴─────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@mihaieremia
mihaieremia force-pushed the codex/xoxno-lending-yields branch from 906795d to 18b20e9 Compare June 22, 2026 02:39
@github-actions

Copy link
Copy Markdown

Error while running xoxno-lending adapter:

Test Suites: 1 failed, 1 total
Tests: 2 failed, 51 passed, 53 total
Snapshots: 0 total
Time: 0.31 s
Ran all test suites.

Nb of pools: 6
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────────┬─────────────────────┬────────────────────┬────────────────────┬───────────────────┬────────────────────────────────────────────────────────────────┬─────────────────────────────┐
│ (index) │ pool                                                                             │ chain     │ project         │ symbol │ tvlUsd             │ apyBase             │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd    │ underlyingTokens                                               │ url                         │
├─────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────────┼─────────────────────┼────────────────────┼────────────────────┼───────────────────┼────────────────────────────────────────────────────────────────┼─────────────────────────────┤
│ 0       │ 'xoxno-lending-stellar-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 187031.929192607   │ 0                   │ 1.0043331094768297 │ 187031.92274324637 │ 0                 │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'https://xoxno.com/lending' │
│ 1       │ 'xoxno-lending-stellar-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 3478.943904400585  │ 0                   │ 1.0043331094768297 │ 3478.943904400585  │ 0                 │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'https://xoxno.com/lending' │
│ 2       │ 'xoxno-lending-stellar-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 1011.4012997695211 │ 0                   │ 1.0043331094768297 │ 1011.4012995693831 │ 0                 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'https://xoxno.com/lending' │
│ 3       │ 'xoxno-lending-stellar-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 556.9500119458722  │ 0.06676865042602805 │ 1.4467304473968157 │ 589.1583058020623  │ 32.20829398501221 │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'https://xoxno.com/lending' │
│ 4       │ 'xoxno-lending-stellar-CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 555.4285171687268  │ 0                   │ 1.0043331094768297 │ 555.4285168684955  │ 0                 │ [ 'CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' ] │ 'https://xoxno.com/lending' │
│ 5       │ 'xoxno-lending-stellar-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 24.099986731414695 │ 0                   │ 1.0043331094768297 │ 24.099986501898393 │ 0                 │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'https://xoxno.com/lending' │
└─────────┴──────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────────┴─────────────────────┴────────────────────┴────────────────────┴───────────────────┴────────────────────────────────────────────────────────────────┴─────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@mihaieremia
mihaieremia force-pushed the codex/xoxno-lending-yields branch from 18b20e9 to 909e58d Compare June 22, 2026 02:47
@mihaieremia

Copy link
Copy Markdown
Author

Update: the adapter now exports protocolId 8049, matching the XOXNO Lending listing branch. The remaining protocol-slug CI check depends on merging the DefiLlama server listing for xoxno-lending; until https://api.llama.fi/protocols includes that slug, yield-server CI will keep failing at the protocol registry assertion.

@github-actions

Copy link
Copy Markdown

Error while running xoxno-lending adapter:

Test Suites: 1 failed, 1 total
Tests: 2 failed, 51 passed, 53 total
Snapshots: 0 total
Time: 0.333 s
Ran all test suites.

Nb of pools: 6
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────────────┬────────────────────┬────────────────────┬────────────────────────┬───────────────────┬────────────────────────────────────────────────────────────────┬─────────────────────────────┐
│ (index) │ pool                                                                             │ chain     │ project         │ symbol │ tvlUsd                 │ apyBase            │ apyBaseBorrow      │ totalSupplyUsd         │ totalBorrowUsd    │ underlyingTokens                                               │ url                         │
├─────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────────────┼────────────────────┼────────────────────┼────────────────────────┼───────────────────┼────────────────────────────────────────────────────────────────┼─────────────────────────────┤
│ 0       │ 'xoxno-lending-stellar-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 193.2535369438418      │ 0.2603948820809201 │ 2.164540883403616  │ 225.46489419404696     │ 32.21135740051198 │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'https://xoxno.com/lending' │
│ 1       │ 'xoxno-lending-stellar-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 0.07736263729552484    │ 0                  │ 1.0043331094768297 │ 0.07091575085423112    │ 0                 │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'https://xoxno.com/lending' │
│ 2       │ 'xoxno-lending-stellar-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 0.05341697461281471    │ 0                  │ 1.0043331094768297 │ 0.05341667447642183    │ 0                 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'https://xoxno.com/lending' │
│ 3       │ 'xoxno-lending-stellar-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 0.0024363588216484403  │ 0                  │ 1.0043331094768297 │ 0.002262333191530695   │ 0                 │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'https://xoxno.com/lending' │
│ 4       │ 'xoxno-lending-stellar-CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 0.0003230468041975377  │ 0                  │ 1.0043331094768297 │ 0.00032274666780466286 │ 0                 │ [ 'CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' ] │ 'https://xoxno.com/lending' │
│ 5       │ 'xoxno-lending-stellar-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 0.00008412875953033795 │ 0                  │ 1.0043331094768297 │ 0.00008389921311961396 │ 0                 │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'https://xoxno.com/lending' │
└─────────┴──────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────────────┴────────────────────┴────────────────────┴────────────────────────┴───────────────────┴────────────────────────────────────────────────────────────────┴─────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@mihaieremia
mihaieremia force-pushed the codex/xoxno-lending-yields branch from 909e58d to 7e7d2a4 Compare June 22, 2026 03:00
@github-actions

Copy link
Copy Markdown

Error while running xoxno-lending adapter:

Test Suites: 1 failed, 1 total
Tests: 2 failed, 51 passed, 53 total
Snapshots: 0 total
Time: 0.343 s
Ran all test suites.

Nb of pools: 6
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────────────┬─────────┬────────────────────┬────────────────────────┬────────────────┬────────────────────────────────────────────────────────────────┬──────────────────────────────────┐
│ (index) │ pool                                                                             │ chain     │ project         │ symbol │ tvlUsd                 │ apyBase │ apyBaseBorrow      │ totalSupplyUsd         │ totalBorrowUsd │ underlyingTokens                                               │ url                              │
├─────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────────────┼─────────┼────────────────────┼────────────────────────┼────────────────┼────────────────────────────────────────────────────────────────┼──────────────────────────────────┤
│ 0       │ 'xoxno-lending-stellar-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 0.006444179389484271   │ 0       │ 1.0043331094768297 │ 0                      │ 0              │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'https://xoxno.com/defi/lending' │
│ 1       │ 'xoxno-lending-stellar-CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 0.0003230468041975377  │ 0       │ 1.0043331094768297 │ 0.00032274666780466286 │ 0              │ [ 'CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU' ] │ 'https://xoxno.com/defi/lending' │
│ 2       │ 'xoxno-lending-stellar-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 0.00017403410429247404 │ 0       │ 1.0043331094768297 │ 0                      │ 0              │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'https://xoxno.com/defi/lending' │
│ 3       │ 'xoxno-lending-stellar-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 3.00135650165172e-7    │ 0       │ 1.0043331094768297 │ 0                      │ 0              │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'https://xoxno.com/defi/lending' │
│ 4       │ 'xoxno-lending-stellar-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 2.29555070040178e-7    │ 0       │ 1.0043331094768297 │ 0                      │ 0              │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'https://xoxno.com/defi/lending' │
│ 5       │ 'xoxno-lending-stellar-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 2.1448880249541997e-7  │ 0       │ 1.0043331094768297 │ 2.1448880249541998e-8  │ 0              │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'https://xoxno.com/defi/lending' │
└─────────┴──────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────────────┴─────────┴────────────────────┴────────────────────────┴────────────────┴────────────────────────────────────────────────────────────────┴──────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

- protocolId 8049 -> 8109 (the registered xoxno-lending DefiLlama protocol);
  fixes the 'protocolId matching its protocol slug' test.
- Read the export's hubMarkets (per hub/asset, with APY) and spokeMarkets
  (per spoke/hub/asset). Hub pools carry the yield with poolMeta = hub name
  (Core/RWA). Spoke reserves emit as poolKind 'routing_reserve' with
  poolMeta 'hub / spoke', LTV, borrowability and per-spoke debt but no APY,
  mirroring Aave V4's Core / <spoke> layer.
- Deep-link each pool to its XOXNO page (hub + spoke/hub/asset).
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────┬────────────────────┬─────────────────────┬────────────────────┬────────────────────┬───────────────────┬────────────────────┬────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────┬────────┬────────────┬───────────────┬───────┐
│ (index) │ pool                                                                                       │ chain     │ project         │ symbol │ poolMeta       │ tvlUsd             │ apyBase             │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd    │ availableBorrowUsd │ underlyingTokens                                               │ borrowToken                                                │ url                                                                                                                                                                        │ poolKind          │ ltv    │ borrowable │ routeGroupKey │ token │
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────┼────────────────────┼─────────────────────┼────────────────────┼────────────────────┼───────────────────┼────────────────────┼────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────┼────────┼────────────┼───────────────┼───────┤
│ 0       │ 'xoxno-lending-stellar-1-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW'         │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 'Core'         │ 312699.504688417   │ 0                   │ 0                  │ 312699.504688417   │ 0                 │ 312699.504688417   │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'https://xoxno.com/defi/lending/hub/1'                                                                                                                                     │                   │        │            │               │       │
│ 1       │ 'xoxno-lending-stellar-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core'         │ 224.94867879075855 │ 0.16211808610538658 │ 1.8153664614684883 │ 249.95421033708206 │ 25.00553160948975 │ 224.94867879075855 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/1'                                                                                                                                     │                   │        │            │               │       │
│ 2       │ 'xoxno-lending-stellar-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC'         │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core'         │ 88.30644288995056  │ 0.20892619372409565 │ 1.969142072862217  │ 100.22510389350218 │ 11.91866100355161 │ 88.30644288995056  │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/hub/1'                                                                                                                                     │                   │        │            │               │       │
│ 3       │ 'xoxno-lending-stellar-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ'         │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core'         │ 62.69536984508875  │ 0                   │ 0                  │ 62.69536984508875  │ 0                 │ 62.69536984508875  │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                                                                                     │                   │        │            │               │       │
│ 4       │ 'xoxno-lending-stellar-1-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ'         │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 'Core'         │ 0                  │ 0                   │ 0                  │ 0                  │ 0                 │ 0                  │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                                                                                     │                   │        │            │               │       │
│ 5       │ 'xoxno-lending-stellar-2-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'RWA'          │ 0                  │ 0                   │ 0                  │ 0                  │ 0                 │ 0                  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/2'                                                                                                                                     │                   │        │            │               │       │
│ 6       │ 'xoxno-lending-stellar-spoke-1-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core / Main'  │                    │                     │                    │                    │ 0                 │ 2849789.538413125  │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ?fromAsset=CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'routing_reserve' │ 0.97   │ true       │ '1'           │ null  │
│ 7       │ 'xoxno-lending-stellar-spoke-1-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Main'  │                    │                     │                    │                    │ 0                 │ 10002.1644637954   │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA?fromAsset=CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.9701 │ true       │ '1'           │ null  │
│ 8       │ 'xoxno-lending-stellar-spoke-2-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Spiko' │                    │                     │                    │                    │ 25.00553160948975 │ 9977.15893218591   │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA?fromAsset=CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.8923 │ true       │ '2'           │ null  │
│ 9       │ 'xoxno-lending-stellar-spoke-2-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core / Spiko' │                    │                     │                    │                    │ 11.91866100355161 │ 88.30644288995056  │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC?fromAsset=CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'routing_reserve' │ 0.6847 │ true       │ '2'           │ null  │
└─────────┴────────────────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────┴────────────────────┴─────────────────────┴────────────────────┴────────────────────┴───────────────────┴────────────────────┴────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────┴────────┴────────────┴───────────────┴───────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────┬────────────────────┬─────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────┬────────┬────────────┬───────────────┬───────┐
│ (index) │ pool                                                                                       │ chain     │ project         │ symbol │ poolMeta       │ tvlUsd             │ apyBase             │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd     │ availableBorrowUsd │ underlyingTokens                                               │ borrowToken                                                │ url                                                                                                     │ poolKind          │ ltv    │ borrowable │ routeGroupKey │ token │
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────┼────────────────────┼─────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────┼────────┼────────────┼───────────────┼───────┤
│ 0       │ 'xoxno-lending-stellar-1-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW'         │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 'Core'         │ 312685.13116402546 │ 0                   │ 0                  │ 312685.13116402546 │ 0                  │ 312685.13116402546 │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 1       │ 'xoxno-lending-stellar-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core'         │ 224.94770694905188 │ 0.16211808610538658 │ 1.8153664614684883 │ 249.9531304644299  │ 25.005423578543997 │ 224.94770694905188 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 2       │ 'xoxno-lending-stellar-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC'         │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core'         │ 88.2677682787325   │ 0.20892619372409565 │ 1.969142072862217  │ 100.18120939610745 │ 11.91344111737494  │ 88.2677682787325   │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 3       │ 'xoxno-lending-stellar-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ'         │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core'         │ 62.6926159496461   │ 0                   │ 0                  │ 62.6926159496461   │ 0                  │ 62.6926159496461   │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 4       │ 'xoxno-lending-stellar-1-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ'         │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 'Core'         │ 0                  │ 0                   │ 0                  │ 0                  │ 0                  │ 0                  │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 5       │ 'xoxno-lending-stellar-2-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'RWA'          │ 0                  │ 0                   │ 0                  │ 0                  │ 0                  │ 0                  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/2'                                                                  │                   │        │            │               │       │
│ 6       │ 'xoxno-lending-stellar-spoke-1-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core / Main'  │                    │                     │                    │                    │ 0                  │ 2849664.36134755   │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'routing_reserve' │ 0.97   │ true       │ '1'           │ null  │
│ 7       │ 'xoxno-lending-stellar-spoke-1-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Main'  │                    │                     │                    │                    │ 0                  │ 10002.12125162525  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.9701 │ true       │ '1'           │ null  │
│ 8       │ 'xoxno-lending-stellar-spoke-2-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Spiko' │                    │                     │                    │                    │ 25.005423578543997 │ 9977.115828046706  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.8923 │ true       │ '2'           │ null  │
│ 9       │ 'xoxno-lending-stellar-spoke-2-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core / Spiko' │                    │                     │                    │                    │ 11.91344111737494  │ 88.2677682787325   │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'routing_reserve' │ 0.6847 │ true       │ '2'           │ null  │
└─────────┴────────────────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────┴────────────────────┴─────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────┴────────┴────────────┴───────────────┴───────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/adaptors/xoxno-lending/index.js`:
- Around line 66-86: Add a utilization field to each normalized pool created in
the hubMarkets loop, using the API utilization value when available or deriving
it from supplied and borrowed totals. Normalize the result to percentage points,
consistent with the existing apyBase and apyBaseBorrow fields.
- Around line 89-120: Update the xoxno-lending ingestion path around the
routing_reserve pools created from spokeMarkets so these rows are not removed by
triggerAdaptor’s all-null APY filter. Preserve routing-reserve metadata and
ensure the downstream contract explicitly retains these APY-less pools, or stop
emitting them if persistence cannot support them; do not leave rows that are
guaranteed to be discarded.
- Around line 129-134: Update the protocolId field in the exported XOXNO Lending
adapter configuration to use the registered value 8049 instead of 8109; leave
the surrounding apy, timetravel, and url fields unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e1475f47-7e8a-4e22-a0d0-ab7828edba41

📥 Commits

Reviewing files that changed from the base of the PR and between 909e58d and 59c783b.

📒 Files selected for processing (1)
  • src/adaptors/xoxno-lending/index.js

Comment thread src/adaptors/xoxno-lending/index.js
Comment thread src/adaptors/xoxno-lending/index.js Outdated
Comment thread src/adaptors/xoxno-lending/index.js
Mirror the aave-v4/euler-v2/exactly treatment: routing_collateral and
routing_reserve pools carry no APY, so without an allowlist entry they are
dropped by the all-APY-null filter and never reach the pools table. Add
xoxno-lending so its Aave-V4-style spoke reserves survive ingestion.
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────┬────────────────────┬─────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────┬────────┬────────────┬───────────────┬───────┐
│ (index) │ pool                                                                                       │ chain     │ project         │ symbol │ poolMeta       │ tvlUsd             │ apyBase             │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd     │ availableBorrowUsd │ underlyingTokens                                               │ borrowToken                                                │ url                                                                                                     │ poolKind          │ ltv    │ borrowable │ routeGroupKey │ token │
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────┼────────────────────┼─────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────┼────────┼────────────┼───────────────┼───────┤
│ 0       │ 'xoxno-lending-stellar-1-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW'         │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 'Core'         │ 312576.9296489062  │ 0                   │ 0                  │ 312576.9296489062  │ 0                  │ 312576.9296489062  │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 1       │ 'xoxno-lending-stellar-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core'         │ 224.93195536873006 │ 0.16211808610538658 │ 1.8153664614684883 │ 249.93562792188524 │ 25.003672616316727 │ 224.93195536873006 │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 2       │ 'xoxno-lending-stellar-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC'         │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core'         │ 87.91209817669652  │ 0.20892619372409565 │ 1.969142072862217  │ 99.77753474042242  │ 11.86543656372591  │ 87.91209817669652  │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 3       │ 'xoxno-lending-stellar-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ'         │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core'         │ 62.69932283105425  │ 0                   │ 0                  │ 62.69932283105425  │ 0                  │ 62.69932283105425  │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 4       │ 'xoxno-lending-stellar-1-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ'         │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 'Core'         │ 0                  │ 0                   │ 0                  │ 0                  │ 0                  │ 0                  │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 5       │ 'xoxno-lending-stellar-2-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'RWA'          │ 0                  │ 0                   │ 0                  │ 0                  │ 0                  │ 0                  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/2'                                                                  │                   │        │            │               │       │
│ 6       │ 'xoxno-lending-stellar-spoke-1-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core / Main'  │                    │                     │                    │                    │ 0                  │ 2849969.219593375  │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'routing_reserve' │ 0.97   │ true       │ '1'           │ null  │
│ 7       │ 'xoxno-lending-stellar-spoke-1-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Main'  │                    │                     │                    │                    │ 0                  │ 10001.42087010805  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.9701 │ true       │ '1'           │ null  │
│ 8       │ 'xoxno-lending-stellar-spoke-2-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Spiko' │                    │                     │                    │                    │ 25.003672616316727 │ 9976.417197491734  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.8923 │ true       │ '2'           │ null  │
│ 9       │ 'xoxno-lending-stellar-spoke-2-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core / Spiko' │                    │                     │                    │                    │ 11.86543656372591  │ 87.91209817669652  │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'routing_reserve' │ 0.6847 │ true       │ '2'           │ null  │
└─────────┴────────────────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────┴────────────────────┴─────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────┴────────┴────────────┴───────────────┴───────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

Nb of pools: 15
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬────────┬────────────────────┬────────────────────┬──────────────────────┬────────────────────┬────────────────────┬─────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────┬────────┬────────────┬───────────────┬───────┐
│ (index) │ pool                                                                                       │ chain     │ project         │ symbol │ poolMeta           │ tvlUsd             │ apyBase              │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd      │ availableBorrowUsd │ underlyingTokens                                               │ borrowToken                                                │ url                                                                                                     │ poolKind          │ ltv    │ borrowable │ routeGroupKey │ token │
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼────────┼────────────────────┼────────────────────┼──────────────────────┼────────────────────┼────────────────────┼─────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────┼────────┼────────────┼───────────────┼───────┤
│ 0       │ 'xoxno-lending-stellar-1-CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW'         │ 'Stellar' │ 'xoxno-lending' │ 'BTC'  │ 'Core'             │ 184705.8758049168  │ 0.03767475297529065  │ 1.2720448535077282 │ 191030.98280688893 │ 6325.107001972134   │ 184705.8758049168  │ [ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' ] │ 'CBK3FNAM3C54674OSOCQLDNW4EXMNUY6ZO3C3ZI5S5DGBIIPX4GJ7WHW' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 1       │ 'xoxno-lending-stellar-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core'             │ 46.01550682080782  │ 0.495302806275303    │ 2.688829088320836  │ 58.01955207840986  │ 12.00404525760204   │ 46.01550682080782  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 2       │ 'xoxno-lending-stellar-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ'         │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core'             │ 37.6244221920996   │ 0.032682603603945426 │ 1.2421049294424602 │ 38.7645561979208   │ 1.1401340058212     │ 37.6244221920996   │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 3       │ 'xoxno-lending-stellar-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC'         │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core'             │ 11.380971763465725 │ 0.015280420073891693 │ 1.1267529938895486 │ 11.556065074632858 │ 0.17509332565625577 │ 11.380971763465725 │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 4       │ 'xoxno-lending-stellar-1-CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ'         │ 'Stellar' │ 'xoxno-lending' │ 'ETH'  │ 'Core'             │ 0                  │ 0                    │ 0                  │ 0                  │ 0                   │ 0                  │ [ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' ] │ 'CBFNIHC2B7WMAH2CKNKQJOB3CWBUXXNNRQXYISJ7VZONM77YBMHCOULJ' │ 'https://xoxno.com/defi/lending/hub/1'                                                                  │                   │        │            │               │       │
│ 5       │ 'xoxno-lending-stellar-2-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'         │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'RWA'              │ 0                  │ 0                    │ 0                  │ 0                  │ 0                   │ 0                  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/hub/2'                                                                  │                   │        │            │               │       │
│ 6       │ 'xoxno-lending-stellar-spoke-1-1-CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'Stellar' │ 'xoxno-lending' │ 'EURC' │ 'Core / Main'      │                    │                      │                    │                    │ 1.1401340058212     │ 2850333.874418994  │ [ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' ] │ 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ' │ 'routing_reserve' │ 0.97   │ true       │ '1'           │ null  │
│ 7       │ 'xoxno-lending-stellar-spoke-1-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Main'      │                    │                      │                    │                    │ 12.00404525760204   │ 9991.367002744098  │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/1/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.9701 │ true       │ '1'           │ null  │
│ 8       │ 'xoxno-lending-stellar-spoke-2-1-CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'Stellar' │ 'xoxno-lending' │ 'USDC' │ 'Core / Derivates' │                    │                      │                    │                    │ 0                   │ 10003.3710480017   │ [ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' ] │ 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA' │ 'routing_reserve' │ 0.8923 │ true       │ '2'           │ null  │
│ 9       │ 'xoxno-lending-stellar-spoke-2-1-CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'  │ 'Core / Derivates' │                    │                      │                    │                    │ 0                   │ 11.380971763465725 │ [ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' ] │ 'CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'https://xoxno.com/defi/lending/spoke/2/hub/1/CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC' │ 'routing_reserve' │ 0.6847 │ true       │ '2'           │ null  │
└─────────┴────────────────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴────────┴────────────────────┴────────────────────┴──────────────────────┴────────────────────┴────────────────────┴─────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────┴────────┴────────────┴───────────────┴───────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@0xkr3p
0xkr3p marked this pull request as draft July 31, 2026 10:16
@0xkr3p

0xkr3p commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

converting this into a draft as no tvl adapter and appears to be on stellar testnet

@mihaieremia

Copy link
Copy Markdown
Author

converting this into a draft as no tvl adapter and appears to be on stellar testnet

Thanks, will re convert once mainnet is deployed. This was a test commit to see if we pass the workflows 🫡

@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

Left over from the Dune prototype this adapter was derived from; it is not a
Dune client. Also re-runs CI against the current API, whose token metadata now
resolves mainnet contract ids — the previous run predates that cutover and
reported testnet markets with testnet symbols.
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

Reverts the previous rename. api.xoxno.com expects this specific User-Agent
for API access; it is not a descriptive label. Commented so it is not changed
again.
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

@mihaieremia
mihaieremia marked this pull request as ready for review August 28, 2026 02:36
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@mihaieremia

Copy link
Copy Markdown
Author

@0xkr3p the mainnet has been deployed, besides this PR I have few more DefiLlama/DefiLlama-Adapters#20743 and DefiLlama/dimension-adapters#9041 🙏

@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

@mihaieremia mihaieremia changed the title Add XOXNO Lending yield adapter Add XOXNO Lending yield adapter (Stellar + MultiversX) Aug 31, 2026
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

…liquidity

MultiversX is a flat market model: rates and risk params share a row, so
there is no routing layer and each market is an ordinary yield pool. It is
listed under CHAIN 'Elrond', the name in api.llama.fi/chains; 'MultiversX'
is not a valid chain name and fails the adapter test.

Two fixes to the existing Stellar pools:

- Spoke availableBorrowUsd was borrow-cap headroom, which routinely exceeds
  the liquidity actually present: the XLM spoke advertised $5.25M against
  $1.5K of hub cash. It is now min(cap headroom, hub cash), as Aave does.
- token is set to null explicitly on hub pools. Positions are NFTs rather
  than per-market receipt tokens, so no 1:1 pool token exists, and the
  handler's fallback only recognises 0x addresses.

Also drops an API base-URL env override that nothing sets.
@mihaieremia
mihaieremia force-pushed the codex/xoxno-lending-yields branch from 097402e to 46a6fdc Compare August 31, 2026 02:42
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

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

The comment builder slices from "Test Suites:" onward, on the assumption that
afterTests.js output follows the jest summary. afterTests.js is a jest
globalTeardown writing to stdout, while jest buffers its reporter output and
writes it to stderr, so the order is not guaranteed. Since CI was pinned to
Node 24 (8e1fecb) the pool block is flushed first and the slice drops it:
every adapter PR comment since has shown the test counts with an empty pool
list.

Anchoring on "Nb of pools:" instead is not enough. Between that line and the
summary sits jest's per-test output -- 685 lines and 97KB on this adapter --
which pushes the comment past GitHub's 65536-character limit, so it fails to
post at all. The pool block is therefore cut at the first reporter marker and
stitched onto the summary, and capped like the failure detail already is.

Verified against a real CI log and a local run, i.e. both orderings:

  Node 24 order   10216 chars, table + summary
  local order      6791 chars, table + summary

both within the limit, against 3644 chars with no table today. The failure
path is unchanged.
@github-actions

Copy link
Copy Markdown

The xoxno-lending adapter exports pools:

Nb of pools: 96

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────────────────────────┬───────────┬─────────────────┬───────────────┬──────────┬────────────────────┬─────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────┬───────┬────────────────────────────────────────┐
│ (index) │ pool                                                                               │ chain     │ project         │ symbol        │ poolMeta │ tvlUsd             │ apyBase             │ apyBaseBorrow      │ totalSupplyUsd     │ totalBorrowUsd     │ availableBorrowUsd │ underlyingTokens                                               │ borrowToken                                                │ token │ url                                    │
├─────────┼────────────────────────────────────────────────────────────────────────────────────┼───────────┼─────────────────┼───────────────┼──────────┼────────────────────┼─────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┼───────┼────────────────────────────────────────┤
│ 0       │ 'xoxno-lending-stellar-1-CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA' │ 'Stellar' │ 'xoxno-lending' │ 'XLM'         │ 'Core'   │ 1527.431642788352  │ 0.00228212178743567 │ 1.0268815331115229 │ 1531.7083933050314 │ 4.276750561933115  │ 1527.431642788352  │ [ 'CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA' ] │ 'CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA' │ null  │ 'https://xoxno.com/defi/lending/hub/1' │
│ 1       │ 'xoxno-lending-stellar-3-CDOY7ILRR7PDGLBXZUPSENB6XOET77PR2JY3HXDGQS3TS4T764OYBUGO' │ 'Stellar' │ 'xoxno-lending' │ 'AQUAUSDC_LP' │ 'AMM'    │ 395.7291180030981  │ 0                   │ 0                  │ 395.7291180030981  │ 0                  │ 395.7291180030981  │ [ 'CDOY7ILRR7PDGLBXZUPSENB6XOET77PR2JY3HXDGQS3TS4T764OYBUGO' ] │ 'CDOY7ILRR7PDGLBXZUPSENB6XOET77PR2JY3HXDGQS3TS4T764OYBUGO' │ null  │ 'https://xoxno.com/defi/lending/hub/3' │
│ 2       │ 'xoxno-lending-stellar-1-CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75' │ 'Stellar' │ 'xoxno-lending' │ 'USDC'        │ 'Core'   │ 29.31748005679549  │ 0.7309234966974552  │ 2.3613217608140444 │ 46.322410041123305 │ 17.004930218337336 │ 29.31748005679549  │ [ 'CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75' ] │ 'CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75' │ null  │ 'https://xoxno.com/defi/lending/hub/1' │
│ 3       │ 'xoxno-lending-stellar-1-CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV' │ 'Stellar' │ 'xoxno-lending' │ 'EURC'        │ 'Core'   │ 15.370236619814593 │ 0.43550373854770164 │ 1.885035698760657  │ 21.163988819901174 │ 5.793752249712562  │ 15.370236619814593 │ [ 'CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV' ] │ 'CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV' │ null  │ 'https://xoxno.com/defi/lending/hub/1' │
│ 4       │ 'xoxno-lending-stellar-2-CC2RBGYNCFBCVENIDL5BFBWPH4OUZM2UA3OD2K2N54GLMWCC4KWPVAGO' │ 'Stellar' │ 'xoxno-lending' │ 'XAUM'        │ 'RWA'    │ 13.118978373177633 │ 0                   │ 0                  │ 13.118978373177633 │ 0                  │ 13.118978373177633 │ [ 'CC2RBGYNCFBCVENIDL5BFBWPH4OUZM2UA3OD2K2N54GLMWCC4KWPVAGO' ] │ 'CC2RBGYNCFBCVENIDL5BFBWPH4OUZM2UA3OD2K2N54GLMWCC4KWPVAGO' │ null  │ 'https://xoxno.com/defi/lending/hub/2' │
│ 5       │ 'xoxno-lending-stellar-1-CAUP7NFABXE5TJRL3FKTPMWRLC7IAXYDCTHQRFSCLR5TMGKHOOQO772J' │ 'Stellar' │ 'xoxno-lending' │ 'xSolvBTC'    │ 'Core'   │ 10.430255211433563 │ 0                   │ 0                  │ 10.430255211433563 │ 0                  │ 10.430255211433563 │ [ 'CAUP7NFABXE5TJRL3FKTPMWRLC7IAXYDCTHQRFSCLR5TMGKHOOQO772J' ] │ 'CAUP7NFABXE5TJRL3FKTPMWRLC7IAXYDCTHQRFSCLR5TMGKHOOQO772J' │ null  │ 'https://xoxno.com/defi/lending/hub/1' │
│ 6       │ 'xoxno-lending-stellar-3-CAVKLYY4RWFQBRA2YI5GTGGXKUKJQI3JLAHDGXMS7L5RDH6X6A47NMOZ' │ 'Stellar' │ 'xoxno-lending' │ 'XLMUSDC_LP'  │ 'AMM'    │ 9.187823784290558  │ 0                   │ 0                  │ 9.187823784290558  │ 0                  │ 9.187823784290558  │ [ 'CAVKLYY4RWFQBRA2YI5GTGGXKUKJQI3JLAHDGXMS7L5RDH6X6A47NMOZ' ] │ 'CAVKLYY4RWFQBRA2YI5GTGGXKUKJQI3JLAHDGXMS7L5RDH6X6A47NMOZ' │ null  │ 'https://xoxno.com/defi/lending/hub/3' │
│ 7       │ 'xoxno-lending-stellar-1-CBIJBDNZNF4X35BJ4FFZWCDBSCKOP5NB4PLG4SNENRMLAPYG4P5FM6VN' │ 'Stellar' │ 'xoxno-lending' │ 'SolvBTC'     │ 'Core'   │ 7.792495488557014  │ 0                   │ 0                  │ 7.792495488557014  │ 0                  │ 7.792495488557014  │ [ 'CBIJBDNZNF4X35BJ4FFZWCDBSCKOP5NB4PLG4SNENRMLAPYG4P5FM6VN' ] │ 'CBIJBDNZNF4X35BJ4FFZWCDBSCKOP5NB4PLG4SNENRMLAPYG4P5FM6VN' │ null  │ 'https://xoxno.com/defi/lending/hub/1' │
│ 8       │ 'xoxno-lending-stellar-2-CAL6ER2TI6CTRAY6BFXWNWA7WTYXUXTQCHUBCIBU5O6KM3HJFG6Z6VXV' │ 'Stellar' │ 'xoxno-lending' │ 'CETES'       │ 'RWA'    │ 5.176200308743613  │ 0                   │ 0                  │ 5.176200308743613  │ 0                  │ 5.176200308743613  │ [ 'CAL6ER2TI6CTRAY6BFXWNWA7WTYXUXTQCHUBCIBU5O6KM3HJFG6Z6VXV' ] │ 'CAL6ER2TI6CTRAY6BFXWNWA7WTYXUXTQCHUBCIBU5O6KM3HJFG6Z6VXV' │ null  │ 'https://xoxno.com/defi/lending/hub/2' │
│ 9       │ 'xoxno-lending-stellar-2-CB3YA656OYIHU57657I5KGSBRHE5I3OZU4VFC22PYAOANFZHEWNYGAGP' │ 'Stellar' │ 'xoxno-lending' │ 'USDY'        │ 'RWA'    │ 5.055133742627584  │ 0                   │ 0                  │ 5.055133742627584  │ 0                  │ 5.055133742627584  │ [ 'CB3YA656OYIHU57657I5KGSBRHE5I3OZU4VFC22PYAOANFZHEWNYGAGP' ] │ 'CB3YA656OYIHU57657I5KGSBRHE5I3OZU4VFC22PYAOANFZHEWNYGAGP' │ null  │ 'https://xoxno.com/defi/lending/hub/2' │
└─────────┴────────────────────────────────────────────────────────────────────────────────────┴───────────┴─────────────────┴───────────────┴──────────┴────────────────────┴─────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────┴───────┴────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

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

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