From af75750e8ccd3a8230fb321b9b677756f82c6b43 Mon Sep 17 00:00:00 2001 From: Vasilis Xouris Date: Mon, 10 Feb 2025 12:26:39 -0800 Subject: [PATCH 1/2] fix(poolCache): add missing L2 subgraph configs --- lib/cron/cache-config.ts | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/lib/cron/cache-config.ts b/lib/cron/cache-config.ts index ff67bc3db6..d287231d2d 100644 --- a/lib/cron/cache-config.ts +++ b/lib/cron/cache-config.ts @@ -57,6 +57,8 @@ export const v3SubgraphUrlOverride = (chainId: ChainId) => { return `https://subgraph.satsuma-prod.com/${process.env.ALCHEMY_QUERY_KEY}/uniswap/uniswap-v3-astrochain-sepolia/api` case ChainId.UNICHAIN: return `https://subgraph.satsuma-prod.com/${process.env.ALCHEMY_QUERY_KEY}/uniswap/uniswap-v3-unichain-mainnet/api` + case ChainId.ZORA: + return `https://subgraph.satsuma-prod.com/${process.env.ALCHEMY_QUERY_KEY}/uniswap/uniswap-v3-zora/api` default: return undefined } @@ -245,6 +247,35 @@ export const chainProtocols = [ v3SubgraphUrlOverride(ChainId.UNICHAIN) ), }, + { + protocol: Protocol.V3, + chainId: ChainId.WORLDCHAIN, + timeout: 90000, + provider: new V3SubgraphProvider( + ChainId.WORLDCHAIN, + 3, + 90000, + true, + v3TrackedEthThreshold, + v3UntrackedUsdThreshold, + v3SubgraphUrlOverride(ChainId.WORLDCHAIN) + ), + }, + { + protocol: Protocol.V3, + chainId: ChainId.ZORA, + timeout: 90000, + provider: new V3SubgraphProvider( + ChainId.ZORA, + 3, + 90000, + true, + v3TrackedEthThreshold, + v3UntrackedUsdThreshold, + v3SubgraphUrlOverride(ChainId.ZORA) + ), + }, + // V2. { protocol: Protocol.V2, @@ -366,6 +397,21 @@ export const chainProtocols = [ v2SubgraphUrlOverride(ChainId.BLAST) ), }, + { + protocol: Protocol.V2, + chainId: ChainId.WORLDCHAIN, + timeout: 90000, + provider: new V2SubgraphProvider( + ChainId.WORLDCHAIN, + 3, + 90000, + true, + 1000, + v2TrackedEthThreshold, + v2UntrackedUsdThreshold, + v2SubgraphUrlOverride(ChainId.WORLDCHAIN) + ), + }, { protocol: Protocol.V2, chainId: ChainId.MONAD_TESTNET, From 819e8d44180ed801144a0eabc1cc6aafea856da7 Mon Sep 17 00:00:00 2001 From: Vasilis Xouris Date: Mon, 10 Feb 2025 12:30:15 -0800 Subject: [PATCH 2/2] fix prettier --- lib/cron/cache-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cron/cache-config.ts b/lib/cron/cache-config.ts index d287231d2d..d3f671a570 100644 --- a/lib/cron/cache-config.ts +++ b/lib/cron/cache-config.ts @@ -440,7 +440,7 @@ export const chainProtocols = [ v2TrackedEthThreshold, v2UntrackedUsdThreshold, v2SubgraphUrlOverride(ChainId.UNICHAIN) - ) + ), }, // V4 {