Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/cron/cache-pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,23 @@ const handler: ScheduledHandler = metricScope((metrics) => async (event: EventBr
tvlETH: 73.23,
tvlUSD: 416830,
} as V4SubgraphPool)

// MAINNET ETH/WETH: https://etherscan.io/tx/0x0db1d052ce2b8913a78abe91451f2b384a021f531c13d5cc719dd38d5d4cb6c0#eventlog
manuallyIncludedV4Pools.push({
id: '0xf6f2314ac16a878e2bf8ef01ef0a3487e714d397d87f702b9a08603eb3252e92',
feeTier: '0',
tickSpacing: '1',
hooks: '0x57991106cb7aa27e2771beda0d6522f68524a888',
liquidity: '173747248900',
token0: {
id: '0x0000000000000000000000000000000000000000',
},
token1: {
id: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
},
tvlETH: 57736,
tvlUSD: 104153666,
} as V4SubgraphPool)
}

if (chainId === ChainId.UNICHAIN) {
Expand Down
4 changes: 4 additions & 0 deletions lib/util/hooksAddressesAllowlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export const COINBASE_VERIFIED_HOOKS_ADDRESS_ON_BASE = '0x5cd525c621AFCa515Bf586
export const BTC_ACC_ON_BASE = '0x704268ac7043aeef50f47b6a03ae68ccf808e044'
export const MEV_TAX_TEST_IN_PROD_ON_UNICHAIN = '0xb9a17e66db950e00822c2b833d6bb304c9b86080'

// WETH related hooks
export const WETH_HOOKS_ADDRESS_ON_MAINNET = '0x57991106cb7aa27e2771beda0d6522f68524a888'

// example pool: https://app.uniswap.org/explore/pools/unichain/0xeec51c6b1a9e7c4bb4fc4fa9a02fc4fff3fe94efd044f895d98b5bfbd2ff9433
export const BUNNI_ON_UNICHAIN = '0x005aF73a245d8171A0550ffAe2631f12cc211888'
// example pool: https://app.uniswap.org/explore/pools/unichain/0x7dbe9918ba991e7c2b078ec8ce882a060024a6126927cf66553a359e427f2f6a
Expand All @@ -37,6 +40,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
BUNNI_HOOKS_ADDRESS_v1_0_ON_L1,
BUNNI_HOOKS_ADDRESS_V1_1_ON_L1,
BUNNI_HOOKS_ADDRESS_V1_1_1_ON_L1,
WETH_HOOKS_ADDRESS_ON_MAINNET,
],
[ChainId.GOERLI]: [ADDRESS_ZERO],
[ChainId.SEPOLIA]: [ADDRESS_ZERO, extraHooksAddressesOnSepolia],
Expand Down
11 changes: 11 additions & 0 deletions lib/util/v4HooksPoolsFiltering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ export function v4HooksPoolsFiltering(chainId: ChainId, pools: Array<V4SubgraphP

let additionalAllowedPool = 0

// MAINNET WETH/ETH
if (
pool.id.toLowerCase() === '0xf6f2314ac16a878e2bf8ef01ef0a3487e714d397d87f702b9a08603eb3252e92'.toLowerCase() &&
chainId === ChainId.MAINNET
) {
pool.tvlETH = 57736 // https://app.uniswap.org/explore/pools/ethereum/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640
pool.tvlUSD = 104153666 // https://app.uniswap.org/explore/pools/ethereum/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640
log.debug(`Setting tvl for MAINNET WETH/ETH pool ${JSON.stringify(pool)}`)
additionalAllowedPool += 1
}

// ETH/flETH
if (
pool.id.toLowerCase() === '0x14287e3268eb628fcebd2d8f0730b01703109e112a7a41426a556d10211d2086'.toLowerCase() &&
Expand Down