Skip to content

Add XOXNO Lending yield adapter#2753

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

Add XOXNO Lending yield adapter#2753
mihaieremia wants to merge 4 commits into
DefiLlama:masterfrom
mihaieremia:codex/xoxno-lending-yields

Conversation

@mihaieremia

@mihaieremia mihaieremia commented Jun 22, 2026

Copy link
Copy Markdown

Summary

Adds XOXNO Lending Stellar markets to the DefiLlama yield server.

The adapter emits one pool per XOXNO Stellar lending market, including supply APY, borrow APY, utilization, TVL, total supplied, and total borrowed.

Data Source

  • Endpoint: https://api.xoxno.com/integrations/lending/stellar
  • Header: User-Agent: dune-analytics
  • Chain: Stellar
  • Project: xoxno-lending

The API export is built from the XOXNO Stellar lending indexer and current market state. It includes the listed markets, current balances, APYs, utilization, and token metadata.

Methodology

  • One yield-server pool is emitted per listed lending market.
  • tvlUsd uses pool reserves / net deposits from the market export.
  • totalSupplyUsd uses total supplied market balance.
  • totalBorrowUsd uses outstanding borrowed balance.
  • apyBase uses the market supply APY from the XOXNO export.
  • apyBaseBorrow uses the market borrow APY from the XOXNO export.
  • APY and utilization values are normalized from decimal fractions to percentage points for DefiLlama display.

The adapter is structured so a future MultiversX lending deployment can be added with the same response shape.

Validation

  • node --check src/adaptors/xoxno-lending/index.js
  • Manual adapter run returned 6 Stellar pools.

Summary by CodeRabbit

  • New Features
    • Added the XOXNO lending protocol adaptor with support for the Stellar blockchain network.
    • Surfaces lending market data including APY, borrow rates, supply/borrow totals, underlying assets, and market details.
  • Improvements
    • Improved data validation to ignore invalid numeric fields.
    • Added safer request handling with a short timeout and clearer error reporting.
  • Chores
    • Updated the XOXNO adaptor’s protocol identifier and lending URL.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@mihaieremia, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 32 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5daf1900-365b-4361-95b0-2a5619f694a3

📥 Commits

Reviewing files that changed from the base of the PR and between a2e40fc and 390a8ff.

📒 Files selected for processing (1)
  • src/handlers/triggerAdaptor.js
📝 Walkthrough

Walkthrough

A XOXNO lending adaptor fetches Stellar lending exports, converts hub and routing-reserve markets into DeFiLlama pool objects, filters invalid hub numeric fields, and exports updated protocol metadata.

Changes

XOXNO Lending Adaptor

Layer / File(s) Summary
Configuration and export retrieval
src/adaptors/xoxno-lending/index.js
Defines the API base, Stellar export path, request headers, timeout, URL helper, and JSON fetch with errors for non-OK responses.
Pool normalization and adaptor export
src/adaptors/xoxno-lending/index.js
Converts hub and routing-reserve markets into pool objects, applies decimal-to-percent conversion and hub numeric filtering, and exports the updated protocol metadata.

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

Sequence Diagram(s)

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

  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 routing-reserve pools
  apy->>keepFinite: filter invalid hub pools
  keepFinite-->>apy: return valid hub pools
Loading

Suggested reviewers: 0xkr3p

🚥 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%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding a XOXNO Lending yield adapter.
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

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
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

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