Skip to content
Closed
Changes from 1 commit
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
21 changes: 19 additions & 2 deletions lib/util/hooksAddressesAllowlist.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChainId } from '@uniswap/sdk-core'

Check failure on line 1 in lib/util/hooksAddressesAllowlist.ts

View workflow job for this annotation

GitHub Actions / Prettier

lib/util/hooksAddressesAllowlist.ts#L1

There are issues with this file's formatting, please run Prettier to fix the errors
import { ADDRESS_ZERO } from '@uniswap/router-sdk'

// all hook addresses need to be lower case, since the check in isHooksPoolRoutable assumes lower case
Expand All @@ -18,6 +18,12 @@
export const COINBASE_VERIFIED_HOOKS_ADDRESS_ON_BASE = '0x5cd525c621AFCa515Bf58631D4733fbA7B72Aae4'
export const BTC_ACC_ON_BASE = '0x704268ac7043aeef50f47b6a03ae68ccf808e044'
export const MEV_TAX_TEST_IN_PROD_ON_UNICHAIN = '0xb9a17e66db950e00822c2b833d6bb304c9b86080'
export const WETH_HOOKS_ADDRESS_ON_MAINNET = '0x0x57991106cb7aa27e2771beda0d6522f68524a888'
export const WSTETH_HOOKS_ADDRESS_ON_MAINNET = '0xa88aacf73df2bccfabcfd1e7b597185cac9f2888'
export const WETH_HOOKS_ADDRESS_ON_OP_MAINNET = '0x480dafdb4d6092ef3217595b75784ec54b52e888'
export const WETH_HOOKS_ADDRESS_ON_UNICHAIN = '0x730b109bad65152c67ecc94eb8b0968603dba888'
export const WETH_HOOKS_ADDRESS_ON_ARBITRUM = '0x2a4adf825bd96598487dbb6b2d8d882a4eb86888'
export const WETH_HOOKS_ADDRESS_ON_BASE = '0xb08211d57032dd10b1974d4b876851a7f7596888'

// we do not allow v4 pools with non-zero hook address to be routed through in the initial v4 launch.
// this is the ultimate safeguard in the routing subgraph pool cron job.
Expand All @@ -27,17 +33,23 @@
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,
WSTETH_HOOKS_ADDRESS_ON_MAINNET,
],
[ChainId.GOERLI]: [ADDRESS_ZERO],
[ChainId.SEPOLIA]: [ADDRESS_ZERO, extraHooksAddressesOnSepolia],
[ChainId.OPTIMISM]: [ADDRESS_ZERO],
[ChainId.OPTIMISM]: [
ADDRESS_ZERO,
WETH_HOOKS_ADDRESS_ON_OP_MAINNET,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsy1218 can you please confirm if OP_MAINNET should be placed under this category?

],
[ChainId.OPTIMISM_GOERLI]: [ADDRESS_ZERO],
[ChainId.OPTIMISM_SEPOLIA]: [ADDRESS_ZERO],
[ChainId.ARBITRUM_ONE]: [
ADDRESS_ZERO,
BUNNI_HOOKS_ADDRESS_v1_0_ON_ARBITRUM,
BUNNI_HOOKS_ADDRESS_V1_1_ON_BASE,
BUNNI_HOOKS_ADDRESS_V1_1_1_ON_ARBITRUM,
WETH_HOOKS_ADDRESS_ON_ARBITRUM,
],
[ChainId.ARBITRUM_GOERLI]: [ADDRESS_ZERO],
[ChainId.ARBITRUM_SEPOLIA]: [ADDRESS_ZERO],
Expand All @@ -61,6 +73,7 @@
GRADUATION_HOOKS_ADDRESS_ON_BASE,
COINBASE_VERIFIED_HOOKS_ADDRESS_ON_BASE,
BTC_ACC_ON_BASE,
WETH_HOOKS_ADDRESS_ON_BASE,
],
[ChainId.ZORA]: [ADDRESS_ZERO],
[ChainId.ZORA_SEPOLIA]: [ADDRESS_ZERO],
Expand All @@ -69,7 +82,11 @@
[ChainId.ZKSYNC]: [ADDRESS_ZERO],
[ChainId.WORLDCHAIN]: [ADDRESS_ZERO],
[ChainId.UNICHAIN_SEPOLIA]: [ADDRESS_ZERO],
[ChainId.UNICHAIN]: [ADDRESS_ZERO, MEV_TAX_TEST_IN_PROD_ON_UNICHAIN],
[ChainId.UNICHAIN]: [
ADDRESS_ZERO,
MEV_TAX_TEST_IN_PROD_ON_UNICHAIN,
WETH_HOOKS_ADDRESS_ON_UNICHAIN,
],
[ChainId.MONAD_TESTNET]: [ADDRESS_ZERO],
[ChainId.SONEIUM]: [ADDRESS_ZERO],
}