Skip to content

Commit

Permalink
add chains args to functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Nov 29, 2023
1 parent e23ec9f commit f9dc003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/pool/pool.resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const balancerResolvers: Resolvers = {
}
return poolService.getPoolJoinExits(args);
},
poolGetFeaturedPoolGroups: async (parent, args, context) => {
return poolService.getFeaturedPoolGroups();
poolGetFeaturedPoolGroups: async (parent, { chains }, context) => {
return poolService.getFeaturedPoolGroups(chains);
},
poolGetSnapshots: async (parent, { id, chain, range }, context) => {
const currentChain = headerChain();
Expand Down
2 changes: 1 addition & 1 deletion modules/pool/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class PoolService {
return this.poolSwapService.getJoinExits(args);
}

public async getFeaturedPoolGroups(): Promise<GqlPoolFeaturedPoolGroup[]> {
public async getFeaturedPoolGroups(chains: Chain[]): Promise<GqlPoolFeaturedPoolGroup[]> {
const cached: GqlPoolFeaturedPoolGroup[] = await this.cache.get(
`${FEATURED_POOL_GROUPS_CACHE_KEY}:${this.chainId}`,
);
Expand Down

0 comments on commit f9dc003

Please sign in to comment.