Skip to content

Commit

Permalink
fix(poolCache): add missing L2 subgraph configs (#1008)
Browse files Browse the repository at this point in the history
* fix(poolCache): add missing L2 subgraph configs

* fix prettier
  • Loading branch information
xrsv authored Feb 10, 2025
1 parent 53a9cee commit 8496eb1
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion lib/cron/cache-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -394,7 +440,7 @@ export const chainProtocols = [
v2TrackedEthThreshold,
v2UntrackedUsdThreshold,
v2SubgraphUrlOverride(ChainId.UNICHAIN)
)
),
},
// V4
{
Expand Down

0 comments on commit 8496eb1

Please sign in to comment.