Skip to content

Commit 99cfddd

Browse files
authored
Merge branch 'main' into feature/findex-bsc-hook
2 parents 3976270 + 8c25c46 commit 99cfddd

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

bin/stacks/routing-api-stack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ export class RoutingAPIStack extends cdk.Stack {
288288
} = new RoutingDatabaseStack(this, 'RoutingDatabaseStack', {})
289289

290290
const { routingLambda, routingLambdaAlias } = new RoutingLambdaStack(this, 'RoutingLambdaStack', {
291+
stage,
291292
poolCacheBucket,
292293
poolCacheBucket2,
293294
poolCacheBucket3,

bin/stacks/routing-lambda-stack.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import { Construct } from 'constructs'
1313
import * as path from 'path'
1414
import { DynamoDBTableProps } from './routing-database-stack'
1515
import { RetentionDays } from 'aws-cdk-lib/aws-logs'
16+
import { STAGE } from '../../lib/util/stage'
1617

1718
export interface RoutingLambdaStackProps extends cdk.NestedStackProps {
19+
stage: string
1820
poolCacheBucket: aws_s3.Bucket
1921
poolCacheBucket2: aws_s3.Bucket
2022
poolCacheBucket3: aws_s3.Bucket
@@ -48,6 +50,7 @@ export class RoutingLambdaStack extends cdk.NestedStack {
4850
constructor(scope: Construct, name: string, props: RoutingLambdaStackProps) {
4951
super(scope, name, props)
5052
const {
53+
stage,
5154
poolCacheBucket,
5255
poolCacheBucket2,
5356
poolCacheBucket3,
@@ -172,7 +175,8 @@ export class RoutingLambdaStack extends cdk.NestedStack {
172175
// 11/8/23: URA currently calls the Routing API with a timeout of 10 seconds.
173176
// Set this lambda's timeout to be slightly lower to give them time to
174177
// log the response in the event of a failure on our end.
175-
timeout: cdk.Duration.seconds(9),
178+
// Beta uses a higher timeout to allow for more thorough routing exploration.
179+
timeout: cdk.Duration.seconds(stage === STAGE.BETA ? 18 : 9),
176180
memorySize: 5120,
177181
deadLetterQueueEnabled: true,
178182
bundling: {

lib/util/hooksAddressesAllowlist.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const ZORA_POST_HOOK_ON_BASE_v2_4_0 = '0xf6d0a13609bb5779bc5d639f2ba3bfda
7373

7474
// example pool: https://app.uniswap.org/explore/pools/base/0x9cd78cc37624a69c32bc554d98460f9290bde0a3067583afaa7ec8de0a753ee3
7575
export const DOPPLER_HOOKS_ADDRESS_ON_BASE = '0x77bb2a8f1ab2a384918a4c090cd8ae82dc5078e0'
76+
export const DOPPLER_HOOKS_ADDRESS_ON_BASE_V2 = '0xbb7784a4d481184283ed89619a3e3ed143e1adc0'
7677
export const DOPPLER_HOOKS_ADDRESS_ON_MONAD = '0x580ca49389d83b019d07E17e99454f2F218e2dc0'
7778

7879
// LimitOrderHook addresses: https://linear.app/uniswap/issue/ROUTE-625
@@ -121,6 +122,8 @@ export const AQUINAS_HOOK_ADDRESS_ON_BASE = '0xd3c1f2174f37f88811f99b1b1b4c1356c
121122
// example pool: https://app.uniswap.org/explore/pools/ethereum/0x389a26ef4a4634e55fc4e3ae2149c1cafdbc141af16057ab5fab962c2dca5221
122123
export const ASTERIX_HOOK_ADDRESS_ON_MAINNET = '0xdad7ea85ff786b389a13f4714a56b1721b56c044'
123124

125+
export const AZTEC_HOOK_ADDRESS_ON_MAINNET = '0xd53006d1e3110fd319a79aeec4c527a0d265e080'
126+
124127
// example pool: https://app.uniswap.org/explore/pools/base/0x02aaacb8bf6a4c3c3a99d8de43fad01348e68e314b7773fb2df3edac065e0c4e
125128
export const DELI_HOOK_ADDRESS_ON_BASE = '0x570a48f96035c2874de1c0f13c5075a05683b0cc'
126129
// example pool: https://app.uniswap.org/explore/pools/base/0xa900d06df8073e50a50971720d6d3470d00e64198da3b03c82388f247e0d13c1
@@ -198,6 +201,9 @@ export const GPO_HOOKS = '0x6cabe2fd9fb60c5afcab7de732b0a224fc382eec'
198201
// example pool: https://app.uniswap.org/explore/pools/base/0xe6b8b2f7320759927c826e663ba1a77eaf8156bad1422234d5282c17c5e8f637
199202
export const GPX_HOOKS = '0x4519e2b040ff1b64fa03abe2aef0bc99d7cceaa8'
200203

204+
// example pool: https://app.uniswap.org/explore/pools/base/0xD532BF016A98A1329B83507B376493B0AEBEF85C89AAF6B505A7070ECDD63CDF
205+
export const LIQUID_LAUNCH_HOOK_ON_BASE = '0xea9346e83952840e69beb36df365c4e68de0e080'
206+
201207
// example pool: https://app.uniswap.org/explore/pools/base/0x20aab1b33d63b7d6fc95deed43dfdf986a23a2d82857025533d2c18e2fef9e4b
202208
export const ARRAKIS_PRIVATE_HOOK_ON_BASE = '0xf9527fb5a34ac6fbc579e4fbc3bf292ed57d4880'
203209
// example pool: https://app.uniswap.org/explore/pools/ethereum/0x8679ef619b4ae7a464f8c208df1c49f294df41a237671d98882b50554c20a5c8
@@ -215,6 +221,8 @@ export const BASEMEME_HOOK_ADDRESS_ON_BASE = '0x755776c51399f7ee15d47ddaf47347d2
215221
// example pool: https://app.uniswap.org/explore/pools/base/0xaca93c6543498289affeab3b3645b0faa3c660d73d76a3d271c8b92339f88589
216222
export const AI_PROTOCOL_SWAP_FEE_HOOK_V1_ON_BASE = '0x121f94835dab08ebaf084809a97e525b69e400cc'
217223

224+
export const CLAUNCH_HOOK_ON_BASE = '0x2f9354bbb0edef5c2a5c4b78d0c59d73412a28cc'
225+
218226
// we do not allow v4 pools with non-zero hook address to be routed through in the initial v4 launch.
219227
// this is the ultimate safeguard in the routing subgraph pool cron job.
220228
export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } = {
@@ -248,6 +256,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
248256
ARRAKIS_PRIVATE_HOOK_ON_MAINNET,
249257
CUSTOM_FEE_MEV_PROTECTION_HOOK_ON_MAINNET,
250258
BVCC_DYNAMIC_FEE_HOOK_ON_MAINNET,
259+
AZTEC_HOOK_ADDRESS_ON_MAINNET,
251260
],
252261
[ChainId.GOERLI]: [ADDRESS_ZERO],
253262
[ChainId.SEPOLIA]: [ADDRESS_ZERO, extraHooksAddressesOnSepolia, FEY_ON_SEPOLIA],
@@ -294,6 +303,7 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
294303
CLANKER_STATIC_FEE_HOOKS_ADDRESS_ON_BASE_v2,
295304
WETH_HOOKS_ADDRESS_ON_BASE,
296305
DOPPLER_HOOKS_ADDRESS_ON_BASE,
306+
DOPPLER_HOOKS_ADDRESS_ON_BASE_V2,
297307
LIMIT_ORDER_HOOKS_ADDRESS_ON_BASE,
298308
ZORA_CREATOR_HOOK_ON_BASE_v1,
299309
ZORA_CREATOR_HOOK_ON_BASE_v1_0_0_1,
@@ -329,7 +339,9 @@ export const HOOKS_ADDRESSES_ALLOWLIST: { [chain in ChainId]: Array<string> } =
329339
ARRAKIS_PRIVATE_HOOK_ON_BASE,
330340
BASEMEME_HOOK_ADDRESS_ON_BASE,
331341
AI_PROTOCOL_SWAP_FEE_HOOK_V1_ON_BASE,
342+
LIQUID_LAUNCH_HOOK_ON_BASE,
332343
BVCC_DYNAMIC_FEE_HOOK_ON_BASE,
344+
CLAUNCH_HOOK_ON_BASE,
333345
],
334346
[ChainId.ZORA]: [ADDRESS_ZERO],
335347
[ChainId.ZORA_SEPOLIA]: [ADDRESS_ZERO],

0 commit comments

Comments
 (0)