diff --git a/modules/pool/pool.gql b/modules/pool/pool.gql index 70bdc153e..f1fa5ed92 100644 --- a/modules/pool/pool.gql +++ b/modules/pool/pool.gql @@ -20,7 +20,7 @@ extend type Query { poolGetBatchSwaps(first: Int, skip: Int, where: GqlPoolSwapFilter): [GqlPoolBatchSwap!]! poolGetJoinExits(first: Int, skip: Int, where: GqlPoolJoinExitFilter): [GqlPoolJoinExit!]! poolGetFeaturedPoolGroups(chains: [GqlChain!]): [GqlPoolFeaturedPoolGroup!]! - poolGetFeaturedPools(chains: [GqlChain!]): [GqlPoolFeaturedPool!]! + poolGetFeaturedPools(chains: [GqlChain!]!): [GqlPoolFeaturedPool!]! poolGetSnapshots(id: String!, chain: GqlChain, range: GqlPoolSnapshotDataRange!): [GqlPoolSnapshot!]! poolGetLinearPools(chains: [GqlChain!]): [GqlPoolLinear!]! poolGetGyroPools(chains: [GqlChain!]): [GqlPoolGyro!]! diff --git a/modules/pool/pool.resolvers.ts b/modules/pool/pool.resolvers.ts index 527ce6821..9f2ff0d7e 100644 --- a/modules/pool/pool.resolvers.ts +++ b/modules/pool/pool.resolvers.ts @@ -59,12 +59,6 @@ const balancerResolvers: Resolvers = { return poolService.getFeaturedPoolGroups(chains); }, poolGetFeaturedPools: async (parent, { chains }, context) => { - const currentChain = headerChain(); - if (!chains && currentChain) { - chains = [currentChain]; - } else if (!chains) { - throw new Error('poolGetFeaturedPools error: Provide "chains" param'); - } return poolService.getFeaturedPools(chains); }, poolGetSnapshots: async (parent, { id, chain, range }, context) => {