Skip to content

fix: indigo pools all had tvlUsd 0, ada price endpoint is broken#2794

Open
0xshubhs wants to merge 1 commit into
DefiLlama:masterfrom
0xshubhs:fix/indigo-ada-price
Open

fix: indigo pools all had tvlUsd 0, ada price endpoint is broken#2794
0xshubhs wants to merge 1 commit into
DefiLlama:masterfrom
0xshubhs:fix/indigo-ada-price

Conversation

@0xshubhs

@0xshubhs 0xshubhs commented Jul 8, 2026

Copy link
Copy Markdown

indigo's stability pool APRs were still coming through fine, but every pool had tvlUsd 0, which got it swept into the exclusion list at the end of May.

Root cause: the adapter converts the pools' ADA-denominated TVL to USD via analytics.indigoprotocol.io/api/price?from=ADA&to=USD, and that endpoint now returns HTTP 500. The catch swallows it and returns 0, so every pool's TVL multiplies out to 0. The rest of the analytics API (stability-pools, apr, asset analytics) works fine.

Fix: take the ADA price from coins.llama.fi (coingecko:cardano) through the existing getPriceApiData helper instead, and remove the exclusion entry.

Local run: 45/45 tests, 6 pools, ~$4.1M total (iUSD $2.82M, iBTC $1.10M, iETH $194k + iSOL/iJPY/iEUR dust) — matches the ADA totals on their analytics API times the current ADA price, and the protocol page. APRs are passed through from indigo's own apr endpoint, unchanged by this PR.

Copilot AI review requested due to automatic review settings July 8, 2026 19:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

Next review available in: 41 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: 9f6ac072-fbea-4153-ba5f-dc38630c9d0f

📥 Commits

Reviewing files that changed from the base of the PR and between 6719a9c and 73d9b87.

📒 Files selected for processing (2)
  • src/adaptors/indigo/index.js
  • src/utils/exclude.js
✨ 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

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

The indigo adapter exports pools:

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

Nb of pools: 6
 

Sample pools:
┌─────────┬────────┬───────────┬──────────┬────────┬───────────────────┬───────────────────┬──────────────────────────────────────┬────────────────────┐
│ (index) │ pool   │ chain     │ project  │ symbol │ apyReward         │ rewardTokens      │ underlyingTokens                     │ tvlUsd             │
├─────────┼────────┼───────────┼──────────┼────────┼───────────────────┼───────────────────┼──────────────────────────────────────┼────────────────────┤
│ 0       │ 'iUSD' │ 'Cardano' │ 'indigo' │ 'iUSD' │ 88.37             │ [ 'ADA', 'INDY' ] │ [ 'coingecko:iusd' ]                 │ 2824019.3453086456 │
│ 1       │ 'iBTC' │ 'Cardano' │ 'indigo' │ 'iBTC' │ 201.82            │ [ 'ADA', 'INDY' ] │ [ 'coingecko:ibtc-2' ]               │ 1097888.657904593  │
│ 2       │ 'iETH' │ 'Cardano' │ 'indigo' │ 'iETH' │ 98.91000000000001 │ [ 'ADA', 'INDY' ] │ [ 'coingecko:indigo-protocol-ieth' ] │ 194201.07463886563 │
│ 3       │ 'iSOL' │ 'Cardano' │ 'indigo' │ 'iSOL' │ 397.88            │ [ 'ADA', 'INDY' ] │ [ 'coingecko:solana' ]               │ 15610.026049763856 │
│ 4       │ 'iJPY' │ 'Cardano' │ 'indigo' │ 'iJPY' │ 30.23             │ [ 'ADA', 'INDY' ] │ undefined                            │ 1071.3314353119658 │
│ 5       │ 'iEUR' │ 'Cardano' │ 'indigo' │ 'iEUR' │ 0                 │ [ 'ADA', 'INDY' ] │ undefined                            │ 359.05762744768    │
└─────────┴────────┴───────────┴──────────┴────────┴───────────────────┴───────────────────┴──────────────────────────────────────┴────────────────────┘
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.

2 participants