Skip to content

Commit f043d22

Browse files
committed
adding new Zora hook
1 parent ca63710 commit f043d22

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/util/hooksAddressesAllowlist.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const ZORA_POST_HOOK_ON_BASE_v1_1_2 = '0x9ea932730a7787000042e34390b8e435
6969
export const ZORA_POST_HOOK_ON_BASE_v2_2 = '0xff74be9d3596ea7a33bb4983dd7906fb34135040'
7070
export const ZORA_POST_HOOK_ON_BASE_v2_2_1 = '0x2b15a16b3ef024005ba899bb51764fcd58cf9040'
7171
export const ZORA_POST_HOOK_ON_BASE_v2_3_0 = '0xc8d077444625eb300a427a6dfb2b1dbf9b159040'
72+
export const ZORA_POST_HOOK_ON_BASE_v2_4_0 = '0xe2b4100de1cd284bd364f738d1354715515c90c0'
7273

7374
// example pool: https://app.uniswap.org/explore/pools/base/0x9cd78cc37624a69c32bc554d98460f9290bde0a3067583afaa7ec8de0a753ee3
7475
export const DOPPLER_HOOKS_ADDRESS_ON_BASE = '0x77bb2a8f1ab2a384918a4c090cd8ae82dc5078e0'
@@ -307,6 +308,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
307308
ZORA_POST_HOOK_ON_BASE_v2_2,
308309
ZORA_POST_HOOK_ON_BASE_v2_2_1,
309310
ZORA_POST_HOOK_ON_BASE_v2_3_0,
311+
ZORA_POST_HOOK_ON_BASE_v2_4_0,
310312
FEY_ON_BASE,
311313
PUBHOUSE_HOOK_ON_BASE,
312314
DELI_HOOK_ADDRESS_ON_BASE,

lib/util/v4HooksPoolsFiltering.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
ZORA_POST_HOOK_ON_BASE_v2_2,
2626
ZORA_POST_HOOK_ON_BASE_v2_2_1,
2727
ZORA_POST_HOOK_ON_BASE_v2_3_0,
28+
ZORA_POST_HOOK_ON_BASE_v2_4_0,
2829
} from './hooksAddressesAllowlist'
2930
import { ChainId, Currency, Token } from '@uniswap/sdk-core'
3031
import { PriorityQueue } from '@datastructures-js/priority-queue'
@@ -188,7 +189,8 @@ export function v4HooksPoolsFiltering(chainId: ChainId, pools: Array<V4SubgraphP
188189
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v1_1_2 ||
189190
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_2 ||
190191
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_2_1 ||
191-
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_3_0) &&
192+
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_3_0 ||
193+
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_4_0) &&
192194
chainId === ChainId.BASE
193195
if (isZoraPool) {
194196
if (pool.tvlETH <= 0.001) {

0 commit comments

Comments
 (0)