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' },