From 73d9b87b0005a658bffb8c8a61e0973f89a44313 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Thu, 9 Jul 2026 01:16:05 +0530 Subject: [PATCH] fix(indigo): ada price endpoint returns 500, use coins.llama.fi instead --- src/adaptors/indigo/index.js | 6 ++++-- src/utils/exclude.js | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/adaptors/indigo/index.js b/src/adaptors/indigo/index.js index 38d44d3016..260906aa2e 100644 --- a/src/adaptors/indigo/index.js +++ b/src/adaptors/indigo/index.js @@ -1,4 +1,5 @@ const { get, post } = require('./http-helper') +const utils = require('../utils') const CARDANO_COINGECKO = { iUSD: 'coingecko:iusd', @@ -66,10 +67,11 @@ async function fetchAssetAnalytics(assetName) { } // Fetch the ADA price in USD +// (the analytics /api/price endpoint returns 500, which zeroed tvlUsd for every pool) async function fetchAdaPriceToUsd() { try { - const response = await get('https://analytics.indigoprotocol.io/api/price?from=ADA&to=USD'); - return response.price; + const response = await utils.getPriceApiData('/prices/current/coingecko:cardano'); + return response.coins['coingecko:cardano'].price; } catch (error) { console.error('Error fetching ADA price:', error); return 0; diff --git a/src/utils/exclude.js b/src/utils/exclude.js index c433415b30..21672fd0ff 100644 --- a/src/utils/exclude.js +++ b/src/utils/exclude.js @@ -385,7 +385,6 @@ const excludedProtocols = [ { id: '2992', slug: 'gravita-protocol' }, { id: '6761', slug: 'sendit' }, { id: '5746', slug: 'beraborrow' }, - { id: '2309', slug: 'indigo' }, { id: '4818', slug: 'bitu-protocol' }, { id: '3068', slug: 'raft' }, { id: '6681', slug: 'aimstrong' },