Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(uniswap-v2): Make cache key generic in helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pwele committed Jun 14, 2022
1 parent 3a152a7 commit 4e0a68f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export class UniswapV2TheGraphPoolTokenAddressStrategy {
constructor(@Inject(APP_TOOLKIT) private readonly appToolkit: IAppToolkit) {}

@Cache({
key: (network: Network) => `studio-uniswap-v2-the-graph-pool-token-addresses:${network}:uniswap-v2`,
key: (network: Network, appId: string, groupId: string) =>
`studio-the-graph-pool-token-addresses:${network}:${appId}:${groupId}`,
ttl: 5 * 60,
})
async getPoolAddresses(
Expand Down

0 comments on commit 4e0a68f

Please sign in to comment.