Skip to content
Merged
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
2 changes: 2 additions & 0 deletions lib/util/hooksAddressesAllowlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const ZORA_POST_HOOK_ON_BASE_v1_1_2 = '0x9ea932730a7787000042e34390b8e435
export const ZORA_POST_HOOK_ON_BASE_v2_2 = '0xff74be9d3596ea7a33bb4983dd7906fb34135040'
export const ZORA_POST_HOOK_ON_BASE_v2_2_1 = '0x2b15a16b3ef024005ba899bb51764fcd58cf9040'
export const ZORA_POST_HOOK_ON_BASE_v2_3_0 = '0xc8d077444625eb300a427a6dfb2b1dbf9b159040'
export const ZORA_POST_HOOK_ON_BASE_v2_4_0 = '0xe2b4100de1cd284bd364f738d1354715515c90c0'

// example pool: https://app.uniswap.org/explore/pools/base/0x9cd78cc37624a69c32bc554d98460f9290bde0a3067583afaa7ec8de0a753ee3
export const DOPPLER_HOOKS_ADDRESS_ON_BASE = '0x77bb2a8f1ab2a384918a4c090cd8ae82dc5078e0'
Expand Down Expand Up @@ -307,6 +308,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
ZORA_POST_HOOK_ON_BASE_v2_2,
ZORA_POST_HOOK_ON_BASE_v2_2_1,
ZORA_POST_HOOK_ON_BASE_v2_3_0,
ZORA_POST_HOOK_ON_BASE_v2_4_0,
FEY_ON_BASE,
PUBHOUSE_HOOK_ON_BASE,
DELI_HOOK_ADDRESS_ON_BASE,
Expand Down
4 changes: 3 additions & 1 deletion lib/util/v4HooksPoolsFiltering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
ZORA_POST_HOOK_ON_BASE_v2_2,
ZORA_POST_HOOK_ON_BASE_v2_2_1,
ZORA_POST_HOOK_ON_BASE_v2_3_0,
ZORA_POST_HOOK_ON_BASE_v2_4_0,
} from './hooksAddressesAllowlist'
import { ChainId, Currency, Token } from '@uniswap/sdk-core'
import { PriorityQueue } from '@datastructures-js/priority-queue'
Expand Down Expand Up @@ -188,7 +189,8 @@ export function v4HooksPoolsFiltering(chainId: ChainId, pools: Array<V4SubgraphP
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v1_1_2 ||
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_2 ||
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_2_1 ||
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_3_0) &&
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_3_0 ||
pool.hooks.toLowerCase() === ZORA_POST_HOOK_ON_BASE_v2_4_0) &&
chainId === ChainId.BASE
if (isZoraPool) {
if (pool.tvlETH <= 0.001) {
Expand Down
Loading