From 981a83a9ebab193acd4981c6dc395c2ec3932dcd Mon Sep 17 00:00:00 2001 From: emidev98 Date: Tue, 7 Nov 2023 11:57:10 +0200 Subject: [PATCH] fix: filter virtual token for migaloo --- lib/AllianceQuery.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AllianceQuery.ts b/lib/AllianceQuery.ts index 66ed843..c9f494f 100644 --- a/lib/AllianceQuery.ts +++ b/lib/AllianceQuery.ts @@ -9,6 +9,7 @@ const TOTAL_STAKED_QUERY = "ewogICJ0b3RhbF9zdGFrZWRfYmFsYW5jZXMiOiB7fQp9"; export const QueryForAlliances: AllianceQuery = async (chain: Chain): Promise => { const chainResponse = await fetch(`${chain.lcd}/terra/alliances?pagination.limit=100`); const resp = (await chainResponse.json()) as AllianceResponse; + resp.alliances = resp.alliances.filter((a) => a.denom !== "factory/migaloo190qz7q5fu4079svf890h4h3f8u46ty6cxnlt78eh486k9qm995hquuv9kd/ualliance"); if (chain.name === "Terra") { const allianceHubDenom = Object.keys(chain.alliance_coins).find((key: string) => chain.alliance_coins[key].hub_contract);