@paraswap/dex-lib 2.35.6-ramses-v2-50-fee-pools-bug → 2.35.7-multiple-dex-base-chain

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/abi/aerodrome/aerodrome-pool-factory.json +586 -0
  2. package/build/config.js +15 -15
  3. package/build/dex/balancer-v2/config.js +9 -1
  4. package/build/dex/balancer-v2/config.js.map +1 -1
  5. package/build/dex/index.js +2 -0
  6. package/build/dex/index.js.map +1 -1
  7. package/build/dex/maverick-v1/config.js +10 -0
  8. package/build/dex/maverick-v1/config.js.map +1 -1
  9. package/build/dex/maverick-v1/maverick-v1.js.map +1 -1
  10. package/build/dex/pancakeswap-v3/config.js +17 -0
  11. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  12. package/build/dex/solidly/config.js +13 -0
  13. package/build/dex/solidly/config.js.map +1 -1
  14. package/build/dex/solidly/forks-override/aerodrome.d.ts +14 -0
  15. package/build/dex/solidly/forks-override/aerodrome.js +48 -0
  16. package/build/dex/solidly/forks-override/aerodrome.js.map +1 -0
  17. package/build/dex/solidly/solidly.js +1 -0
  18. package/build/dex/solidly/solidly.js.map +1 -1
  19. package/build/dex/uniswap-v3/config.js +12 -0
  20. package/build/dex/uniswap-v3/config.js.map +1 -1
  21. package/build/dex/woo-fi-v2/config.js +13 -0
  22. package/build/dex/woo-fi-v2/config.js.map +1 -1
  23. package/build/dex-helper/dummy-dex-helper.js +4 -1
  24. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/abi/aerodrome/aerodrome-pool-factory.json +586 -0
  27. package/src/config.ts +15 -15
  28. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +122 -1
  29. package/src/dex/balancer-v2/config.ts +10 -1
  30. package/src/dex/hashflow/hashflow-e2e.test.ts +36 -3
  31. package/src/dex/index.ts +2 -0
  32. package/src/dex/maverick-v1/config.ts +10 -0
  33. package/src/dex/maverick-v1/maverick-v1-e2e.test.ts +121 -1
  34. package/src/dex/maverick-v1/maverick-v1.ts +1 -0
  35. package/src/dex/pancakeswap-v3/config.ts +19 -0
  36. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +120 -0
  37. package/src/dex/solidly/config.ts +14 -0
  38. package/src/dex/solidly/forks-override/aerodrome.ts +57 -0
  39. package/src/dex/solidly/solidly-e2e.test.ts +24 -0
  40. package/src/dex/solidly/solidly.ts +1 -0
  41. package/src/dex/uniswap-v3/config.ts +13 -0
  42. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +25 -4
  43. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +142 -0
  44. package/src/dex/woo-fi-v2/config.ts +13 -0
  45. package/src/dex/woo-fi-v2/woo-fi-v2-e2e.test.ts +64 -0
  46. package/src/dex-helper/dummy-dex-helper.ts +4 -1
  47. package/tests/constants-e2e.ts +30 -0
  48. package/tests/tenderly-simulation.ts +2 -2
  49. package/tests/utils-e2e.ts +3 -1
@@ -0,0 +1,586 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_implementation",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [],
15
+ "name": "FeeInvalid",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "FeeTooHigh",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "InvalidPool",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "NotFeeManager",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "NotPauser",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "NotVoter",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "PoolAlreadyExists",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "SameAddress",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "ZeroAddress",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "ZeroFee",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "anonymous": false,
65
+ "inputs": [
66
+ {
67
+ "indexed": true,
68
+ "internalType": "address",
69
+ "name": "token0",
70
+ "type": "address"
71
+ },
72
+ {
73
+ "indexed": true,
74
+ "internalType": "address",
75
+ "name": "token1",
76
+ "type": "address"
77
+ },
78
+ {
79
+ "indexed": true,
80
+ "internalType": "bool",
81
+ "name": "stable",
82
+ "type": "bool"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "internalType": "address",
87
+ "name": "pool",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint256",
93
+ "name": "",
94
+ "type": "uint256"
95
+ }
96
+ ],
97
+ "name": "PoolCreated",
98
+ "type": "event"
99
+ },
100
+ {
101
+ "anonymous": false,
102
+ "inputs": [
103
+ {
104
+ "indexed": true,
105
+ "internalType": "address",
106
+ "name": "pool",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "indexed": false,
111
+ "internalType": "uint256",
112
+ "name": "fee",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "name": "SetCustomFee",
117
+ "type": "event"
118
+ },
119
+ {
120
+ "anonymous": false,
121
+ "inputs": [
122
+ {
123
+ "indexed": false,
124
+ "internalType": "address",
125
+ "name": "feeManager",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "SetFeeManager",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": false,
137
+ "internalType": "bool",
138
+ "name": "state",
139
+ "type": "bool"
140
+ }
141
+ ],
142
+ "name": "SetPauseState",
143
+ "type": "event"
144
+ },
145
+ {
146
+ "anonymous": false,
147
+ "inputs": [
148
+ {
149
+ "indexed": false,
150
+ "internalType": "address",
151
+ "name": "pauser",
152
+ "type": "address"
153
+ }
154
+ ],
155
+ "name": "SetPauser",
156
+ "type": "event"
157
+ },
158
+ {
159
+ "anonymous": false,
160
+ "inputs": [
161
+ {
162
+ "indexed": false,
163
+ "internalType": "address",
164
+ "name": "voter",
165
+ "type": "address"
166
+ }
167
+ ],
168
+ "name": "SetVoter",
169
+ "type": "event"
170
+ },
171
+ {
172
+ "inputs": [],
173
+ "name": "MAX_FEE",
174
+ "outputs": [
175
+ {
176
+ "internalType": "uint256",
177
+ "name": "",
178
+ "type": "uint256"
179
+ }
180
+ ],
181
+ "stateMutability": "view",
182
+ "type": "function"
183
+ },
184
+ {
185
+ "inputs": [],
186
+ "name": "ZERO_FEE_INDICATOR",
187
+ "outputs": [
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "",
191
+ "type": "uint256"
192
+ }
193
+ ],
194
+ "stateMutability": "view",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "name": "allPools",
206
+ "outputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "allPoolsLength",
219
+ "outputs": [
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "",
223
+ "type": "uint256"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [
231
+ {
232
+ "internalType": "address",
233
+ "name": "tokenA",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "internalType": "address",
238
+ "name": "tokenB",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "bool",
243
+ "name": "stable",
244
+ "type": "bool"
245
+ }
246
+ ],
247
+ "name": "createPool",
248
+ "outputs": [
249
+ {
250
+ "internalType": "address",
251
+ "name": "pool",
252
+ "type": "address"
253
+ }
254
+ ],
255
+ "stateMutability": "nonpayable",
256
+ "type": "function"
257
+ },
258
+ {
259
+ "inputs": [
260
+ {
261
+ "internalType": "address",
262
+ "name": "tokenA",
263
+ "type": "address"
264
+ },
265
+ {
266
+ "internalType": "address",
267
+ "name": "tokenB",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "internalType": "uint24",
272
+ "name": "fee",
273
+ "type": "uint24"
274
+ }
275
+ ],
276
+ "name": "createPool",
277
+ "outputs": [
278
+ {
279
+ "internalType": "address",
280
+ "name": "pool",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "stateMutability": "nonpayable",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "address",
291
+ "name": "",
292
+ "type": "address"
293
+ }
294
+ ],
295
+ "name": "customFee",
296
+ "outputs": [
297
+ {
298
+ "internalType": "uint256",
299
+ "name": "",
300
+ "type": "uint256"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [],
308
+ "name": "feeManager",
309
+ "outputs": [
310
+ {
311
+ "internalType": "address",
312
+ "name": "",
313
+ "type": "address"
314
+ }
315
+ ],
316
+ "stateMutability": "view",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ {
322
+ "internalType": "address",
323
+ "name": "pool",
324
+ "type": "address"
325
+ },
326
+ {
327
+ "internalType": "bool",
328
+ "name": "_stable",
329
+ "type": "bool"
330
+ }
331
+ ],
332
+ "name": "getFee",
333
+ "outputs": [
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "stateMutability": "view",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "inputs": [
345
+ {
346
+ "internalType": "address",
347
+ "name": "tokenA",
348
+ "type": "address"
349
+ },
350
+ {
351
+ "internalType": "address",
352
+ "name": "tokenB",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "internalType": "uint24",
357
+ "name": "fee",
358
+ "type": "uint24"
359
+ }
360
+ ],
361
+ "name": "getPool",
362
+ "outputs": [
363
+ {
364
+ "internalType": "address",
365
+ "name": "",
366
+ "type": "address"
367
+ }
368
+ ],
369
+ "stateMutability": "view",
370
+ "type": "function"
371
+ },
372
+ {
373
+ "inputs": [
374
+ {
375
+ "internalType": "address",
376
+ "name": "tokenA",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "address",
381
+ "name": "tokenB",
382
+ "type": "address"
383
+ },
384
+ {
385
+ "internalType": "bool",
386
+ "name": "stable",
387
+ "type": "bool"
388
+ }
389
+ ],
390
+ "name": "getPool",
391
+ "outputs": [
392
+ {
393
+ "internalType": "address",
394
+ "name": "",
395
+ "type": "address"
396
+ }
397
+ ],
398
+ "stateMutability": "view",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [],
403
+ "name": "implementation",
404
+ "outputs": [
405
+ {
406
+ "internalType": "address",
407
+ "name": "",
408
+ "type": "address"
409
+ }
410
+ ],
411
+ "stateMutability": "view",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [],
416
+ "name": "isPaused",
417
+ "outputs": [
418
+ {
419
+ "internalType": "bool",
420
+ "name": "",
421
+ "type": "bool"
422
+ }
423
+ ],
424
+ "stateMutability": "view",
425
+ "type": "function"
426
+ },
427
+ {
428
+ "inputs": [
429
+ {
430
+ "internalType": "address",
431
+ "name": "pool",
432
+ "type": "address"
433
+ }
434
+ ],
435
+ "name": "isPool",
436
+ "outputs": [
437
+ {
438
+ "internalType": "bool",
439
+ "name": "",
440
+ "type": "bool"
441
+ }
442
+ ],
443
+ "stateMutability": "view",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [],
448
+ "name": "pauser",
449
+ "outputs": [
450
+ {
451
+ "internalType": "address",
452
+ "name": "",
453
+ "type": "address"
454
+ }
455
+ ],
456
+ "stateMutability": "view",
457
+ "type": "function"
458
+ },
459
+ {
460
+ "inputs": [
461
+ {
462
+ "internalType": "address",
463
+ "name": "pool",
464
+ "type": "address"
465
+ },
466
+ {
467
+ "internalType": "uint256",
468
+ "name": "fee",
469
+ "type": "uint256"
470
+ }
471
+ ],
472
+ "name": "setCustomFee",
473
+ "outputs": [],
474
+ "stateMutability": "nonpayable",
475
+ "type": "function"
476
+ },
477
+ {
478
+ "inputs": [
479
+ {
480
+ "internalType": "bool",
481
+ "name": "_stable",
482
+ "type": "bool"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "_fee",
487
+ "type": "uint256"
488
+ }
489
+ ],
490
+ "name": "setFee",
491
+ "outputs": [],
492
+ "stateMutability": "nonpayable",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [
497
+ {
498
+ "internalType": "address",
499
+ "name": "_feeManager",
500
+ "type": "address"
501
+ }
502
+ ],
503
+ "name": "setFeeManager",
504
+ "outputs": [],
505
+ "stateMutability": "nonpayable",
506
+ "type": "function"
507
+ },
508
+ {
509
+ "inputs": [
510
+ {
511
+ "internalType": "bool",
512
+ "name": "_state",
513
+ "type": "bool"
514
+ }
515
+ ],
516
+ "name": "setPauseState",
517
+ "outputs": [],
518
+ "stateMutability": "nonpayable",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "_pauser",
526
+ "type": "address"
527
+ }
528
+ ],
529
+ "name": "setPauser",
530
+ "outputs": [],
531
+ "stateMutability": "nonpayable",
532
+ "type": "function"
533
+ },
534
+ {
535
+ "inputs": [
536
+ {
537
+ "internalType": "address",
538
+ "name": "_voter",
539
+ "type": "address"
540
+ }
541
+ ],
542
+ "name": "setVoter",
543
+ "outputs": [],
544
+ "stateMutability": "nonpayable",
545
+ "type": "function"
546
+ },
547
+ {
548
+ "inputs": [],
549
+ "name": "stableFee",
550
+ "outputs": [
551
+ {
552
+ "internalType": "uint256",
553
+ "name": "",
554
+ "type": "uint256"
555
+ }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [],
562
+ "name": "volatileFee",
563
+ "outputs": [
564
+ {
565
+ "internalType": "uint256",
566
+ "name": "",
567
+ "type": "uint256"
568
+ }
569
+ ],
570
+ "stateMutability": "view",
571
+ "type": "function"
572
+ },
573
+ {
574
+ "inputs": [],
575
+ "name": "voter",
576
+ "outputs": [
577
+ {
578
+ "internalType": "address",
579
+ "name": "",
580
+ "type": "address"
581
+ }
582
+ ],
583
+ "stateMutability": "view",
584
+ "type": "function"
585
+ }
586
+ ]
package/build/config.js CHANGED
@@ -20,9 +20,9 @@ const baseConfigs = {
20
20
  adapterAddresses: {
21
21
  Adapter01: '0x9bE264469eF954c139Da4A45Cf76CbCC5e3A6A73',
22
22
  Adapter02: '0xFC2Ba6E830a04C25e207B8214b26d8C713F6881F',
23
- Adapter03: '0x7c7f62e5ba00783f57b39df0530e32c195696a57',
23
+ Adapter03: '0xfb2a3de6c7B8c77b520E3da16021f3D8A4E93168',
24
24
  Adapter04: '0x30F6B9b6485ff0B67E881f5ac80D3F1c70A4B23d',
25
- BuyAdapter: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
25
+ BuyAdapter: '0x613876f3dE2Ec633f8054fE7a561324c1a01d9cB',
26
26
  },
27
27
  uniswapV2ExchangeRouterAddress: '0xF9234CB08edb93c0d4a4d4c70cC3FfD070e78e07',
28
28
  rpcPollingMaxAllowedStateDelayInBlocks: 0,
@@ -127,8 +127,8 @@ const baseConfigs = {
127
127
  hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_56`]?.split(',') || [],
128
128
  adapterAddresses: {
129
129
  BscAdapter01: '0xA31d9C571DF00e0F428B0bD24c34D103E8112222',
130
- BscAdapter02: '0x1d2Fd92a1942A92a51198168eFCd626ed441CEC0',
131
- BscBuyAdapter: '0x64C856fafE4C83a818514cBDfD661a3563a71B98',
130
+ BscAdapter02: '0x02f2c31ebDE63E871AD0E74c01E21c819292a59D',
131
+ BscBuyAdapter: '0x301c2813e3ceb43A448a12f21551EDBcdC37F157',
132
132
  },
133
133
  rpcPollingMaxAllowedStateDelayInBlocks: 1,
134
134
  rpcPollingBlocksBackToTriggerUpdate: 1,
@@ -153,8 +153,8 @@ const baseConfigs = {
153
153
  hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_137`]?.split(',') || [],
154
154
  adapterAddresses: {
155
155
  PolygonAdapter01: '0xE44769f42E1e9592f86B82f206407a8f7C84b4ed',
156
- PolygonAdapter02: '0xa05d8C3F278fC7b20b39Ea7A3035E3aD8D808c78',
157
- PolygonBuyAdapter: '0xB11bCA7B01b425afD0743A4D77B4f593883f94C0',
156
+ PolygonAdapter02: '0x654cD2Cf97D23059B3db4FaA38BB2b1F8351211d',
157
+ PolygonBuyAdapter: '0x4426a1F87Ee7e366542c58e29c02AFa2b5878b37',
158
158
  },
159
159
  uniswapV2ExchangeRouterAddress: '0xf3938337F7294fEf84e9B2c6D548A93F956Cc281',
160
160
  uniswapV3EventLoggingSampleRate: 0,
@@ -181,8 +181,8 @@ const baseConfigs = {
181
181
  hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_43114`]?.split(',') || [],
182
182
  adapterAddresses: {
183
183
  AvalancheAdapter01: '0x745Ec73855CeC7249E5fF4c9DD81cc65b4D297a9',
184
- AvalancheAdapter02: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
185
- AvalancheBuyAdapter: '0x7ebbDBB57d2ab59079423cf8337cf8805e225bB1',
184
+ AvalancheAdapter02: '0xFb8773AA4Fd02e54bbd352061D8Be1911FAa210a',
185
+ AvalancheBuyAdapter: '0x434C1Cca4842629230067674Dd54E21a14D9FD5D',
186
186
  },
187
187
  uniswapV2ExchangeRouterAddress: '0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b',
188
188
  rfqConfigs: {},
@@ -231,9 +231,9 @@ const baseConfigs = {
231
231
  hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
232
232
  hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_42161`]?.split(',') || [],
233
233
  adapterAddresses: {
234
- ArbitrumAdapter01: '0x745Ec73855CeC7249E5fF4c9DD81cc65b4D297a9',
235
- ArbitrumAdapter02: '0x3ad7f275E27AC579cA88e0b4765828242A9E8C49',
236
- ArbitrumBuyAdapter: '0x6c33C7f6CBB4a428fe9ee31ca500a787c9f1525b',
234
+ ArbitrumAdapter01: '0xD8134ACfc9c71Ab51452b5bA23A31354F4739032',
235
+ ArbitrumAdapter02: '0xD1F70c98a78d48A93F0B4dDa49057469dc5aC126',
236
+ ArbitrumBuyAdapter: '0x434C1Cca4842629230067674Dd54E21a14D9FD5D',
237
237
  },
238
238
  uniswapV2ExchangeRouterAddress: '0xB41dD984730dAf82f5C41489E21ac79D5e3B61bC',
239
239
  uniswapV3EventLoggingSampleRate: 0,
@@ -258,8 +258,8 @@ const baseConfigs = {
258
258
  hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
259
259
  hashFlowDisabledMMs: process.env[`HASHFLOW_DISABLED_MMS_10`]?.split(',') || [],
260
260
  adapterAddresses: {
261
- OptimismAdapter01: '0x4669D27A649f5451e0D44C20a2b246431F1B0572',
262
- OptimismBuyAdapter: '0xb2634B3CBc1E401AB3C2743DB44d459C5c9aA662',
261
+ OptimismAdapter01: '0x3ad7f275E27AC579cA88e0b4765828242A9E8C49',
262
+ OptimismBuyAdapter: '0xfdDD975FE4c1af20c24A3Ad2b33e8609a62DDC73',
263
263
  },
264
264
  uniswapV2ExchangeRouterAddress: '0xB41dD984730dAf82f5C41489E21ac79D5e3B61bC',
265
265
  uniswapV3EventLoggingSampleRate: 0,
@@ -311,8 +311,8 @@ const baseConfigs = {
311
311
  hashFlowAuthToken: process.env.API_KEY_HASHFLOW_AUTH_TOKEN || '',
312
312
  hashFlowDisabledMMs: [],
313
313
  adapterAddresses: {
314
- BaseAdapter01: '0x9F77bb28e97F093Aa6CbE37cE095C18605d98Af2',
315
- BaseBuyAdapter: '0x8DE036910e34b0d8447Dd0D34C742636de1DDfEb',
314
+ BaseAdapter01: '0x30F6B9b6485ff0B67E881f5ac80D3F1c70A4B23d',
315
+ BaseBuyAdapter: '0xB11bCA7B01b425afD0743A4D77B4f593883f94C0',
316
316
  },
317
317
  uniswapV2ExchangeRouterAddress: '0x75d199EfB540e47D27D52c62Da3E7daC2B9e834F',
318
318
  uniswapV3EventLoggingSampleRate: 0,
@@ -19,7 +19,11 @@ exports.BalancerConfig = {
19
19
  [constants_1.Network.AVALANCHE]: {
20
20
  subgraphURL: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-avalanche-v2',
21
21
  vaultAddress: '0xBA12222222228d8Ba445958a75a0704d566BF2C8',
22
- }
22
+ },
23
+ [constants_1.Network.BASE]: {
24
+ subgraphURL: 'https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest',
25
+ vaultAddress: '0xBA12222222228d8Ba445958a75a0704d566BF2C8',
26
+ },
23
27
  },
24
28
  BeetsFi: {
25
29
  [constants_1.Network.FANTOM]: {
@@ -64,6 +68,10 @@ exports.Adapters = {
64
68
  [constants_1.Network.AVALANCHE]: {
65
69
  [constants_1.SwapSide.SELL]: [{ name: 'AvalancheAdapter01', index: 8 }],
66
70
  [constants_1.SwapSide.BUY]: [{ name: 'AvalancheBuyAdapter', index: 7 }],
71
+ },
72
+ [constants_1.Network.BASE]: {
73
+ [constants_1.SwapSide.SELL]: [{ name: 'BaseAdapter01', index: 4 }],
74
+ [constants_1.SwapSide.BUY]: [{ name: 'BaseBuyAdapter', index: 3 }],
67
75
  }
68
76
  };
69
77
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/balancer-v2/config.ts"],"names":[],"mappings":";;;AAEA,+CAAoD;AAEvC,QAAA,cAAc,GAA4B;IACrD,UAAU,EAAE;QACV,CAAC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