Skip to content

ROUTE-547 allowlist WETH on ARBITRUM_ONE #1133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
19 changes: 19 additions & 0 deletions lib/cron/cache-pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,25 @@ const handler: ScheduledHandler = metricScope((metrics) => async (event: EventBr
} as V4SubgraphPool)
}

if (chainId === ChainId.ARBITRUM_ONE) {
// ARBITRUM ETH/WETH: https://arbiscan.io/tx/0x0b393d141a3770292ae8508626a4443307403b0b958b7d0eff70fca2fb85c106#eventlog
manuallyIncludedV4Pools.push({
id: '0xc1c777843809a8e77a398fd79ecddcefbdad6a5676003ae2eedf3a33a56589e9',
feeTier: '0',
tickSpacing: '1',
hooks: '0x2a4adf825bd96598487dbb6b2d8d882a4eb86888',
liquidity: '173747248900',
token0: {
id: '0x0000000000000000000000000000000000000000',
},
token1: {
id: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
},
tvlETH: 23183,
tvlUSD: 41820637,
} as V4SubgraphPool)
}

manuallyIncludedV4Pools.forEach((pool) => pools.push(pool))

pools = v4HooksPoolsFiltering(chainId, pools as Array<V4SubgraphPool>)
Expand Down
3 changes: 3 additions & 0 deletions lib/util/hooksAddressesAllowlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export const WETH_HOOKS_ADDRESS_ON_OP_MAINNET = '0x480dafdb4d6092ef3217595b75784
export const WETH_HOOKS_ADDRESS_ON_UNICHAIN = '0x730b109bad65152c67ecc94eb8b0968603dba888'
export const WETH_HOOKS_ADDRESS_ON_BASE = '0xb08211d57032dd10b1974d4b876851a7f7596888'

export const WETH_HOOKS_ADDRESS_ON_ARBITRUM = '0x2a4adf825bd96598487dbb6b2d8d882a4eb86888'

// 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 Down Expand Up @@ -75,6 +77,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
SLIPPAGE_FEE_HOOK_ON_ARBITRUM,
CLANKER_DYNAMIC_FEE_HOOKS_ADDRESS_ON_ARBITRUM,
CLANKER_STATIC_FEE_HOOKS_ADDRESS_ON_ARBITRUM,
WETH_HOOKS_ADDRESS_ON_ARBITRUM,
],
[ChainId.ARBITRUM_GOERLI]: [ADDRESS_ZERO],
[ChainId.ARBITRUM_SEPOLIA]: [ADDRESS_ZERO],
Expand Down
11 changes: 11 additions & 0 deletions lib/util/v4HooksPoolsFiltering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ export function v4HooksPoolsFiltering(chainId: ChainId, pools: Array<V4SubgraphP
additionalAllowedPool += 1
}

// ARBITRUM ETH/WETH
if (
pool.id.toLowerCase() === '0xc1c777843809a8e77a398fd79ecddcefbdad6a5676003ae2eedf3a33a56589e9'.toLowerCase() &&
chainId === ChainId.ARBITRUM_ONE
) {
pool.tvlETH = 23183 // https://app.uniswap.org/explore/pools/arbitrum/0xC6962004f452bE9203591991D15f6b388e09E8D0
pool.tvlUSD = 41820637 // https://app.uniswap.org/explore/pools/arbitrum/0xC6962004f452bE9203591991D15f6b388e09E8D0
log.debug(`Setting tvl for ARBITRUM ETH/WETH pool ${JSON.stringify(pool)}`)
additionalAllowedPool += 1
}

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