@paraswap/dex-lib 4.0.17 → 4.0.18

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 (47) hide show
  1. package/build/abi/aavev3statav2/Factory.json +131 -0
  2. package/build/abi/aavev3statav2/Pool.json +1459 -0
  3. package/build/abi/aavev3statav2/Token.json +997 -0
  4. package/build/dex/aave-gsm/config.js +2 -2
  5. package/build/dex/aave-gsm/config.js.map +1 -1
  6. package/build/dex/aave-v2/tokenlist.json +904 -0
  7. package/build/dex/aave-v2/tokens.js +6 -4
  8. package/build/dex/aave-v2/tokens.js.map +1 -1
  9. package/build/dex/aave-v3/config.js +6 -6
  10. package/build/dex/aave-v3/config.js.map +1 -1
  11. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.d.ts +49 -0
  12. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +377 -0
  13. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +1 -0
  14. package/build/dex/aave-v3-stata-v2/config.d.ts +3 -0
  15. package/build/dex/aave-v3-stata-v2/config.js +21 -0
  16. package/build/dex/aave-v3-stata-v2/config.js.map +1 -0
  17. package/build/dex/aave-v3-stata-v2/tokens.d.ts +10 -0
  18. package/build/dex/aave-v3-stata-v2/tokens.js +43 -0
  19. package/build/dex/aave-v3-stata-v2/tokens.js.map +1 -0
  20. package/build/dex/aave-v3-stata-v2/types.d.ts +35 -0
  21. package/build/dex/aave-v3-stata-v2/types.js +25 -0
  22. package/build/dex/aave-v3-stata-v2/types.js.map +1 -0
  23. package/build/dex/aave-v3-stata-v2/utils.d.ts +4 -0
  24. package/build/dex/aave-v3-stata-v2/utils.js +67 -0
  25. package/build/dex/aave-v3-stata-v2/utils.js.map +1 -0
  26. package/build/dex/index.js +2 -0
  27. package/build/dex/index.js.map +1 -1
  28. package/build/dex/stkgho/config.js +2 -2
  29. package/build/dex/stkgho/config.js.map +1 -1
  30. package/package.json +2 -2
  31. package/src/abi/aavev3statav2/Factory.json +131 -0
  32. package/src/abi/aavev3statav2/Pool.json +1459 -0
  33. package/src/abi/aavev3statav2/Token.json +997 -0
  34. package/src/dex/aave-gsm/config.ts +3 -3
  35. package/src/dex/aave-v2/tokenlist.json +904 -0
  36. package/src/dex/aave-v2/tokens.ts +3 -4
  37. package/src/dex/aave-v3/config.ts +6 -7
  38. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +397 -0
  39. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-integration.test.ts +600 -0
  40. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +477 -0
  41. package/src/dex/aave-v3-stata-v2/config.ts +24 -0
  42. package/src/dex/aave-v3-stata-v2/tokens.ts +48 -0
  43. package/src/dex/aave-v3-stata-v2/types.ts +41 -0
  44. package/src/dex/aave-v3-stata-v2/utils.ts +88 -0
  45. package/src/dex/index.ts +2 -0
  46. package/src/dex/stkgho/config.ts +3 -3
  47. package/tests/constants-e2e.ts +11 -1
@@ -0,0 +1,997 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "contract IPool", "name": "pool", "type": "address" },
5
+ {
6
+ "internalType": "contract IRewardsController",
7
+ "name": "rewardsController",
8
+ "type": "address"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable",
12
+ "type": "constructor"
13
+ },
14
+ {
15
+ "inputs": [
16
+ { "internalType": "address", "name": "target", "type": "address" }
17
+ ],
18
+ "name": "AddressEmptyCode",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [
23
+ { "internalType": "address", "name": "account", "type": "address" }
24
+ ],
25
+ "name": "AddressInsufficientBalance",
26
+ "type": "error"
27
+ },
28
+ { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
29
+ {
30
+ "inputs": [
31
+ { "internalType": "uint256", "name": "length", "type": "uint256" }
32
+ ],
33
+ "name": "ECDSAInvalidSignatureLength",
34
+ "type": "error"
35
+ },
36
+ {
37
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
38
+ "name": "ECDSAInvalidSignatureS",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "inputs": [
43
+ { "internalType": "address", "name": "spender", "type": "address" },
44
+ { "internalType": "uint256", "name": "allowance", "type": "uint256" },
45
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
46
+ ],
47
+ "name": "ERC20InsufficientAllowance",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ { "internalType": "address", "name": "sender", "type": "address" },
53
+ { "internalType": "uint256", "name": "balance", "type": "uint256" },
54
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
55
+ ],
56
+ "name": "ERC20InsufficientBalance",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ { "internalType": "address", "name": "approver", "type": "address" }
62
+ ],
63
+ "name": "ERC20InvalidApprover",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ { "internalType": "address", "name": "receiver", "type": "address" }
69
+ ],
70
+ "name": "ERC20InvalidReceiver",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [
75
+ { "internalType": "address", "name": "sender", "type": "address" }
76
+ ],
77
+ "name": "ERC20InvalidSender",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [
82
+ { "internalType": "address", "name": "spender", "type": "address" }
83
+ ],
84
+ "name": "ERC20InvalidSpender",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
90
+ ],
91
+ "name": "ERC2612ExpiredSignature",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [
96
+ { "internalType": "address", "name": "signer", "type": "address" },
97
+ { "internalType": "address", "name": "owner", "type": "address" }
98
+ ],
99
+ "name": "ERC2612InvalidSigner",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [
104
+ { "internalType": "address", "name": "receiver", "type": "address" },
105
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
106
+ { "internalType": "uint256", "name": "max", "type": "uint256" }
107
+ ],
108
+ "name": "ERC4626ExceededMaxDeposit",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [
113
+ { "internalType": "address", "name": "receiver", "type": "address" },
114
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
115
+ { "internalType": "uint256", "name": "max", "type": "uint256" }
116
+ ],
117
+ "name": "ERC4626ExceededMaxMint",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [
122
+ { "internalType": "address", "name": "owner", "type": "address" },
123
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
124
+ { "internalType": "uint256", "name": "max", "type": "uint256" }
125
+ ],
126
+ "name": "ERC4626ExceededMaxRedeem",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ { "internalType": "address", "name": "owner", "type": "address" },
132
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
133
+ { "internalType": "uint256", "name": "max", "type": "uint256" }
134
+ ],
135
+ "name": "ERC4626ExceededMaxWithdraw",
136
+ "type": "error"
137
+ },
138
+ { "inputs": [], "name": "EnforcedPause", "type": "error" },
139
+ { "inputs": [], "name": "EthTransferFailed", "type": "error" },
140
+ { "inputs": [], "name": "ExpectedPause", "type": "error" },
141
+ { "inputs": [], "name": "FailedInnerCall", "type": "error" },
142
+ {
143
+ "inputs": [
144
+ { "internalType": "address", "name": "account", "type": "address" },
145
+ { "internalType": "uint256", "name": "currentNonce", "type": "uint256" }
146
+ ],
147
+ "name": "InvalidAccountNonce",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [
152
+ { "internalType": "address", "name": "claimer", "type": "address" }
153
+ ],
154
+ "name": "InvalidClaimer",
155
+ "type": "error"
156
+ },
157
+ { "inputs": [], "name": "InvalidInitialization", "type": "error" },
158
+ { "inputs": [], "name": "MathOverflowedMulDiv", "type": "error" },
159
+ { "inputs": [], "name": "NotInitializing", "type": "error" },
160
+ {
161
+ "inputs": [
162
+ { "internalType": "address", "name": "caller", "type": "address" }
163
+ ],
164
+ "name": "OnlyPauseGuardian",
165
+ "type": "error"
166
+ },
167
+ { "inputs": [], "name": "OnlyRescueGuardian", "type": "error" },
168
+ {
169
+ "inputs": [
170
+ { "internalType": "address", "name": "pool", "type": "address" }
171
+ ],
172
+ "name": "PoolAddressMismatch",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [
177
+ { "internalType": "address", "name": "reward", "type": "address" }
178
+ ],
179
+ "name": "RewardNotInitialized",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [
184
+ { "internalType": "address", "name": "token", "type": "address" }
185
+ ],
186
+ "name": "SafeERC20FailedOperation",
187
+ "type": "error"
188
+ },
189
+ {
190
+ "inputs": [
191
+ { "internalType": "address", "name": "token", "type": "address" }
192
+ ],
193
+ "name": "SafeERC20FailedOperation",
194
+ "type": "error"
195
+ },
196
+ { "inputs": [], "name": "StaticATokenInvalidZeroShares", "type": "error" },
197
+ {
198
+ "inputs": [],
199
+ "name": "ZeroIncentivesControllerIsForbidden",
200
+ "type": "error"
201
+ },
202
+ {
203
+ "anonymous": false,
204
+ "inputs": [
205
+ {
206
+ "indexed": true,
207
+ "internalType": "address",
208
+ "name": "owner",
209
+ "type": "address"
210
+ },
211
+ {
212
+ "indexed": true,
213
+ "internalType": "address",
214
+ "name": "spender",
215
+ "type": "address"
216
+ },
217
+ {
218
+ "indexed": false,
219
+ "internalType": "uint256",
220
+ "name": "value",
221
+ "type": "uint256"
222
+ }
223
+ ],
224
+ "name": "Approval",
225
+ "type": "event"
226
+ },
227
+ {
228
+ "anonymous": false,
229
+ "inputs": [
230
+ {
231
+ "indexed": true,
232
+ "internalType": "address",
233
+ "name": "sender",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": true,
238
+ "internalType": "address",
239
+ "name": "owner",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "indexed": false,
244
+ "internalType": "uint256",
245
+ "name": "assets",
246
+ "type": "uint256"
247
+ },
248
+ {
249
+ "indexed": false,
250
+ "internalType": "uint256",
251
+ "name": "shares",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "name": "Deposit",
256
+ "type": "event"
257
+ },
258
+ {
259
+ "anonymous": false,
260
+ "inputs": [],
261
+ "name": "EIP712DomainChanged",
262
+ "type": "event"
263
+ },
264
+ {
265
+ "anonymous": false,
266
+ "inputs": [
267
+ {
268
+ "indexed": true,
269
+ "internalType": "address",
270
+ "name": "caller",
271
+ "type": "address"
272
+ },
273
+ {
274
+ "indexed": true,
275
+ "internalType": "address",
276
+ "name": "token",
277
+ "type": "address"
278
+ },
279
+ {
280
+ "indexed": true,
281
+ "internalType": "address",
282
+ "name": "to",
283
+ "type": "address"
284
+ },
285
+ {
286
+ "indexed": false,
287
+ "internalType": "uint256",
288
+ "name": "amount",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "name": "ERC20Rescued",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "indexed": false,
300
+ "internalType": "uint64",
301
+ "name": "version",
302
+ "type": "uint64"
303
+ }
304
+ ],
305
+ "name": "Initialized",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": true,
313
+ "internalType": "address",
314
+ "name": "caller",
315
+ "type": "address"
316
+ },
317
+ {
318
+ "indexed": true,
319
+ "internalType": "address",
320
+ "name": "to",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "indexed": false,
325
+ "internalType": "uint256",
326
+ "name": "amount",
327
+ "type": "uint256"
328
+ }
329
+ ],
330
+ "name": "NativeTokensRescued",
331
+ "type": "event"
332
+ },
333
+ {
334
+ "anonymous": false,
335
+ "inputs": [
336
+ {
337
+ "indexed": false,
338
+ "internalType": "address",
339
+ "name": "account",
340
+ "type": "address"
341
+ }
342
+ ],
343
+ "name": "Paused",
344
+ "type": "event"
345
+ },
346
+ {
347
+ "anonymous": false,
348
+ "inputs": [
349
+ {
350
+ "indexed": true,
351
+ "internalType": "address",
352
+ "name": "reward",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "indexed": false,
357
+ "internalType": "uint256",
358
+ "name": "startIndex",
359
+ "type": "uint256"
360
+ }
361
+ ],
362
+ "name": "RewardTokenRegistered",
363
+ "type": "event"
364
+ },
365
+ {
366
+ "anonymous": false,
367
+ "inputs": [
368
+ {
369
+ "indexed": true,
370
+ "internalType": "address",
371
+ "name": "from",
372
+ "type": "address"
373
+ },
374
+ {
375
+ "indexed": true,
376
+ "internalType": "address",
377
+ "name": "to",
378
+ "type": "address"
379
+ },
380
+ {
381
+ "indexed": false,
382
+ "internalType": "uint256",
383
+ "name": "value",
384
+ "type": "uint256"
385
+ }
386
+ ],
387
+ "name": "Transfer",
388
+ "type": "event"
389
+ },
390
+ {
391
+ "anonymous": false,
392
+ "inputs": [
393
+ {
394
+ "indexed": false,
395
+ "internalType": "address",
396
+ "name": "account",
397
+ "type": "address"
398
+ }
399
+ ],
400
+ "name": "Unpaused",
401
+ "type": "event"
402
+ },
403
+ {
404
+ "anonymous": false,
405
+ "inputs": [
406
+ {
407
+ "indexed": true,
408
+ "internalType": "address",
409
+ "name": "sender",
410
+ "type": "address"
411
+ },
412
+ {
413
+ "indexed": true,
414
+ "internalType": "address",
415
+ "name": "receiver",
416
+ "type": "address"
417
+ },
418
+ {
419
+ "indexed": true,
420
+ "internalType": "address",
421
+ "name": "owner",
422
+ "type": "address"
423
+ },
424
+ {
425
+ "indexed": false,
426
+ "internalType": "uint256",
427
+ "name": "assets",
428
+ "type": "uint256"
429
+ },
430
+ {
431
+ "indexed": false,
432
+ "internalType": "uint256",
433
+ "name": "shares",
434
+ "type": "uint256"
435
+ }
436
+ ],
437
+ "name": "Withdraw",
438
+ "type": "event"
439
+ },
440
+ {
441
+ "inputs": [],
442
+ "name": "DOMAIN_SEPARATOR",
443
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
444
+ "stateMutability": "view",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "INCENTIVES_CONTROLLER",
450
+ "outputs": [
451
+ {
452
+ "internalType": "contract IRewardsController",
453
+ "name": "",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [],
462
+ "name": "POOL",
463
+ "outputs": [
464
+ { "internalType": "contract IPool", "name": "", "type": "address" }
465
+ ],
466
+ "stateMutability": "view",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [],
471
+ "name": "POOL_ADDRESSES_PROVIDER",
472
+ "outputs": [
473
+ {
474
+ "internalType": "contract IPoolAddressesProvider",
475
+ "name": "",
476
+ "type": "address"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [],
484
+ "name": "RAY",
485
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
486
+ "stateMutability": "view",
487
+ "type": "function"
488
+ },
489
+ {
490
+ "inputs": [],
491
+ "name": "aToken",
492
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
493
+ "stateMutability": "view",
494
+ "type": "function"
495
+ },
496
+ {
497
+ "inputs": [
498
+ { "internalType": "address", "name": "owner", "type": "address" },
499
+ { "internalType": "address", "name": "spender", "type": "address" }
500
+ ],
501
+ "name": "allowance",
502
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
503
+ "stateMutability": "view",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [
508
+ { "internalType": "address", "name": "spender", "type": "address" },
509
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
510
+ ],
511
+ "name": "approve",
512
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
513
+ "stateMutability": "nonpayable",
514
+ "type": "function"
515
+ },
516
+ {
517
+ "inputs": [],
518
+ "name": "asset",
519
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
520
+ "stateMutability": "view",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [
525
+ { "internalType": "address", "name": "account", "type": "address" }
526
+ ],
527
+ "name": "balanceOf",
528
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
529
+ "stateMutability": "view",
530
+ "type": "function"
531
+ },
532
+ {
533
+ "inputs": [
534
+ { "internalType": "address", "name": "actor", "type": "address" }
535
+ ],
536
+ "name": "canPause",
537
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
538
+ "stateMutability": "view",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [
543
+ { "internalType": "address", "name": "receiver", "type": "address" },
544
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
545
+ ],
546
+ "name": "claimRewards",
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [
553
+ { "internalType": "address", "name": "onBehalfOf", "type": "address" },
554
+ { "internalType": "address", "name": "receiver", "type": "address" },
555
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
556
+ ],
557
+ "name": "claimRewardsOnBehalf",
558
+ "outputs": [],
559
+ "stateMutability": "nonpayable",
560
+ "type": "function"
561
+ },
562
+ {
563
+ "inputs": [
564
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
565
+ ],
566
+ "name": "claimRewardsToSelf",
567
+ "outputs": [],
568
+ "stateMutability": "nonpayable",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [
573
+ { "internalType": "address", "name": "reward", "type": "address" }
574
+ ],
575
+ "name": "collectAndUpdateRewards",
576
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
577
+ "stateMutability": "nonpayable",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [
582
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
583
+ ],
584
+ "name": "convertToAssets",
585
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
586
+ "stateMutability": "view",
587
+ "type": "function"
588
+ },
589
+ {
590
+ "inputs": [
591
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
592
+ ],
593
+ "name": "convertToShares",
594
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
595
+ "stateMutability": "view",
596
+ "type": "function"
597
+ },
598
+ {
599
+ "inputs": [],
600
+ "name": "decimals",
601
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
602
+ "stateMutability": "view",
603
+ "type": "function"
604
+ },
605
+ {
606
+ "inputs": [
607
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
608
+ { "internalType": "address", "name": "receiver", "type": "address" }
609
+ ],
610
+ "name": "deposit",
611
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
612
+ "stateMutability": "nonpayable",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [
617
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
618
+ { "internalType": "address", "name": "receiver", "type": "address" }
619
+ ],
620
+ "name": "depositATokens",
621
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
622
+ "stateMutability": "nonpayable",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [
627
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
628
+ { "internalType": "address", "name": "receiver", "type": "address" },
629
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
630
+ {
631
+ "components": [
632
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
633
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
634
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
635
+ ],
636
+ "internalType": "struct IERC4626StataToken.SignatureParams",
637
+ "name": "sig",
638
+ "type": "tuple"
639
+ },
640
+ { "internalType": "bool", "name": "depositToAave", "type": "bool" }
641
+ ],
642
+ "name": "depositWithPermit",
643
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
644
+ "stateMutability": "nonpayable",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [],
649
+ "name": "eip712Domain",
650
+ "outputs": [
651
+ { "internalType": "bytes1", "name": "fields", "type": "bytes1" },
652
+ { "internalType": "string", "name": "name", "type": "string" },
653
+ { "internalType": "string", "name": "version", "type": "string" },
654
+ { "internalType": "uint256", "name": "chainId", "type": "uint256" },
655
+ {
656
+ "internalType": "address",
657
+ "name": "verifyingContract",
658
+ "type": "address"
659
+ },
660
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" },
661
+ { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }
662
+ ],
663
+ "stateMutability": "view",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [
668
+ { "internalType": "address", "name": "to", "type": "address" },
669
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
670
+ ],
671
+ "name": "emergencyEtherTransfer",
672
+ "outputs": [],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [
678
+ { "internalType": "address", "name": "erc20Token", "type": "address" },
679
+ { "internalType": "address", "name": "to", "type": "address" },
680
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
681
+ ],
682
+ "name": "emergencyTokenTransfer",
683
+ "outputs": [],
684
+ "stateMutability": "nonpayable",
685
+ "type": "function"
686
+ },
687
+ {
688
+ "inputs": [
689
+ { "internalType": "address", "name": "user", "type": "address" },
690
+ { "internalType": "address", "name": "reward", "type": "address" }
691
+ ],
692
+ "name": "getClaimableRewards",
693
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
694
+ "stateMutability": "view",
695
+ "type": "function"
696
+ },
697
+ {
698
+ "inputs": [
699
+ { "internalType": "address", "name": "reward", "type": "address" }
700
+ ],
701
+ "name": "getCurrentRewardsIndex",
702
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [],
708
+ "name": "getReferenceAsset",
709
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
710
+ "stateMutability": "view",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [
715
+ { "internalType": "address", "name": "reward", "type": "address" }
716
+ ],
717
+ "name": "getTotalClaimableRewards",
718
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [
724
+ { "internalType": "address", "name": "user", "type": "address" },
725
+ { "internalType": "address", "name": "reward", "type": "address" }
726
+ ],
727
+ "name": "getUnclaimedRewards",
728
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
729
+ "stateMutability": "view",
730
+ "type": "function"
731
+ },
732
+ {
733
+ "inputs": [
734
+ { "internalType": "address", "name": "aToken", "type": "address" },
735
+ {
736
+ "internalType": "string",
737
+ "name": "staticATokenName",
738
+ "type": "string"
739
+ },
740
+ {
741
+ "internalType": "string",
742
+ "name": "staticATokenSymbol",
743
+ "type": "string"
744
+ }
745
+ ],
746
+ "name": "initialize",
747
+ "outputs": [],
748
+ "stateMutability": "nonpayable",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [
753
+ { "internalType": "address", "name": "reward", "type": "address" }
754
+ ],
755
+ "name": "isRegisteredRewardToken",
756
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
757
+ "stateMutability": "view",
758
+ "type": "function"
759
+ },
760
+ {
761
+ "inputs": [],
762
+ "name": "latestAnswer",
763
+ "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }],
764
+ "stateMutability": "view",
765
+ "type": "function"
766
+ },
767
+ {
768
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
769
+ "name": "maxDeposit",
770
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
771
+ "stateMutability": "view",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
776
+ "name": "maxMint",
777
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
778
+ "stateMutability": "view",
779
+ "type": "function"
780
+ },
781
+ {
782
+ "inputs": [
783
+ { "internalType": "address", "name": "owner", "type": "address" }
784
+ ],
785
+ "name": "maxRedeem",
786
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
787
+ "stateMutability": "view",
788
+ "type": "function"
789
+ },
790
+ {
791
+ "inputs": [
792
+ { "internalType": "address", "name": "asset", "type": "address" }
793
+ ],
794
+ "name": "maxRescue",
795
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
796
+ "stateMutability": "view",
797
+ "type": "function"
798
+ },
799
+ {
800
+ "inputs": [
801
+ { "internalType": "address", "name": "owner", "type": "address" }
802
+ ],
803
+ "name": "maxWithdraw",
804
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
805
+ "stateMutability": "view",
806
+ "type": "function"
807
+ },
808
+ {
809
+ "inputs": [
810
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
811
+ { "internalType": "address", "name": "receiver", "type": "address" }
812
+ ],
813
+ "name": "mint",
814
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
815
+ "stateMutability": "nonpayable",
816
+ "type": "function"
817
+ },
818
+ {
819
+ "inputs": [],
820
+ "name": "name",
821
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
822
+ "stateMutability": "view",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [
827
+ { "internalType": "address", "name": "owner", "type": "address" }
828
+ ],
829
+ "name": "nonces",
830
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
831
+ "stateMutability": "view",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "inputs": [],
836
+ "name": "paused",
837
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
838
+ "stateMutability": "view",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [
843
+ { "internalType": "address", "name": "owner", "type": "address" },
844
+ { "internalType": "address", "name": "spender", "type": "address" },
845
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
846
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
847
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
848
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
849
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
850
+ ],
851
+ "name": "permit",
852
+ "outputs": [],
853
+ "stateMutability": "nonpayable",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [
858
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
859
+ ],
860
+ "name": "previewDeposit",
861
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
862
+ "stateMutability": "view",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [
867
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
868
+ ],
869
+ "name": "previewMint",
870
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
871
+ "stateMutability": "view",
872
+ "type": "function"
873
+ },
874
+ {
875
+ "inputs": [
876
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
877
+ ],
878
+ "name": "previewRedeem",
879
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
880
+ "stateMutability": "view",
881
+ "type": "function"
882
+ },
883
+ {
884
+ "inputs": [
885
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
886
+ ],
887
+ "name": "previewWithdraw",
888
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
889
+ "stateMutability": "view",
890
+ "type": "function"
891
+ },
892
+ {
893
+ "inputs": [
894
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
895
+ { "internalType": "address", "name": "receiver", "type": "address" },
896
+ { "internalType": "address", "name": "owner", "type": "address" }
897
+ ],
898
+ "name": "redeem",
899
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
900
+ "stateMutability": "nonpayable",
901
+ "type": "function"
902
+ },
903
+ {
904
+ "inputs": [
905
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
906
+ { "internalType": "address", "name": "receiver", "type": "address" },
907
+ { "internalType": "address", "name": "owner", "type": "address" }
908
+ ],
909
+ "name": "redeemATokens",
910
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
911
+ "stateMutability": "nonpayable",
912
+ "type": "function"
913
+ },
914
+ {
915
+ "inputs": [],
916
+ "name": "refreshRewardTokens",
917
+ "outputs": [],
918
+ "stateMutability": "nonpayable",
919
+ "type": "function"
920
+ },
921
+ {
922
+ "inputs": [],
923
+ "name": "rewardTokens",
924
+ "outputs": [
925
+ { "internalType": "address[]", "name": "", "type": "address[]" }
926
+ ],
927
+ "stateMutability": "view",
928
+ "type": "function"
929
+ },
930
+ {
931
+ "inputs": [{ "internalType": "bool", "name": "paused", "type": "bool" }],
932
+ "name": "setPaused",
933
+ "outputs": [],
934
+ "stateMutability": "nonpayable",
935
+ "type": "function"
936
+ },
937
+ {
938
+ "inputs": [],
939
+ "name": "symbol",
940
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
941
+ "stateMutability": "view",
942
+ "type": "function"
943
+ },
944
+ {
945
+ "inputs": [],
946
+ "name": "totalAssets",
947
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
948
+ "stateMutability": "view",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [],
953
+ "name": "totalSupply",
954
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
955
+ "stateMutability": "view",
956
+ "type": "function"
957
+ },
958
+ {
959
+ "inputs": [
960
+ { "internalType": "address", "name": "to", "type": "address" },
961
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
962
+ ],
963
+ "name": "transfer",
964
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
965
+ "stateMutability": "nonpayable",
966
+ "type": "function"
967
+ },
968
+ {
969
+ "inputs": [
970
+ { "internalType": "address", "name": "from", "type": "address" },
971
+ { "internalType": "address", "name": "to", "type": "address" },
972
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
973
+ ],
974
+ "name": "transferFrom",
975
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
976
+ "stateMutability": "nonpayable",
977
+ "type": "function"
978
+ },
979
+ {
980
+ "inputs": [],
981
+ "name": "whoCanRescue",
982
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
983
+ "stateMutability": "view",
984
+ "type": "function"
985
+ },
986
+ {
987
+ "inputs": [
988
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
989
+ { "internalType": "address", "name": "receiver", "type": "address" },
990
+ { "internalType": "address", "name": "owner", "type": "address" }
991
+ ],
992
+ "name": "withdraw",
993
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
994
+ "stateMutability": "nonpayable",
995
+ "type": "function"
996
+ }
997
+ ]