Skip to content

Commit 6e1bfc5

Browse files
authored
Merge branch 'main' into feature/findex-bsc-hook
2 parents b0fbeed + 27877b7 commit 6e1bfc5

File tree

5 files changed

+72
-81
lines changed

5 files changed

+72
-81
lines changed

lib/handlers/router-entities/route-caching/dynamo-route-caching-provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ export class DynamoRouteCachingProvider extends IRouteCachingProvider {
457457
// requestId is from upstream TAPI
458458
// then we can correlate the async request with the sync request
459459
asyncRequestId: alphaRouterConfig?.requestId,
460+
slippageTolerance: swapOptions?.slippageTolerance,
460461
},
461462
}
462463

lib/util/hooksAddressesAllowlist.ts

Lines changed: 24 additions & 1 deletion
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'
@@ -169,6 +170,11 @@ export const RING_FEW_DAI_HOOK_ON_MAINNET = '0x85b648a64aed6307d5d5ce26e6ae086c1
169170
export const RING_FEW_WEETH_HOOK_ON_MAINNET = '0x877323adbf747f85eb8d182d42f01f34a5492888'
170171
// example pool: https://app.uniswap.org/explore/pools/ethereum/0xe7c2f30fd89238331b0e3e6ac6351578d5e3091b7839eff321c29cf88e17274e
171172
export const RING_FEW_WSTETH_HOOK_ON_MAINNET = '0x75ae0292e8ad3ab60b9a1a7b3046d3f4abdfa888'
173+
// example pool BSC: https://app.uniswap.org/explore/pools/bnb/0x085182518e82062e732fcb912becdf7140b42f8da31c7afd850db3c6d4309c8a
174+
export const BVCC_DYNAMIC_FEE_HOOK_ON_BSC = '0x8a36d8408f5285c3f81509947bc187b3c0efd0c4'
175+
export const BVCC_DYNAMIC_FEE_HOOK_ON_MAINNET = '0xf9ced7d0f5292af02385410eda5b7570b10b50c4'
176+
export const BVCC_DYNAMIC_FEE_HOOK_ON_ARBITRUM = '0x2097d7329389264a1542ad50802bb0de84a650c4'
177+
export const BVCC_DYNAMIC_FEE_HOOK_ON_BASE = '0x2c56c1302b6224b2bb1906c46f554622e12f10c4'
172178

173179
// example pool: https://app.uniswap.org/explore/pools/ethereum/0x95caa20ff578db4ceec56162bedc21e31adc70ef717661e11d6d1d74e9b2f844
174180
export const MEME_STRATEGY_HOOK_ON_MAINNET = '0x3ba779bad405d9b68a7a7a86ff6916c806a200cc'
@@ -200,6 +206,15 @@ export const ARRAKIS_PRIVATE_HOOK_ON_MAINNET = '0xf9527fb5a34ac6fbc579e4fbc3bf29
200206
// example pool: https://app.uniswap.org/explore/pools/ethereum/0xe1b5535dda2fc16079a8bfaf408acec9ca7aca84e2e48c3715e51da6ec8051f6
201207
export const CUSTOM_FEE_MEV_PROTECTION_HOOK_ON_MAINNET = '0xD5770936a6678353F1B17C342B29c4416B029080'
202208

209+
// example pool: https://app.uniswap.org/explore/pools/arbitrum/0xec6e37b2d66aa5ef5a9fc296b4da3474b121f512428dd425a51c6424955fc5eb
210+
export const DORY_BURN_AND_MINT_POWER_HOOK_ON_ARBITRUM = '0x6b70fef40d3925881251c018164dBCEC6bc94040'
211+
212+
// example pool: https://app.uniswap.org/explore/pools/base/0xd2e486be751887088da2f4bf76a5872e0810d1bcaf43efec7d4bea3acbc3135a
213+
export const BASEMEME_HOOK_ADDRESS_ON_BASE = '0x755776c51399f7ee15d47ddaf47347d26f5ca840'
214+
215+
// example pool: https://app.uniswap.org/explore/pools/base/0xaca93c6543498289affeab3b3645b0faa3c660d73d76a3d271c8b92339f88589
216+
export const AI_PROTOCOL_SWAP_FEE_HOOK_V1_ON_BASE = '0x121f94835dab08ebaf084809a97e525b69e400cc'
217+
203218
// we do not allow v4 pools with non-zero hook address to be routed through in the initial v4 launch.
204219
// this is the ultimate safeguard in the routing subgraph pool cron job.
205220
export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } = {
@@ -232,6 +247,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
232247
TOKEN_FLOW_TAX_HOOK_ON_MAINNET,
233248
ARRAKIS_PRIVATE_HOOK_ON_MAINNET,
234249
CUSTOM_FEE_MEV_PROTECTION_HOOK_ON_MAINNET,
250+
BVCC_DYNAMIC_FEE_HOOK_ON_MAINNET,
235251
],
236252
[ChainId.GOERLI]: [ADDRESS_ZERO],
237253
[ChainId.SEPOLIA]: [ADDRESS_ZERO, extraHooksAddressesOnSepolia, FEY_ON_SEPOLIA],
@@ -245,6 +261,8 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
245261
CLANKER_STATIC_FEE_HOOKS_ADDRESS_ON_ARBITRUM,
246262
WETH_HOOKS_ADDRESS_ON_ARBITRUM,
247263
LIMIT_ORDER_HOOKS_ADDRESS_ON_ARBITRUM,
264+
DORY_BURN_AND_MINT_POWER_HOOK_ON_ARBITRUM,
265+
BVCC_DYNAMIC_FEE_HOOK_ON_ARBITRUM,
248266
],
249267
[ChainId.ARBITRUM_GOERLI]: [ADDRESS_ZERO],
250268
[ChainId.ARBITRUM_SEPOLIA]: [ADDRESS_ZERO],
@@ -254,7 +272,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
254272
[ChainId.CELO_ALFAJORES]: [ADDRESS_ZERO],
255273
[ChainId.GNOSIS]: [ADDRESS_ZERO],
256274
[ChainId.MOONBEAM]: [ADDRESS_ZERO],
257-
[ChainId.BNB]: [ADDRESS_ZERO, FINDEX_HOOK_ON_BNB],
275+
[ChainId.BNB]: [ADDRESS_ZERO, FINDEX_HOOK_ON_BNB, BVCC_DYNAMIC_FEE_HOOK_ON_BSC],
258276
[ChainId.AVALANCHE]: [ADDRESS_ZERO, AVAXSTRATEGIES_STATIC_FEE_HOOKS_ADDRESS_ON_AVAX],
259277
[ChainId.BASE_GOERLI]: [ADDRESS_ZERO],
260278
[ChainId.BASE_SEPOLIA]: [ADDRESS_ZERO],
@@ -293,6 +311,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
293311
ZORA_POST_HOOK_ON_BASE_v2_2,
294312
ZORA_POST_HOOK_ON_BASE_v2_2_1,
295313
ZORA_POST_HOOK_ON_BASE_v2_3_0,
314+
ZORA_POST_HOOK_ON_BASE_v2_4_0,
296315
FEY_ON_BASE,
297316
PUBHOUSE_HOOK_ON_BASE,
298317
DELI_HOOK_ADDRESS_ON_BASE,
@@ -301,12 +320,16 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
301320
SUPERSTRATEGY_HOOK_ON_BASE,
302321
SIMPLE_SELL_TAX_HOOK_ON_BASE,
303322
WASSBLASTER_HOOK_ON_BASE,
323+
BVCC_DYNAMIC_FEE_HOOK_ON_BASE,
304324
AEGIS_V3,
305325
FARSTR_HOOKS_ADDRESS_ON_BASE,
306326
ARTACLE_INDEX_TOKEN_HOOK_ON_BASE,
307327
GPO_HOOKS,
308328
GPX_HOOKS,
309329
ARRAKIS_PRIVATE_HOOK_ON_BASE,
330+
BASEMEME_HOOK_ADDRESS_ON_BASE,
331+
AI_PROTOCOL_SWAP_FEE_HOOK_V1_ON_BASE,
332+
BVCC_DYNAMIC_FEE_HOOK_ON_BASE,
310333
],
311334
[ChainId.ZORA]: [ADDRESS_ZERO],
312335
[ChainId.ZORA_SEPOLIA]: [ADDRESS_ZERO],

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) {

package-lock.json

Lines changed: 40 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@
8686
"@types/stats-lite": "^2.2.0",
8787
"@uniswap/default-token-list": "^11.13.0",
8888
"@uniswap/permit2-sdk": "^1.3.0",
89-
"@uniswap/router-sdk": "^2.3.2",
90-
"@uniswap/sdk-core": "^7.10.0",
89+
"@uniswap/router-sdk": "^2.3.5",
90+
"@uniswap/sdk-core": "^7.10.1",
9191
"@uniswap/smart-order-router": "4.31.8",
9292
"@uniswap/smart-wallet-sdk": "^2.1.1",
9393
"@uniswap/token-lists": "^1.0.0-beta.33",
94-
"@uniswap/universal-router-sdk": "^4.29.2",
94+
"@uniswap/universal-router-sdk": "^4.29.5",
9595
"@uniswap/v2-sdk": "^4.17.0",
9696
"@uniswap/v3-periphery": "^1.4.4",
9797
"@uniswap/v3-sdk": "^3.27.0",
98-
"@uniswap/v4-sdk": "^1.25.1",
98+
"@uniswap/v4-sdk": "^1.25.6",
9999
"async-retry": "^1.3.1",
100100
"aws-cdk-lib": "^2.137.0",
101101
"aws-embedded-metrics": "^2.0.6",

0 commit comments

Comments
 (0)