Skip to content

Commit

Permalink
fix: unichain v2 and v3 subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Feb 10, 2025
1 parent e246aac commit 430671f
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion lib/cron/cache-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 430671f

Please sign in to comment.