From 12497e6a8ebf8530408f224f1bcec55e0f74c53e Mon Sep 17 00:00:00 2001 From: franz Date: Mon, 5 Feb 2024 16:00:21 +0100 Subject: [PATCH] dont use sanity for featuredpools --- modules/pool/lib/pool-gql-loader.service.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/pool/lib/pool-gql-loader.service.ts b/modules/pool/lib/pool-gql-loader.service.ts index 1f947b197..7950c4cae 100644 --- a/modules/pool/lib/pool-gql-loader.service.ts +++ b/modules/pool/lib/pool-gql-loader.service.ts @@ -213,16 +213,8 @@ export class PoolGqlLoaderService { } public async getFeaturedPools(chains: Chain[]): Promise { - const featuredPoolsFromService: FeaturedPool[] = []; - if (chains.some((chain) => BalancerChainIds.includes(chainToIdMap[chain]))) { - const githubContentService = new GithubContentService(); - featuredPoolsFromService.push(...(await githubContentService.getFeaturedPools(chains))); - } - if (chains.some((chain) => BeethovenChainIds.includes(chainToIdMap[chain]))) { - // chain in constructor doesnt matter for this query as we pass the chain in the param - const sanityContentService = new SanityContentService('FANTOM'); - featuredPoolsFromService.push(...(await sanityContentService.getFeaturedPools(chains))); - } + const githubContentService = new GithubContentService(); + const featuredPoolsFromService = await githubContentService.getFeaturedPools(chains); const featuredPools: GqlPoolFeaturedPool[] = [];