Skip to content

Commit b955a16

Browse files
authored
Merge branch 'main' into new-hooks-routing
2 parents 09baf32 + e3234d1 commit b955a16

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

lib/cron/cache-config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ export const v4SubgraphUrlOverride = (chainId: ChainId) => {
130130
return `https://api.goldsky.com/api/private/${process.env.GOLD_SKY_API_KEY}/subgraphs/uniswap-v4-monad/prod/gn`
131131
case ChainId.XLAYER:
132132
return `https://gateway.thegraph.com/api/subgraphs/id/${process.env.GRAPH_XLAYER_V4_ID}`
133+
case ChainId.AVALANCHE:
134+
return `https://api.aws-us-east-1.goldsky.com/c/uniswap2/gn/subgraphs/id/${process.env.GOLD_SKY_AVALANCHE_V4_ID}`
133135
default:
134136
return undefined
135137
}
@@ -902,4 +904,20 @@ export const chainProtocols = [
902904
process.env.GRAPH_BEARER_TOKEN
903905
),
904906
},
907+
{
908+
protocol: Protocol.V4,
909+
chainId: ChainId.AVALANCHE,
910+
timeout: 90000,
911+
provider: new V4SubgraphProvider(
912+
ChainId.AVALANCHE,
913+
3,
914+
90000,
915+
true,
916+
v4TrackedEthThreshold,
917+
v4BaseZoraTrackedEthThreshold,
918+
ZORA_HOOKS_FOR_V4_SUBGRAPH_FILTERING,
919+
v4UntrackedUsdThreshold,
920+
v4SubgraphUrlOverride(ChainId.AVALANCHE)
921+
),
922+
},
905923
]

lib/util/hooksAddressesAllowlist.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export const AVAXSTRATEGIES_STATIC_FEE_HOOKS_ADDRESS_ON_AVAX = '0x3b48f794a1d67f
178178

179179
// example pool: https://app.uniswap.org/explore/pools/base/0x796b074977701c1156e7fc95d84dfa739963f2de33af8b61c2b7ad5b7018e0e9
180180
export const ARTACLE_INDEX_TOKEN_HOOK_ON_BASE = '0xd577f945b6025ce1e60ac1a82f2ee8ff3fb428c4'
181+
export const AVAXSTRATEGIES_STATIC_FEE_HOOKS_ADDRESS_ON_AVAX = '0x3b48f794A1D67FeBe95f66B6Dff38c0A7e934044'
181182
// example pool: https://app.uniswap.org/explore/pools/ethereum/0x0c1b00338ecfc1f4894a309420c2d8d654e500036268dd251b99decc66bd2b51
182183
export const TOKEN_FLOW_TAX_HOOK_ON_MAINNET = '0x74803bd586fa5ce3a9ab38b49a7ca633af8700cc'
183184
// example pool: https://app.uniswap.org/explore/pools/base/0xe6b8b2f7320759927c826e663ba1a77eaf8156bad1422234d5282c17c5e8f637

0 commit comments

Comments
 (0)