@paraswap/dex-lib 4.3.20-sonic.0 → 4.3.20-sonic.2

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.
@@ -0,0 +1,548 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "address", "name": "_factoryV2", "type": "address" },
5
+ { "internalType": "address", "name": "factoryV3", "type": "address" },
6
+ {
7
+ "internalType": "address",
8
+ "name": "_positionManager",
9
+ "type": "address"
10
+ },
11
+ { "internalType": "address", "name": "_WETH9", "type": "address" }
12
+ ],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ {
17
+ "inputs": [],
18
+ "name": "WETH9",
19
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
20
+ "stateMutability": "view",
21
+ "type": "function"
22
+ },
23
+ {
24
+ "inputs": [
25
+ { "internalType": "address", "name": "token", "type": "address" }
26
+ ],
27
+ "name": "approveMax",
28
+ "outputs": [],
29
+ "stateMutability": "payable",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [
34
+ { "internalType": "address", "name": "token", "type": "address" }
35
+ ],
36
+ "name": "approveMaxMinusOne",
37
+ "outputs": [],
38
+ "stateMutability": "payable",
39
+ "type": "function"
40
+ },
41
+ {
42
+ "inputs": [
43
+ { "internalType": "address", "name": "token", "type": "address" }
44
+ ],
45
+ "name": "approveZeroThenMax",
46
+ "outputs": [],
47
+ "stateMutability": "payable",
48
+ "type": "function"
49
+ },
50
+ {
51
+ "inputs": [
52
+ { "internalType": "address", "name": "token", "type": "address" }
53
+ ],
54
+ "name": "approveZeroThenMaxMinusOne",
55
+ "outputs": [],
56
+ "stateMutability": "payable",
57
+ "type": "function"
58
+ },
59
+ {
60
+ "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }],
61
+ "name": "callPositionManager",
62
+ "outputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }],
63
+ "stateMutability": "payable",
64
+ "type": "function"
65
+ },
66
+ {
67
+ "inputs": [
68
+ { "internalType": "bytes[]", "name": "paths", "type": "bytes[]" },
69
+ { "internalType": "uint128[]", "name": "amounts", "type": "uint128[]" },
70
+ {
71
+ "internalType": "uint24",
72
+ "name": "maximumTickDivergence",
73
+ "type": "uint24"
74
+ },
75
+ { "internalType": "uint32", "name": "secondsAgo", "type": "uint32" }
76
+ ],
77
+ "name": "checkOracleSlippage",
78
+ "outputs": [],
79
+ "stateMutability": "view",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [
84
+ { "internalType": "bytes", "name": "path", "type": "bytes" },
85
+ {
86
+ "internalType": "uint24",
87
+ "name": "maximumTickDivergence",
88
+ "type": "uint24"
89
+ },
90
+ { "internalType": "uint32", "name": "secondsAgo", "type": "uint32" }
91
+ ],
92
+ "name": "checkOracleSlippage",
93
+ "outputs": [],
94
+ "stateMutability": "view",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "components": [
101
+ { "internalType": "bytes", "name": "path", "type": "bytes" },
102
+ { "internalType": "address", "name": "recipient", "type": "address" },
103
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "amountOutMinimum",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "internalType": "struct IV3SwapRouter.ExactInputParams",
111
+ "name": "params",
112
+ "type": "tuple"
113
+ }
114
+ ],
115
+ "name": "exactInput",
116
+ "outputs": [
117
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
118
+ ],
119
+ "stateMutability": "payable",
120
+ "type": "function"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "components": [
126
+ { "internalType": "address", "name": "tokenIn", "type": "address" },
127
+ { "internalType": "address", "name": "tokenOut", "type": "address" },
128
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
129
+ { "internalType": "address", "name": "recipient", "type": "address" },
130
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "amountOutMinimum",
134
+ "type": "uint256"
135
+ },
136
+ {
137
+ "internalType": "uint160",
138
+ "name": "sqrtPriceLimitX96",
139
+ "type": "uint160"
140
+ }
141
+ ],
142
+ "internalType": "struct IV3SwapRouter.ExactInputSingleParams",
143
+ "name": "params",
144
+ "type": "tuple"
145
+ }
146
+ ],
147
+ "name": "exactInputSingle",
148
+ "outputs": [
149
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
150
+ ],
151
+ "stateMutability": "payable",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "inputs": [
156
+ {
157
+ "components": [
158
+ { "internalType": "bytes", "name": "path", "type": "bytes" },
159
+ { "internalType": "address", "name": "recipient", "type": "address" },
160
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "amountInMaximum",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "internalType": "struct IV3SwapRouter.ExactOutputParams",
168
+ "name": "params",
169
+ "type": "tuple"
170
+ }
171
+ ],
172
+ "name": "exactOutput",
173
+ "outputs": [
174
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" }
175
+ ],
176
+ "stateMutability": "payable",
177
+ "type": "function"
178
+ },
179
+ {
180
+ "inputs": [
181
+ {
182
+ "components": [
183
+ { "internalType": "address", "name": "tokenIn", "type": "address" },
184
+ { "internalType": "address", "name": "tokenOut", "type": "address" },
185
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
186
+ { "internalType": "address", "name": "recipient", "type": "address" },
187
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "amountInMaximum",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint160",
195
+ "name": "sqrtPriceLimitX96",
196
+ "type": "uint160"
197
+ }
198
+ ],
199
+ "internalType": "struct IV3SwapRouter.ExactOutputSingleParams",
200
+ "name": "params",
201
+ "type": "tuple"
202
+ }
203
+ ],
204
+ "name": "exactOutputSingle",
205
+ "outputs": [
206
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" }
207
+ ],
208
+ "stateMutability": "payable",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [],
213
+ "name": "factory",
214
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "factoryV2",
221
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [
227
+ { "internalType": "address", "name": "token", "type": "address" },
228
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
229
+ ],
230
+ "name": "getApprovalType",
231
+ "outputs": [
232
+ {
233
+ "internalType": "enum IApproveAndCall.ApprovalType",
234
+ "name": "",
235
+ "type": "uint8"
236
+ }
237
+ ],
238
+ "stateMutability": "nonpayable",
239
+ "type": "function"
240
+ },
241
+ {
242
+ "inputs": [
243
+ {
244
+ "components": [
245
+ { "internalType": "address", "name": "token0", "type": "address" },
246
+ { "internalType": "address", "name": "token1", "type": "address" },
247
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
248
+ {
249
+ "internalType": "uint256",
250
+ "name": "amount0Min",
251
+ "type": "uint256"
252
+ },
253
+ { "internalType": "uint256", "name": "amount1Min", "type": "uint256" }
254
+ ],
255
+ "internalType": "struct IApproveAndCall.IncreaseLiquidityParams",
256
+ "name": "params",
257
+ "type": "tuple"
258
+ }
259
+ ],
260
+ "name": "increaseLiquidity",
261
+ "outputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }],
262
+ "stateMutability": "payable",
263
+ "type": "function"
264
+ },
265
+ {
266
+ "inputs": [
267
+ {
268
+ "components": [
269
+ { "internalType": "address", "name": "token0", "type": "address" },
270
+ { "internalType": "address", "name": "token1", "type": "address" },
271
+ { "internalType": "uint24", "name": "fee", "type": "uint24" },
272
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
273
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
274
+ {
275
+ "internalType": "uint256",
276
+ "name": "amount0Min",
277
+ "type": "uint256"
278
+ },
279
+ {
280
+ "internalType": "uint256",
281
+ "name": "amount1Min",
282
+ "type": "uint256"
283
+ },
284
+ { "internalType": "address", "name": "recipient", "type": "address" }
285
+ ],
286
+ "internalType": "struct IApproveAndCall.MintParams",
287
+ "name": "params",
288
+ "type": "tuple"
289
+ }
290
+ ],
291
+ "name": "mint",
292
+ "outputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }],
293
+ "stateMutability": "payable",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [
298
+ {
299
+ "internalType": "bytes32",
300
+ "name": "previousBlockhash",
301
+ "type": "bytes32"
302
+ },
303
+ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" }
304
+ ],
305
+ "name": "multicall",
306
+ "outputs": [{ "internalType": "bytes[]", "name": "", "type": "bytes[]" }],
307
+ "stateMutability": "payable",
308
+ "type": "function"
309
+ },
310
+ {
311
+ "inputs": [
312
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
313
+ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" }
314
+ ],
315
+ "name": "multicall",
316
+ "outputs": [{ "internalType": "bytes[]", "name": "", "type": "bytes[]" }],
317
+ "stateMutability": "payable",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" }
323
+ ],
324
+ "name": "multicall",
325
+ "outputs": [
326
+ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" }
327
+ ],
328
+ "stateMutability": "payable",
329
+ "type": "function"
330
+ },
331
+ {
332
+ "inputs": [],
333
+ "name": "positionManager",
334
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
335
+ "stateMutability": "view",
336
+ "type": "function"
337
+ },
338
+ {
339
+ "inputs": [
340
+ { "internalType": "address", "name": "token", "type": "address" },
341
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
342
+ ],
343
+ "name": "pull",
344
+ "outputs": [],
345
+ "stateMutability": "payable",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [],
350
+ "name": "refundETH",
351
+ "outputs": [],
352
+ "stateMutability": "payable",
353
+ "type": "function"
354
+ },
355
+ {
356
+ "inputs": [
357
+ { "internalType": "address", "name": "token", "type": "address" },
358
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
359
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
360
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
361
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
362
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
363
+ ],
364
+ "name": "selfPermit",
365
+ "outputs": [],
366
+ "stateMutability": "payable",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [
371
+ { "internalType": "address", "name": "token", "type": "address" },
372
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
373
+ { "internalType": "uint256", "name": "expiry", "type": "uint256" },
374
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
375
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
376
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
377
+ ],
378
+ "name": "selfPermitAllowed",
379
+ "outputs": [],
380
+ "stateMutability": "payable",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [
385
+ { "internalType": "address", "name": "token", "type": "address" },
386
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
387
+ { "internalType": "uint256", "name": "expiry", "type": "uint256" },
388
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
389
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
390
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
391
+ ],
392
+ "name": "selfPermitAllowedIfNecessary",
393
+ "outputs": [],
394
+ "stateMutability": "payable",
395
+ "type": "function"
396
+ },
397
+ {
398
+ "inputs": [
399
+ { "internalType": "address", "name": "token", "type": "address" },
400
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
401
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
402
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
403
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
404
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
405
+ ],
406
+ "name": "selfPermitIfNecessary",
407
+ "outputs": [],
408
+ "stateMutability": "payable",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "inputs": [
413
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
414
+ { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
415
+ { "internalType": "address[]", "name": "path", "type": "address[]" },
416
+ { "internalType": "address", "name": "to", "type": "address" }
417
+ ],
418
+ "name": "swapExactTokensForTokens",
419
+ "outputs": [
420
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
421
+ ],
422
+ "stateMutability": "payable",
423
+ "type": "function"
424
+ },
425
+ {
426
+ "inputs": [
427
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
428
+ { "internalType": "uint256", "name": "amountInMax", "type": "uint256" },
429
+ { "internalType": "address[]", "name": "path", "type": "address[]" },
430
+ { "internalType": "address", "name": "to", "type": "address" }
431
+ ],
432
+ "name": "swapTokensForExactTokens",
433
+ "outputs": [
434
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" }
435
+ ],
436
+ "stateMutability": "payable",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [
441
+ { "internalType": "address", "name": "token", "type": "address" },
442
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
443
+ { "internalType": "address", "name": "recipient", "type": "address" }
444
+ ],
445
+ "name": "sweepToken",
446
+ "outputs": [],
447
+ "stateMutability": "payable",
448
+ "type": "function"
449
+ },
450
+ {
451
+ "inputs": [
452
+ { "internalType": "address", "name": "token", "type": "address" },
453
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" }
454
+ ],
455
+ "name": "sweepToken",
456
+ "outputs": [],
457
+ "stateMutability": "payable",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ { "internalType": "address", "name": "token", "type": "address" },
463
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
464
+ { "internalType": "uint256", "name": "feeBips", "type": "uint256" },
465
+ { "internalType": "address", "name": "feeRecipient", "type": "address" }
466
+ ],
467
+ "name": "sweepTokenWithFee",
468
+ "outputs": [],
469
+ "stateMutability": "payable",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [
474
+ { "internalType": "address", "name": "token", "type": "address" },
475
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
476
+ { "internalType": "address", "name": "recipient", "type": "address" },
477
+ { "internalType": "uint256", "name": "feeBips", "type": "uint256" },
478
+ { "internalType": "address", "name": "feeRecipient", "type": "address" }
479
+ ],
480
+ "name": "sweepTokenWithFee",
481
+ "outputs": [],
482
+ "stateMutability": "payable",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ { "internalType": "int256", "name": "amount0Delta", "type": "int256" },
488
+ { "internalType": "int256", "name": "amount1Delta", "type": "int256" },
489
+ { "internalType": "bytes", "name": "_data", "type": "bytes" }
490
+ ],
491
+ "name": "uniswapV3SwapCallback",
492
+ "outputs": [],
493
+ "stateMutability": "nonpayable",
494
+ "type": "function"
495
+ },
496
+ {
497
+ "inputs": [
498
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
499
+ { "internalType": "address", "name": "recipient", "type": "address" }
500
+ ],
501
+ "name": "unwrapWETH9",
502
+ "outputs": [],
503
+ "stateMutability": "payable",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [
508
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" }
509
+ ],
510
+ "name": "unwrapWETH9",
511
+ "outputs": [],
512
+ "stateMutability": "payable",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [
517
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
518
+ { "internalType": "address", "name": "recipient", "type": "address" },
519
+ { "internalType": "uint256", "name": "feeBips", "type": "uint256" },
520
+ { "internalType": "address", "name": "feeRecipient", "type": "address" }
521
+ ],
522
+ "name": "unwrapWETH9WithFee",
523
+ "outputs": [],
524
+ "stateMutability": "payable",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [
529
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
530
+ { "internalType": "uint256", "name": "feeBips", "type": "uint256" },
531
+ { "internalType": "address", "name": "feeRecipient", "type": "address" }
532
+ ],
533
+ "name": "unwrapWETH9WithFee",
534
+ "outputs": [],
535
+ "stateMutability": "payable",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [
540
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
541
+ ],
542
+ "name": "wrapETH",
543
+ "outputs": [],
544
+ "stateMutability": "payable",
545
+ "type": "function"
546
+ },
547
+ { "stateMutability": "payable", "type": "receive" }
548
+ ]
@@ -20,7 +20,7 @@ export declare enum Network {
20
20
  POLYGON = 137,
21
21
  ZKEVM = 1101,
22
22
  AVALANCHE = 43114,
23
- FANTOM = 146,
23
+ FANTOM = 150,
24
24
  SONIC = 146,
25
25
  ARBITRUM = 42161,
26
26
  OPTIMISM = 10,
@@ -29,7 +29,7 @@ var Network;
29
29
  Network[Network["POLYGON"] = 137] = "POLYGON";
30
30
  Network[Network["ZKEVM"] = 1101] = "ZKEVM";
31
31
  Network[Network["AVALANCHE"] = 43114] = "AVALANCHE";
32
- Network[Network["FANTOM"] = 146] = "FANTOM";
32
+ Network[Network["FANTOM"] = 150] = "FANTOM";
33
33
  Network[Network["SONIC"] = 146] = "SONIC";
34
34
  Network[Network["ARBITRUM"] = 42161] = "ARBITRUM";
35
35
  Network[Network["OPTIMISM"] = 10] = "OPTIMISM";
@@ -6,11 +6,11 @@ const aave_address_book_1 = require("@bgd-labs/aave-address-book");
6
6
  // TODO: find vals for V3
7
7
  exports.Config = {
8
8
  AaveV3: {
9
- [constants_1.Network.FANTOM]: {
9
+ [constants_1.Network.SONIC]: {
10
10
  ethGasCost: 246 * 100,
11
11
  lendingGasCost: 328 * 1000,
12
- poolAddress: aave_address_book_1.AaveV3Fantom.POOL,
13
- wethGatewayAddress: aave_address_book_1.AaveV3Fantom.WETH_GATEWAY,
12
+ poolAddress: aave_address_book_1.AaveV3Sonic.POOL,
13
+ wethGatewayAddress: aave_address_book_1.AaveV3Sonic.WETH_GATEWAY,
14
14
  },
15
15
  [constants_1.Network.POLYGON]: {
16
16
  ethGasCost: 246 * 100,
@@ -54,12 +54,6 @@ exports.Config = {
54
54
  poolAddress: aave_address_book_1.AaveV3BNB.POOL,
55
55
  wethGatewayAddress: aave_address_book_1.AaveV3BNB.WETH_GATEWAY,
56
56
  },
57
- // [Network.ZKEVM]: {
58
- // ethGasCost: 246 * 100,
59
- // lendingGasCost: 328 * 1000,
60
- // poolAddress: AaveV3PolygonZkEvm.POOL,
61
- // wethGatewayAddress: AaveV3PolygonZkEvm.WETH_GATEWAY,
62
- // },
63
57
  [constants_1.Network.GNOSIS]: {
64
58
  ethGasCost: 246 * 100,
65
59
  lendingGasCost: 328 * 1000,
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/aave-v3/config.ts"],"names":[],"mappings":";;;AACA,+CAAoD;AAEpD,mEAWqC;AAErC,yBAAyB;AACZ,QAAA,MAAM,GAA2B;IAC5C,MAAM,EAAE;QACN,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE;YAChB,UAAU,EAAE,GAAG,GAAG,GAAG;YACrB,cAAc,EAAE,GAAG,GAAG,IAAI;YAC1B,WAAW,EAAE,gCAAY,CAAC,IAAI;YAC9B,kBAAkB,EAAE,gCAAY,CAAC,YAAY;SAC9C;QACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;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AE;YACf;gBACE,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,EAAE;aACV;SACF;KACF;IACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;QAClB,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;QACjB,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;aACV;SACF;KACF;IACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;QACd,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,CAAC,mBAAO,CAAC,GAAG,CAAC,EAAE;QACb,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,CAAC,mBAAO,CAAC,KAAK,CAAC,EAAE;QACf,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,uBAAuB;gBAC7B,KAAK,EAAE,CAAC;aACT;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/aave-v3/config.ts"],"names":[],"mappings":";;;AACA,+CAAoD;AAEpD,mEAWqC;AAErC,yBAAyB;AACZ,QAAA,MAAM,GAA2B;IAC5C,MAAM,EAAE;QACN,CAAC,mBAAO,CAAC,KAAK,CAAC,EAAE;YACf,UAAU,EAAE,GAAG,GAAG,GAAG;YACrB,cAAc,EAAE,GAAG,GAAG,IAAI;YAC1B,WAAW,EAAE,+BAAW,CAAC,IAAI;YAC7B,kBAAkB,EAAE,+BAAW,CAAC,YAAY;SAC7C;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AAK,EAAE,EAAE;aACV;SACF;KACF;IACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;QAClB,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;QACjB,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;aACV;SACF;KACF;IACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;QACd,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,CAAC,mBAAO,CAAC,GAAG,CAAC,EAAE;QACb,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,CAAC;aACT;SACF;KACF;IACD,CAAC,mBAAO,CAAC,KAAK,CAAC,EAAE;QACf,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;YACf;gBACE,IAAI,EAAE,uBAAuB;gBAC7B,KAAK,EAAE,CAAC;aACT;SACF;KACF;CACF,CAAC"}
@@ -36,6 +36,12 @@ exports.AaveV3StataConfig = {
36
36
  pool: aave_address_book_1.AaveV3Base.POOL,
37
37
  },
38
38
  ],
39
+ [constants_1.Network.SONIC]: [
40
+ {
41
+ factory: aave_address_book_1.AaveV3Sonic.STATA_FACTORY,
42
+ pool: aave_address_book_1.AaveV3Sonic.POOL,
43
+ },
44
+ ],
39
45
  },
40
46
  };
41
47
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/aave-v3-stata-v2/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAC1C,mEAOqC;AAExB,QAAA,iBAAiB,GAA4B;IACxD,aAAa,EAAE;QACb,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,EAAE,OAAO,EAAE,kCAAc,CAAC,aAAa,EAAE,IAAI,EAAE,kCAAc,CAAC,IAAI,EAAE;YACpE;gBACE,OAAO,EAAE,sCAAkB,CAAC,aAAa;gBACzC,IAAI,EAAE,sCAAkB,CAAC,IAAI;aAC9B;SACF;QACD,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE;YAChB;gBACE,OAAO,EAAE,gCAAY,CAAC,aAAa;gBACnC,IAAI,EAAE,gCAAY,CAAC,IAAI;aACxB;SACF;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB;gBACE,OAAO,EAAE,kCAAc,CAAC,aAAa;gBACrC,IAAI,EAAE,kCAAc,CAAC,IAAI;aAC1B;SACF;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB;gBACE,OAAO,EAAE,kCAAc,CAAC,aAAa;gBACrC,IAAI,EAAE,kCAAc,CAAC,IAAI;aAC1B;SACF;QACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd;gBACE,OAAO,EAAE,8BAAU,CAAC,aAAa;gBACjC,IAAI,EAAE,8BAAU,CAAC,IAAI;aACtB;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/aave-v3-stata-v2/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAC1C,mEAQqC;AAExB,QAAA,iBAAiB,GAA4B;IACxD,aAAa,EAAE;QACb,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,EAAE,OAAO,EAAE,kCAAc,CAAC,aAAa,EAAE,IAAI,EAAE,kCAAc,CAAC,IAAI,EAAE;YACpE;gBACE,OAAO,EAAE,sCAAkB,CAAC,aAAa;gBACzC,IAAI,EAAE,sCAAkB,CAAC,IAAI;aAC9B;SACF;QACD,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE;YAChB;gBACE,OAAO,EAAE,gCAAY,CAAC,aAAa;gBACnC,IAAI,EAAE,gCAAY,CAAC,IAAI;aACxB;SACF;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB;gBACE,OAAO,EAAE,kCAAc,CAAC,aAAa;gBACrC,IAAI,EAAE,kCAAc,CAAC,IAAI;aAC1B;SACF;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB;gBACE,OAAO,EAAE,kCAAc,CAAC,aAAa;gBACrC,IAAI,EAAE,kCAAc,CAAC,IAAI;aAC1B;SACF;QACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd;gBACE,OAAO,EAAE,8BAAU,CAAC,aAAa;gBACjC,IAAI,EAAE,8BAAU,CAAC,IAAI;aACtB;SACF;QACD,CAAC,mBAAO,CAAC,KAAK,CAAC,EAAE;YACf;gBACE,OAAO,EAAE,+BAAW,CAAC,aAAa;gBAClC,IAAI,EAAE,+BAAW,CAAC,IAAI;aACvB;SACF;KACF;CACF,CAAC"}
@@ -30,9 +30,9 @@ exports.BalancerConfig = {
30
30
  },
31
31
  },
32
32
  BeetsFi: {
33
- [constants_1.Network.FANTOM]: {
34
- subgraphURL: '4XKeW12D2RAhqefPYT3MLoT64p1JnT5TBLnYaNeSLA8k',
35
- vaultAddress: '0x20dd72ed959b6147912c2e529f0a0c651c33c9ce',
33
+ [constants_1.Network.SONIC]: {
34
+ subgraphURL: 'wwazpiPPt5oJMiTNnQ2VjVxKnKakGDuE2FfEZPD4TKj',
35
+ vaultAddress: '0xBA12222222228d8Ba445958a75a0704d566BF2C8',
36
36
  },
37
37
  [constants_1.Network.OPTIMISM]: {
38
38
  subgraphURL: 'F5jeL2nMXZt5LU6kSway7Vi2PTUcqDbw1gMQEbrmiVdJ',