From f65c547d8fd14dc7645cb467631e2f77dc3f2824 Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:17:08 -0800 Subject: [PATCH] fix: unichain v2 and v3 subgraph --- lib/cron/cache-config.ts | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/lib/cron/cache-config.ts b/lib/cron/cache-config.ts index ccb964005c..ff67bc3db6 100644 --- a/lib/cron/cache-config.ts +++ b/lib/cron/cache-config.ts @@ -231,7 +231,20 @@ export const chainProtocols = [ v3SubgraphUrlOverride(ChainId.BLAST) ), }, - + { + protocol: Protocol.V3, + chainId: ChainId.UNICHAIN, + timeout: 90000, + provider: new V3SubgraphProvider( + ChainId.UNICHAIN, + 3, + 90000, + true, + v3TrackedEthThreshold, + v3UntrackedUsdThreshold, + v3SubgraphUrlOverride(ChainId.UNICHAIN) + ), + }, // V2. { protocol: Protocol.V2, @@ -368,6 +381,22 @@ export const chainProtocols = [ v2SubgraphUrlOverride(ChainId.MONAD_TESTNET) ), }, + { + protocol: Protocol.V2, + chainId: ChainId.UNICHAIN, + timeout: 90000, + provider: new V2SubgraphProvider( + ChainId.UNICHAIN, + 3, + 90000, + true, + 1000, + v2TrackedEthThreshold, + v2UntrackedUsdThreshold, + v2SubgraphUrlOverride(ChainId.UNICHAIN) + ) + }, + // V4 { protocol: Protocol.V4, chainId: ChainId.SEPOLIA,