Skip to content

Commit

Permalink
require chains param
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Jan 12, 2024
1 parent 8c27114 commit 327fe8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion modules/pool/pool.gql
Original file line number Diff line number Diff line change
Expand Up @@ -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!]!
Expand Down
6 changes: 0 additions & 6 deletions modules/pool/pool.resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 327fe8d

Please sign in to comment.