From 2fad97bd2a80cb0d2c55b4dc7fa46d0a4ded69ed Mon Sep 17 00:00:00 2001 From: 0xpeluche <110820448+0xpeluche@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:40:03 +0200 Subject: [PATCH] Fix: Axelar (outdated not refillable) (#11683) --- projects/alexar/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/projects/alexar/index.js b/projects/alexar/index.js index d3dd0f8e1f7..f904f2c2686 100644 --- a/projects/alexar/index.js +++ b/projects/alexar/index.js @@ -10,12 +10,17 @@ const chainMapping = { bsc: 'binance' }; -const chainListSupply = ['juno', 'cosmos', 'comdex', 'carbon', /*'crescent',*/ 'injective', 'kujira', 'osmosis', 'persistence', 'stargaze', 'secret', 'stargaze', 'umee', 'evmos', 'terra2']; +const blackListChains = ['comdex', 'crescent']; +const chainListSupply = ['juno', 'cosmos', 'carbon', 'injective', 'kujira', 'osmosis', 'persistence', 'stargaze', 'secret', 'stargaze', 'umee', 'evmos', 'terra2']; const chainListTotal = ['avax', 'bsc', 'moonbeam', 'polygon', 'fantom', 'arbitrum', 'aurora', 'celo', 'kava', 'mantle', 'ethereum', 'base']; chainListSupply.concat(chainListTotal).forEach(chain => { - module.exports[chain] = { tvl }; + if (blackListChains.includes(chain)) { + module.exports[chain] = { tvl: () => ({}) }; + } else { + module.exports[chain] = { tvl }; + } async function tvl(api) { const config = await getConfig('alexar', 'https://api.axelarscan.io/api/getTVL') const tokensAndOwners = []