Skip to content

Commit 445f347

Browse files
authored
feat: allowlist WETH on Mainnet (#1207)
forgot to submit the WETH hook on Mainnet. It was sitting on my local
1 parent fc9ec1f commit 445f347

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

lib/cron/cache-pools.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,31 @@ const handler: ScheduledHandler = metricScope((metrics) => async (event: EventBr
436436
} as V4SubgraphPool)
437437
}
438438

439+
if (chainId === ChainId.MAINNET) {
440+
// Mainnet ETH/WETH: https://app.uniswap.org/explore/pools/ethereum/0xf6f2314ac16a878e2bf8ef01ef0a3487e714d397d87f702b9a08603eb3252e92
441+
manuallyIncludedV4Pools.push({
442+
id: '0xf6f2314ac16a878e2bf8ef01ef0a3487e714d397d87f702b9a08603eb3252e92',
443+
feeTier: '0',
444+
tickSpacing: '1',
445+
hooks: '0x57991106cb7aa27e2771beda0d6522f68524a888',
446+
liquidity: '482843960670027606548690',
447+
token0: {
448+
symbol: 'ETH',
449+
id: '0x0000000000000000000000000000000000000000',
450+
name: 'ETH',
451+
decimals: '18',
452+
},
453+
token1: {
454+
symbol: 'WETH',
455+
id: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
456+
name: 'WETH',
457+
decimals: '18',
458+
},
459+
tvlETH: 44000.1795925485023741879813651641809,
460+
tvlUSD: 95050000.95363442908526427214106054717,
461+
} as V4SubgraphPool)
462+
}
463+
439464
manuallyIncludedV4Pools.forEach((pool) => pools.push(pool))
440465

441466
pools = v4HooksPoolsFiltering(chainId, pools as Array<V4SubgraphPool>)

lib/util/hooksAddressesAllowlist.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const CLANKER_STATIC_FEE_HOOKS_ADDRESS_ON_UNICHAIN = '0xbc6e5abda425309c2
3434
export const WETH_HOOKS_ADDRESS_ON_OP_MAINNET = '0x480dafdb4d6092ef3217595b75784ec54b52e888'
3535
export const WETH_HOOKS_ADDRESS_ON_UNICHAIN = '0x730b109bad65152c67ecc94eb8b0968603dba888'
3636
export const WETH_HOOKS_ADDRESS_ON_BASE = '0xb08211d57032dd10b1974d4b876851a7f7596888'
37+
export const WETH_HOOKS_ADDRESS_ON_MAINNET = '0x57991106cb7aa27e2771beda0d6522f68524a888'
3738

3839
export const WETH_HOOKS_ADDRESS_ON_ARBITRUM = '0x2a4adf825bd96598487dbb6b2d8d882a4eb86888'
3940

@@ -73,6 +74,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
7374
BUNNI_HOOKS_ADDRESS_v1_1,
7475
BUNNI_HOOKS_ADDRESS_v1_1_1,
7576
BUNNI_HOOKS_ADDRESS_v1_2_1,
77+
WETH_HOOKS_ADDRESS_ON_MAINNET,
7678
],
7779
[ChainId.GOERLI]: [ADDRESS_ZERO],
7880
[ChainId.SEPOLIA]: [ADDRESS_ZERO, extraHooksAddressesOnSepolia],

0 commit comments

Comments
 (0)