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

fix(uniswap-v2): Make cache key generic in helper #649

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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