fix: indigo pools all had tvlUsd 0, ada price endpoint is broken#2794
fix: indigo pools all had tvlUsd 0, ada price endpoint is broken#27940xshubhs wants to merge 1 commit into
Conversation
|
Warning Review limit reached
Next review available in: 41 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
The indigo adapter exports pools: Test Suites: 1 passed, 1 total |
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 existinggetPriceApiDatahelper 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.