@paraswap/dex-lib 4.2.19-woofi.0 → 4.2.19

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.
@@ -1,9 +1,94 @@
1
1
  [
2
2
  {
3
- "inputs": [],
3
+ "inputs": [
4
+ { "internalType": "address", "name": "_steth", "type": "address" },
5
+ { "internalType": "address", "name": "_weth", "type": "address" },
6
+ {
7
+ "internalType": "address",
8
+ "name": "_lidoWithdrawalQueue",
9
+ "type": "address"
10
+ },
11
+ { "internalType": "uint256", "name": "_claimDelay", "type": "uint256" }
12
+ ],
4
13
  "stateMutability": "nonpayable",
5
14
  "type": "constructor"
6
15
  },
16
+ {
17
+ "inputs": [
18
+ { "internalType": "address", "name": "spender", "type": "address" },
19
+ { "internalType": "uint256", "name": "allowance", "type": "uint256" },
20
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
21
+ ],
22
+ "name": "ERC20InsufficientAllowance",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [
27
+ { "internalType": "address", "name": "sender", "type": "address" },
28
+ { "internalType": "uint256", "name": "balance", "type": "uint256" },
29
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
30
+ ],
31
+ "name": "ERC20InsufficientBalance",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ { "internalType": "address", "name": "approver", "type": "address" }
37
+ ],
38
+ "name": "ERC20InvalidApprover",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "inputs": [
43
+ { "internalType": "address", "name": "receiver", "type": "address" }
44
+ ],
45
+ "name": "ERC20InvalidReceiver",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ { "internalType": "address", "name": "sender", "type": "address" }
51
+ ],
52
+ "name": "ERC20InvalidSender",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ { "internalType": "address", "name": "spender", "type": "address" }
58
+ ],
59
+ "name": "ERC20InvalidSpender",
60
+ "type": "error"
61
+ },
62
+ { "inputs": [], "name": "InvalidInitialization", "type": "error" },
63
+ { "inputs": [], "name": "NotInitializing", "type": "error" },
64
+ {
65
+ "inputs": [
66
+ { "internalType": "uint8", "name": "bits", "type": "uint8" },
67
+ { "internalType": "int256", "name": "value", "type": "int256" }
68
+ ],
69
+ "name": "SafeCastOverflowedIntDowncast",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [{ "internalType": "int256", "name": "value", "type": "int256" }],
74
+ "name": "SafeCastOverflowedIntToUint",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ { "internalType": "uint8", "name": "bits", "type": "uint8" },
80
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
81
+ ],
82
+ "name": "SafeCastOverflowedUintDowncast",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
88
+ ],
89
+ "name": "SafeCastOverflowedUintToInt",
90
+ "type": "error"
91
+ },
7
92
  {
8
93
  "anonymous": false,
9
94
  "inputs": [
@@ -27,324 +112,527 @@
27
112
  "anonymous": false,
28
113
  "inputs": [
29
114
  {
30
- "indexed": false,
115
+ "indexed": true,
31
116
  "internalType": "address",
32
- "name": "previousAdmin",
117
+ "name": "owner",
33
118
  "type": "address"
34
119
  },
35
120
  {
36
- "indexed": false,
121
+ "indexed": true,
37
122
  "internalType": "address",
38
- "name": "newAdmin",
123
+ "name": "spender",
39
124
  "type": "address"
40
- }
41
- ],
42
- "name": "OperatorChanged",
43
- "type": "event"
44
- },
45
- {
46
- "anonymous": false,
47
- "inputs": [
48
- {
49
- "indexed": false,
50
- "internalType": "uint256",
51
- "name": "traderate0",
52
- "type": "uint256"
53
125
  },
54
126
  {
55
127
  "indexed": false,
56
128
  "internalType": "uint256",
57
- "name": "traderate1",
129
+ "name": "value",
58
130
  "type": "uint256"
59
131
  }
60
132
  ],
61
- "name": "TraderateChanged",
133
+ "name": "Approval",
62
134
  "type": "event"
63
135
  },
64
136
  {
65
- "inputs": [],
66
- "name": "approveStETH",
67
- "outputs": [],
68
- "stateMutability": "nonpayable",
69
- "type": "function"
70
- },
71
- {
137
+ "anonymous": false,
72
138
  "inputs": [
73
139
  {
74
- "internalType": "uint256[]",
75
- "name": "requestIds",
76
- "type": "uint256[]"
140
+ "indexed": true,
141
+ "internalType": "address",
142
+ "name": "capManager",
143
+ "type": "address"
77
144
  }
78
145
  ],
79
- "name": "claimStETHWithdrawalForETH",
80
- "outputs": [],
81
- "stateMutability": "nonpayable",
82
- "type": "function"
146
+ "name": "CapManagerUpdated",
147
+ "type": "event"
83
148
  },
84
149
  {
150
+ "anonymous": false,
85
151
  "inputs": [
86
152
  {
153
+ "indexed": false,
87
154
  "internalType": "uint256[]",
88
155
  "name": "requestIds",
89
156
  "type": "uint256[]"
90
157
  }
91
158
  ],
92
- "name": "claimStETHWithdrawalForWETH",
93
- "outputs": [],
94
- "stateMutability": "nonpayable",
95
- "type": "function"
159
+ "name": "ClaimLidoWithdrawals",
160
+ "type": "event"
96
161
  },
97
162
  {
163
+ "anonymous": false,
98
164
  "inputs": [
99
165
  {
166
+ "indexed": false,
100
167
  "internalType": "uint256",
101
- "name": "amount",
168
+ "name": "crossPrice",
102
169
  "type": "uint256"
103
170
  }
104
171
  ],
105
- "name": "depositETHForStETH",
106
- "outputs": [],
107
- "stateMutability": "nonpayable",
108
- "type": "function"
172
+ "name": "CrossPriceUpdated",
173
+ "type": "event"
109
174
  },
110
175
  {
176
+ "anonymous": false,
111
177
  "inputs": [
112
178
  {
179
+ "indexed": true,
180
+ "internalType": "address",
181
+ "name": "owner",
182
+ "type": "address"
183
+ },
184
+ {
185
+ "indexed": false,
113
186
  "internalType": "uint256",
114
- "name": "amount",
187
+ "name": "assets",
115
188
  "type": "uint256"
116
- }
117
- ],
118
- "name": "depositWETHForStETH",
119
- "outputs": [],
120
- "stateMutability": "nonpayable",
121
- "type": "function"
122
- },
123
- {
124
- "inputs": [],
125
- "name": "minimumFunds",
126
- "outputs": [
189
+ },
127
190
  {
191
+ "indexed": false,
128
192
  "internalType": "uint256",
129
- "name": "",
193
+ "name": "shares",
130
194
  "type": "uint256"
131
195
  }
132
196
  ],
133
- "stateMutability": "view",
134
- "type": "function"
197
+ "name": "Deposit",
198
+ "type": "event"
135
199
  },
136
200
  {
137
- "inputs": [],
138
- "name": "operator",
139
- "outputs": [
201
+ "anonymous": false,
202
+ "inputs": [
140
203
  {
204
+ "indexed": true,
141
205
  "internalType": "address",
142
- "name": "",
206
+ "name": "feeCollector",
143
207
  "type": "address"
208
+ },
209
+ {
210
+ "indexed": false,
211
+ "internalType": "uint256",
212
+ "name": "fee",
213
+ "type": "uint256"
144
214
  }
145
215
  ],
146
- "stateMutability": "view",
147
- "type": "function"
216
+ "name": "FeeCollected",
217
+ "type": "event"
148
218
  },
149
219
  {
150
- "inputs": [],
151
- "name": "owner",
152
- "outputs": [
220
+ "anonymous": false,
221
+ "inputs": [
153
222
  {
223
+ "indexed": true,
154
224
  "internalType": "address",
155
- "name": "",
225
+ "name": "newFeeCollector",
156
226
  "type": "address"
157
227
  }
158
228
  ],
159
- "stateMutability": "view",
160
- "type": "function"
229
+ "name": "FeeCollectorUpdated",
230
+ "type": "event"
161
231
  },
162
232
  {
233
+ "anonymous": false,
163
234
  "inputs": [
164
235
  {
165
- "internalType": "uint256[]",
166
- "name": "amounts",
167
- "type": "uint256[]"
168
- }
169
- ],
170
- "name": "requestStETHWithdrawalForETH",
171
- "outputs": [
172
- {
173
- "internalType": "uint256[]",
174
- "name": "requestIds",
175
- "type": "uint256[]"
236
+ "indexed": false,
237
+ "internalType": "uint256",
238
+ "name": "fee",
239
+ "type": "uint256"
176
240
  }
177
241
  ],
178
- "stateMutability": "nonpayable",
179
- "type": "function"
242
+ "name": "FeeUpdated",
243
+ "type": "event"
180
244
  },
181
245
  {
246
+ "anonymous": false,
182
247
  "inputs": [
183
248
  {
184
- "internalType": "uint256",
185
- "name": "_minimumFunds",
186
- "type": "uint256"
249
+ "indexed": false,
250
+ "internalType": "uint64",
251
+ "name": "version",
252
+ "type": "uint64"
187
253
  }
188
254
  ],
189
- "name": "setMinimumFunds",
190
- "outputs": [],
191
- "stateMutability": "nonpayable",
192
- "type": "function"
255
+ "name": "Initialized",
256
+ "type": "event"
193
257
  },
194
258
  {
259
+ "anonymous": false,
195
260
  "inputs": [
196
261
  {
262
+ "indexed": false,
197
263
  "internalType": "address",
198
- "name": "newOperator",
264
+ "name": "newAdmin",
199
265
  "type": "address"
200
266
  }
201
267
  ],
202
- "name": "setOperator",
203
- "outputs": [],
204
- "stateMutability": "nonpayable",
205
- "type": "function"
268
+ "name": "OperatorChanged",
269
+ "type": "event"
206
270
  },
207
271
  {
272
+ "anonymous": false,
208
273
  "inputs": [
209
274
  {
275
+ "indexed": true,
210
276
  "internalType": "address",
211
- "name": "newOwner",
277
+ "name": "withdrawer",
212
278
  "type": "address"
213
- }
214
- ],
215
- "name": "setOwner",
216
- "outputs": [],
217
- "stateMutability": "nonpayable",
218
- "type": "function"
219
- },
220
- {
221
- "inputs": [
279
+ },
222
280
  {
281
+ "indexed": true,
223
282
  "internalType": "uint256",
224
- "name": "buyT1",
283
+ "name": "requestId",
225
284
  "type": "uint256"
226
285
  },
227
286
  {
287
+ "indexed": false,
228
288
  "internalType": "uint256",
229
- "name": "sellT1",
289
+ "name": "assets",
230
290
  "type": "uint256"
231
291
  }
232
292
  ],
233
- "name": "setPrices",
234
- "outputs": [],
235
- "stateMutability": "nonpayable",
236
- "type": "function"
293
+ "name": "RedeemClaimed",
294
+ "type": "event"
237
295
  },
238
296
  {
239
- "inputs": [],
240
- "name": "steth",
241
- "outputs": [
297
+ "anonymous": false,
298
+ "inputs": [
242
299
  {
243
- "internalType": "contract IERC20",
244
- "name": "",
300
+ "indexed": true,
301
+ "internalType": "address",
302
+ "name": "withdrawer",
245
303
  "type": "address"
246
- }
247
- ],
248
- "stateMutability": "view",
249
- "type": "function"
250
- },
251
- {
252
- "inputs": [
304
+ },
253
305
  {
306
+ "indexed": true,
254
307
  "internalType": "uint256",
255
- "name": "amountIn",
308
+ "name": "requestId",
256
309
  "type": "uint256"
257
310
  },
258
311
  {
312
+ "indexed": false,
259
313
  "internalType": "uint256",
260
- "name": "amountOutMin",
314
+ "name": "assets",
261
315
  "type": "uint256"
262
316
  },
263
317
  {
264
- "internalType": "address[]",
265
- "name": "path",
266
- "type": "address[]"
318
+ "indexed": false,
319
+ "internalType": "uint256",
320
+ "name": "queued",
321
+ "type": "uint256"
267
322
  },
268
323
  {
269
- "internalType": "address",
270
- "name": "to",
271
- "type": "address"
324
+ "indexed": false,
325
+ "internalType": "uint256",
326
+ "name": "claimTimestamp",
327
+ "type": "uint256"
328
+ }
329
+ ],
330
+ "name": "RedeemRequested",
331
+ "type": "event"
332
+ },
333
+ {
334
+ "anonymous": false,
335
+ "inputs": [
336
+ {
337
+ "indexed": false,
338
+ "internalType": "uint256[]",
339
+ "name": "requestIds",
340
+ "type": "uint256[]"
272
341
  },
273
342
  {
343
+ "indexed": false,
274
344
  "internalType": "uint256",
275
- "name": "deadline",
345
+ "name": "totalAmountRequested",
276
346
  "type": "uint256"
277
347
  }
278
348
  ],
279
- "name": "swapExactTokensForTokens",
280
- "outputs": [
349
+ "name": "RegisterLidoWithdrawalRequests",
350
+ "type": "event"
351
+ },
352
+ {
353
+ "anonymous": false,
354
+ "inputs": [
281
355
  {
356
+ "indexed": false,
282
357
  "internalType": "uint256[]",
283
358
  "name": "amounts",
284
359
  "type": "uint256[]"
360
+ },
361
+ {
362
+ "indexed": false,
363
+ "internalType": "uint256[]",
364
+ "name": "requestIds",
365
+ "type": "uint256[]"
285
366
  }
286
367
  ],
287
- "stateMutability": "nonpayable",
288
- "type": "function"
368
+ "name": "RequestLidoWithdrawals",
369
+ "type": "event"
289
370
  },
290
371
  {
372
+ "anonymous": false,
291
373
  "inputs": [
292
374
  {
375
+ "indexed": false,
293
376
  "internalType": "uint256",
294
- "name": "amountOut",
377
+ "name": "traderate0",
295
378
  "type": "uint256"
296
379
  },
297
380
  {
381
+ "indexed": false,
298
382
  "internalType": "uint256",
299
- "name": "amountInMax",
383
+ "name": "traderate1",
300
384
  "type": "uint256"
301
- },
385
+ }
386
+ ],
387
+ "name": "TraderateChanged",
388
+ "type": "event"
389
+ },
390
+ {
391
+ "anonymous": false,
392
+ "inputs": [
302
393
  {
303
- "internalType": "address[]",
304
- "name": "path",
305
- "type": "address[]"
394
+ "indexed": true,
395
+ "internalType": "address",
396
+ "name": "from",
397
+ "type": "address"
306
398
  },
307
399
  {
400
+ "indexed": true,
308
401
  "internalType": "address",
309
402
  "name": "to",
310
403
  "type": "address"
311
404
  },
312
405
  {
406
+ "indexed": false,
313
407
  "internalType": "uint256",
314
- "name": "deadline",
408
+ "name": "value",
315
409
  "type": "uint256"
316
410
  }
317
411
  ],
318
- "name": "swapTokensForExactTokens",
319
- "outputs": [
412
+ "name": "Transfer",
413
+ "type": "event"
414
+ },
415
+ {
416
+ "inputs": [],
417
+ "name": "FEE_SCALE",
418
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
419
+ "stateMutability": "view",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [],
424
+ "name": "MAX_CROSS_PRICE_DEVIATION",
425
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
426
+ "stateMutability": "view",
427
+ "type": "function"
428
+ },
429
+ {
430
+ "inputs": [],
431
+ "name": "PRICE_SCALE",
432
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
433
+ "stateMutability": "view",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [
438
+ { "internalType": "address", "name": "owner", "type": "address" },
439
+ { "internalType": "address", "name": "spender", "type": "address" }
440
+ ],
441
+ "name": "allowance",
442
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
443
+ "stateMutability": "view",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [
448
+ { "internalType": "address", "name": "spender", "type": "address" },
449
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
450
+ ],
451
+ "name": "approve",
452
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
453
+ "stateMutability": "nonpayable",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [
458
+ { "internalType": "address", "name": "account", "type": "address" }
459
+ ],
460
+ "name": "balanceOf",
461
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
462
+ "stateMutability": "view",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [],
467
+ "name": "baseAsset",
468
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
469
+ "stateMutability": "view",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [],
474
+ "name": "capManager",
475
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
476
+ "stateMutability": "view",
477
+ "type": "function"
478
+ },
479
+ {
480
+ "inputs": [],
481
+ "name": "claimDelay",
482
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
483
+ "stateMutability": "view",
484
+ "type": "function"
485
+ },
486
+ {
487
+ "inputs": [
320
488
  {
321
489
  "internalType": "uint256[]",
322
- "name": "amounts",
490
+ "name": "requestIds",
323
491
  "type": "uint256[]"
324
- }
492
+ },
493
+ { "internalType": "uint256[]", "name": "hintIds", "type": "uint256[]" }
494
+ ],
495
+ "name": "claimLidoWithdrawals",
496
+ "outputs": [],
497
+ "stateMutability": "nonpayable",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [
502
+ { "internalType": "uint256", "name": "requestId", "type": "uint256" }
503
+ ],
504
+ "name": "claimRedeem",
505
+ "outputs": [
506
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
325
507
  ],
326
508
  "stateMutability": "nonpayable",
327
509
  "type": "function"
328
510
  },
329
511
  {
330
512
  "inputs": [],
331
- "name": "token0",
513
+ "name": "claimable",
514
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
515
+ "stateMutability": "view",
516
+ "type": "function"
517
+ },
518
+ {
519
+ "inputs": [],
520
+ "name": "collectFees",
332
521
  "outputs": [
333
- {
334
- "internalType": "contract IERC20",
335
- "name": "",
336
- "type": "address"
337
- }
522
+ { "internalType": "uint256", "name": "fees", "type": "uint256" }
523
+ ],
524
+ "stateMutability": "nonpayable",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [
529
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
530
+ ],
531
+ "name": "convertToAssets",
532
+ "outputs": [
533
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
534
+ ],
535
+ "stateMutability": "view",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [
540
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
541
+ ],
542
+ "name": "convertToShares",
543
+ "outputs": [
544
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
338
545
  ],
339
546
  "stateMutability": "view",
340
547
  "type": "function"
341
548
  },
342
549
  {
343
550
  "inputs": [],
344
- "name": "token1",
551
+ "name": "crossPrice",
552
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
553
+ "stateMutability": "view",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [],
558
+ "name": "decimals",
559
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
560
+ "stateMutability": "view",
561
+ "type": "function"
562
+ },
563
+ {
564
+ "inputs": [
565
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
566
+ { "internalType": "address", "name": "receiver", "type": "address" }
567
+ ],
568
+ "name": "deposit",
569
+ "outputs": [
570
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
571
+ ],
572
+ "stateMutability": "nonpayable",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [
577
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
578
+ ],
579
+ "name": "deposit",
580
+ "outputs": [
581
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
582
+ ],
583
+ "stateMutability": "nonpayable",
584
+ "type": "function"
585
+ },
586
+ {
587
+ "inputs": [],
588
+ "name": "fee",
589
+ "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [],
595
+ "name": "feeCollector",
596
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
597
+ "stateMutability": "view",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [],
602
+ "name": "feesAccrued",
603
+ "outputs": [
604
+ { "internalType": "uint256", "name": "fees", "type": "uint256" }
605
+ ],
606
+ "stateMutability": "view",
607
+ "type": "function"
608
+ },
609
+ {
610
+ "inputs": [
611
+ { "internalType": "string", "name": "_name", "type": "string" },
612
+ { "internalType": "string", "name": "_symbol", "type": "string" },
613
+ { "internalType": "address", "name": "_operator", "type": "address" },
614
+ { "internalType": "uint256", "name": "_fee", "type": "uint256" },
615
+ { "internalType": "address", "name": "_feeCollector", "type": "address" },
616
+ { "internalType": "address", "name": "_capManager", "type": "address" }
617
+ ],
618
+ "name": "initialize",
619
+ "outputs": [],
620
+ "stateMutability": "nonpayable",
621
+ "type": "function"
622
+ },
623
+ {
624
+ "inputs": [],
625
+ "name": "lastAvailableAssets",
626
+ "outputs": [{ "internalType": "int128", "name": "", "type": "int128" }],
627
+ "stateMutability": "view",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [],
632
+ "name": "lidoWithdrawalQueue",
345
633
  "outputs": [
346
634
  {
347
- "internalType": "contract IERC20",
635
+ "internalType": "contract IStETHWithdrawal",
348
636
  "name": "",
349
637
  "type": "address"
350
638
  }
@@ -354,99 +642,321 @@
354
642
  },
355
643
  {
356
644
  "inputs": [],
357
- "name": "traderate0",
645
+ "name": "lidoWithdrawalQueueAmount",
646
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
647
+ "stateMutability": "view",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [{ "internalType": "uint256", "name": "id", "type": "uint256" }],
652
+ "name": "lidoWithdrawalRequests",
358
653
  "outputs": [
359
- {
360
- "internalType": "uint256",
361
- "name": "",
362
- "type": "uint256"
363
- }
654
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
364
655
  ],
365
656
  "stateMutability": "view",
366
657
  "type": "function"
367
658
  },
368
659
  {
369
660
  "inputs": [],
370
- "name": "traderate1",
661
+ "name": "liquidityAsset",
662
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
663
+ "stateMutability": "view",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [],
668
+ "name": "name",
669
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
670
+ "stateMutability": "view",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [],
675
+ "name": "nextWithdrawalIndex",
676
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
677
+ "stateMutability": "view",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [],
682
+ "name": "operator",
683
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
684
+ "stateMutability": "view",
685
+ "type": "function"
686
+ },
687
+ {
688
+ "inputs": [],
689
+ "name": "owner",
690
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
691
+ "stateMutability": "view",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [
696
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
697
+ ],
698
+ "name": "previewDeposit",
371
699
  "outputs": [
372
- {
373
- "internalType": "uint256",
374
- "name": "",
375
- "type": "uint256"
376
- }
700
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
377
701
  ],
378
702
  "stateMutability": "view",
379
703
  "type": "function"
380
704
  },
381
705
  {
382
706
  "inputs": [
383
- {
384
- "internalType": "address",
385
- "name": "to",
386
- "type": "address"
387
- },
388
- {
389
- "internalType": "uint256",
390
- "name": "amount",
391
- "type": "uint256"
392
- }
707
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
708
+ ],
709
+ "name": "previewRedeem",
710
+ "outputs": [
711
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
393
712
  ],
394
- "name": "transferEth",
713
+ "stateMutability": "view",
714
+ "type": "function"
715
+ },
716
+ {
717
+ "inputs": [],
718
+ "name": "registerLidoWithdrawalRequests",
395
719
  "outputs": [],
396
720
  "stateMutability": "nonpayable",
397
721
  "type": "function"
398
722
  },
399
723
  {
400
724
  "inputs": [
401
- {
402
- "internalType": "address",
403
- "name": "token",
404
- "type": "address"
405
- },
406
- {
407
- "internalType": "address",
408
- "name": "to",
409
- "type": "address"
410
- },
411
- {
412
- "internalType": "uint256",
413
- "name": "amount",
414
- "type": "uint256"
415
- }
725
+ { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }
726
+ ],
727
+ "name": "requestLidoWithdrawals",
728
+ "outputs": [
729
+ { "internalType": "uint256[]", "name": "requestIds", "type": "uint256[]" }
730
+ ],
731
+ "stateMutability": "nonpayable",
732
+ "type": "function"
733
+ },
734
+ {
735
+ "inputs": [
736
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
737
+ ],
738
+ "name": "requestRedeem",
739
+ "outputs": [
740
+ { "internalType": "uint256", "name": "requestId", "type": "uint256" },
741
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
742
+ ],
743
+ "stateMutability": "nonpayable",
744
+ "type": "function"
745
+ },
746
+ {
747
+ "inputs": [
748
+ { "internalType": "address", "name": "_capManager", "type": "address" }
416
749
  ],
417
- "name": "transferToken",
750
+ "name": "setCapManager",
751
+ "outputs": [],
752
+ "stateMutability": "nonpayable",
753
+ "type": "function"
754
+ },
755
+ {
756
+ "inputs": [
757
+ { "internalType": "uint256", "name": "newCrossPrice", "type": "uint256" }
758
+ ],
759
+ "name": "setCrossPrice",
760
+ "outputs": [],
761
+ "stateMutability": "nonpayable",
762
+ "type": "function"
763
+ },
764
+ {
765
+ "inputs": [
766
+ { "internalType": "uint256", "name": "_fee", "type": "uint256" }
767
+ ],
768
+ "name": "setFee",
769
+ "outputs": [],
770
+ "stateMutability": "nonpayable",
771
+ "type": "function"
772
+ },
773
+ {
774
+ "inputs": [
775
+ { "internalType": "address", "name": "_feeCollector", "type": "address" }
776
+ ],
777
+ "name": "setFeeCollector",
778
+ "outputs": [],
779
+ "stateMutability": "nonpayable",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [
784
+ { "internalType": "address", "name": "newOperator", "type": "address" }
785
+ ],
786
+ "name": "setOperator",
787
+ "outputs": [],
788
+ "stateMutability": "nonpayable",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [
793
+ { "internalType": "address", "name": "newOwner", "type": "address" }
794
+ ],
795
+ "name": "setOwner",
796
+ "outputs": [],
797
+ "stateMutability": "nonpayable",
798
+ "type": "function"
799
+ },
800
+ {
801
+ "inputs": [
802
+ { "internalType": "uint256", "name": "buyT1", "type": "uint256" },
803
+ { "internalType": "uint256", "name": "sellT1", "type": "uint256" }
804
+ ],
805
+ "name": "setPrices",
418
806
  "outputs": [],
419
807
  "stateMutability": "nonpayable",
420
808
  "type": "function"
421
809
  },
422
810
  {
423
811
  "inputs": [],
424
- "name": "weth",
812
+ "name": "steth",
425
813
  "outputs": [
426
- {
427
- "internalType": "contract IWEth",
428
- "name": "",
429
- "type": "address"
430
- }
814
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
431
815
  ],
432
816
  "stateMutability": "view",
433
817
  "type": "function"
434
818
  },
819
+ {
820
+ "inputs": [
821
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
822
+ { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
823
+ { "internalType": "address[]", "name": "path", "type": "address[]" },
824
+ { "internalType": "address", "name": "to", "type": "address" },
825
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
826
+ ],
827
+ "name": "swapExactTokensForTokens",
828
+ "outputs": [
829
+ { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }
830
+ ],
831
+ "stateMutability": "nonpayable",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "inputs": [
836
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
837
+ { "internalType": "uint256", "name": "amountInMax", "type": "uint256" },
838
+ { "internalType": "address[]", "name": "path", "type": "address[]" },
839
+ { "internalType": "address", "name": "to", "type": "address" },
840
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
841
+ ],
842
+ "name": "swapTokensForExactTokens",
843
+ "outputs": [
844
+ { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }
845
+ ],
846
+ "stateMutability": "nonpayable",
847
+ "type": "function"
848
+ },
435
849
  {
436
850
  "inputs": [],
437
- "name": "withdrawal",
851
+ "name": "symbol",
852
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
853
+ "stateMutability": "view",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [],
858
+ "name": "token0",
438
859
  "outputs": [
439
- {
440
- "internalType": "contract IStETHWithdrawal",
441
- "name": "",
442
- "type": "address"
443
- }
860
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
861
+ ],
862
+ "stateMutability": "view",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [],
867
+ "name": "token1",
868
+ "outputs": [
869
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
444
870
  ],
445
871
  "stateMutability": "view",
446
872
  "type": "function"
447
873
  },
448
874
  {
449
- "stateMutability": "payable",
450
- "type": "receive"
451
- }
875
+ "inputs": [],
876
+ "name": "totalAssets",
877
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
878
+ "stateMutability": "view",
879
+ "type": "function"
880
+ },
881
+ {
882
+ "inputs": [],
883
+ "name": "totalSupply",
884
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
885
+ "stateMutability": "view",
886
+ "type": "function"
887
+ },
888
+ {
889
+ "inputs": [],
890
+ "name": "traderate0",
891
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
892
+ "stateMutability": "view",
893
+ "type": "function"
894
+ },
895
+ {
896
+ "inputs": [],
897
+ "name": "traderate1",
898
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
899
+ "stateMutability": "view",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [
904
+ { "internalType": "address", "name": "to", "type": "address" },
905
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
906
+ ],
907
+ "name": "transfer",
908
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
909
+ "stateMutability": "nonpayable",
910
+ "type": "function"
911
+ },
912
+ {
913
+ "inputs": [
914
+ { "internalType": "address", "name": "from", "type": "address" },
915
+ { "internalType": "address", "name": "to", "type": "address" },
916
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
917
+ ],
918
+ "name": "transferFrom",
919
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
920
+ "stateMutability": "nonpayable",
921
+ "type": "function"
922
+ },
923
+ {
924
+ "inputs": [],
925
+ "name": "weth",
926
+ "outputs": [
927
+ { "internalType": "contract IWETH", "name": "", "type": "address" }
928
+ ],
929
+ "stateMutability": "view",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [
934
+ { "internalType": "uint256", "name": "requestId", "type": "uint256" }
935
+ ],
936
+ "name": "withdrawalRequests",
937
+ "outputs": [
938
+ { "internalType": "address", "name": "withdrawer", "type": "address" },
939
+ { "internalType": "bool", "name": "claimed", "type": "bool" },
940
+ { "internalType": "uint40", "name": "claimTimestamp", "type": "uint40" },
941
+ { "internalType": "uint128", "name": "assets", "type": "uint128" },
942
+ { "internalType": "uint128", "name": "queued", "type": "uint128" }
943
+ ],
944
+ "stateMutability": "view",
945
+ "type": "function"
946
+ },
947
+ {
948
+ "inputs": [],
949
+ "name": "withdrawsClaimed",
950
+ "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
951
+ "stateMutability": "view",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [],
956
+ "name": "withdrawsQueued",
957
+ "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
958
+ "stateMutability": "view",
959
+ "type": "function"
960
+ },
961
+ { "stateMutability": "payable", "type": "receive" }
452
962
  ]