@paraswap/dex-lib 3.7.3 → 3.7.4-stata

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 (36) hide show
  1. package/build/dex/aave-v3-stata/aave-v3-stata.d.ts +0 -2
  2. package/build/dex/aave-v3-stata/aave-v3-stata.js +84 -41
  3. package/build/dex/aave-v3-stata/aave-v3-stata.js.map +1 -1
  4. package/build/dex/aave-v3-stata/tokens.d.ts +1 -0
  5. package/build/dex/aave-v3-stata/tokens.js +11 -5
  6. package/build/dex/aave-v3-stata/tokens.js.map +1 -1
  7. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  8. package/build/dex/idle-dao/idle-dao.js +10 -8
  9. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  10. package/build/dex/index.js +2 -0
  11. package/build/dex/index.js.map +1 -1
  12. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +1 -0
  13. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  14. package/build/dex/solidly-v3/solidly-v3.js +1 -0
  15. package/build/dex/solidly-v3/solidly-v3.js.map +1 -1
  16. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js +1 -0
  17. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js.map +1 -1
  18. package/build/dex/uniswap-v3/uniswap-v3.js +1 -0
  19. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/abi/aavev3stata/Factory.json +128 -0
  22. package/src/abi/aavev3stata/Token.json +735 -0
  23. package/src/dex/aave-v3-stata/aave-v3-stata-e2e.test.ts +355 -0
  24. package/src/dex/aave-v3-stata/aave-v3-stata-integration.test.ts +282 -0
  25. package/src/dex/aave-v3-stata/aave-v3-stata.ts +517 -0
  26. package/src/dex/aave-v3-stata/config.ts +61 -0
  27. package/src/dex/aave-v3-stata/tokens.ts +48 -0
  28. package/src/dex/aave-v3-stata/types.ts +69 -0
  29. package/src/dex/aave-v3-stata/utils.ts +84 -0
  30. package/src/dex/balancer-v2/balancer-v2.ts +0 -1
  31. package/src/dex/index.ts +2 -0
  32. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +2 -0
  33. package/src/dex/solidly-v3/solidly-v3.ts +2 -0
  34. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.ts +2 -0
  35. package/src/dex/uniswap-v3/uniswap-v3.ts +2 -0
  36. package/tests/constants-e2e.ts +78 -0
@@ -0,0 +1,735 @@
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
+ { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
15
+ {
16
+ "inputs": [
17
+ { "internalType": "uint256", "name": "length", "type": "uint256" }
18
+ ],
19
+ "name": "ECDSAInvalidSignatureLength",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
24
+ "name": "ECDSAInvalidSignatureS",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ { "internalType": "address", "name": "token", "type": "address" }
30
+ ],
31
+ "name": "SafeERC20FailedOperation",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "owner",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "spender",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint256",
52
+ "name": "amount",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "Approval",
57
+ "type": "event"
58
+ },
59
+ {
60
+ "anonymous": false,
61
+ "inputs": [
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "sender",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "indexed": true,
70
+ "internalType": "address",
71
+ "name": "owner",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "uint256",
77
+ "name": "assets",
78
+ "type": "uint256"
79
+ },
80
+ {
81
+ "indexed": false,
82
+ "internalType": "uint256",
83
+ "name": "shares",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "Deposit",
88
+ "type": "event"
89
+ },
90
+ {
91
+ "anonymous": false,
92
+ "inputs": [
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint8",
96
+ "name": "version",
97
+ "type": "uint8"
98
+ }
99
+ ],
100
+ "name": "Initialized",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": true,
108
+ "internalType": "address",
109
+ "name": "aToken",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "string",
115
+ "name": "staticATokenName",
116
+ "type": "string"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "internalType": "string",
121
+ "name": "staticATokenSymbol",
122
+ "type": "string"
123
+ }
124
+ ],
125
+ "name": "Initialized",
126
+ "type": "event"
127
+ },
128
+ {
129
+ "anonymous": false,
130
+ "inputs": [
131
+ {
132
+ "indexed": true,
133
+ "internalType": "address",
134
+ "name": "reward",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint256",
140
+ "name": "startIndex",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "name": "RewardTokenRegistered",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": true,
152
+ "internalType": "address",
153
+ "name": "from",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": true,
158
+ "internalType": "address",
159
+ "name": "to",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "uint256",
165
+ "name": "amount",
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "name": "Transfer",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "sender",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": true,
183
+ "internalType": "address",
184
+ "name": "receiver",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "owner",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": false,
195
+ "internalType": "uint256",
196
+ "name": "assets",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint256",
202
+ "name": "shares",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "name": "Withdraw",
207
+ "type": "event"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "DOMAIN_SEPARATOR",
212
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "INCENTIVES_CONTROLLER",
219
+ "outputs": [
220
+ {
221
+ "internalType": "contract IRewardsController",
222
+ "name": "",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "METADEPOSIT_TYPEHASH",
232
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [],
238
+ "name": "METAWITHDRAWAL_TYPEHASH",
239
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
240
+ "stateMutability": "view",
241
+ "type": "function"
242
+ },
243
+ {
244
+ "inputs": [],
245
+ "name": "PERMIT_TYPEHASH",
246
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
247
+ "stateMutability": "view",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "POOL",
253
+ "outputs": [
254
+ { "internalType": "contract IPool", "name": "", "type": "address" }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [],
261
+ "name": "STATIC__ATOKEN_LM_REVISION",
262
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
263
+ "stateMutability": "view",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [],
268
+ "name": "aToken",
269
+ "outputs": [
270
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
271
+ ],
272
+ "stateMutability": "view",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [
277
+ { "internalType": "address", "name": "", "type": "address" },
278
+ { "internalType": "address", "name": "", "type": "address" }
279
+ ],
280
+ "name": "allowance",
281
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
282
+ "stateMutability": "view",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "inputs": [
287
+ { "internalType": "address", "name": "spender", "type": "address" },
288
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
289
+ ],
290
+ "name": "approve",
291
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
292
+ "stateMutability": "nonpayable",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "asset",
298
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
304
+ "name": "balanceOf",
305
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "inputs": [
311
+ { "internalType": "address", "name": "receiver", "type": "address" },
312
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
313
+ ],
314
+ "name": "claimRewards",
315
+ "outputs": [],
316
+ "stateMutability": "nonpayable",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ { "internalType": "address", "name": "onBehalfOf", "type": "address" },
322
+ { "internalType": "address", "name": "receiver", "type": "address" },
323
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
324
+ ],
325
+ "name": "claimRewardsOnBehalf",
326
+ "outputs": [],
327
+ "stateMutability": "nonpayable",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [
332
+ { "internalType": "address[]", "name": "rewards", "type": "address[]" }
333
+ ],
334
+ "name": "claimRewardsToSelf",
335
+ "outputs": [],
336
+ "stateMutability": "nonpayable",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [
341
+ { "internalType": "address", "name": "reward", "type": "address" }
342
+ ],
343
+ "name": "collectAndUpdateRewards",
344
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
345
+ "stateMutability": "nonpayable",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
351
+ ],
352
+ "name": "convertToAssets",
353
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
354
+ "stateMutability": "view",
355
+ "type": "function"
356
+ },
357
+ {
358
+ "inputs": [
359
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
360
+ ],
361
+ "name": "convertToShares",
362
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "decimals",
369
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
376
+ { "internalType": "address", "name": "receiver", "type": "address" },
377
+ { "internalType": "uint16", "name": "referralCode", "type": "uint16" },
378
+ { "internalType": "bool", "name": "depositToAave", "type": "bool" }
379
+ ],
380
+ "name": "deposit",
381
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
382
+ "stateMutability": "nonpayable",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [
387
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
388
+ { "internalType": "address", "name": "receiver", "type": "address" }
389
+ ],
390
+ "name": "deposit",
391
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ { "internalType": "address", "name": "user", "type": "address" },
398
+ { "internalType": "address", "name": "reward", "type": "address" }
399
+ ],
400
+ "name": "getClaimableRewards",
401
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
402
+ "stateMutability": "view",
403
+ "type": "function"
404
+ },
405
+ {
406
+ "inputs": [
407
+ { "internalType": "address", "name": "reward", "type": "address" }
408
+ ],
409
+ "name": "getCurrentRewardsIndex",
410
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
411
+ "stateMutability": "view",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [
416
+ { "internalType": "address", "name": "reward", "type": "address" }
417
+ ],
418
+ "name": "getTotalClaimableRewards",
419
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
420
+ "stateMutability": "view",
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [
425
+ { "internalType": "address", "name": "user", "type": "address" },
426
+ { "internalType": "address", "name": "reward", "type": "address" }
427
+ ],
428
+ "name": "getUnclaimedRewards",
429
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ { "internalType": "address", "name": "newAToken", "type": "address" },
436
+ {
437
+ "internalType": "string",
438
+ "name": "staticATokenName",
439
+ "type": "string"
440
+ },
441
+ {
442
+ "internalType": "string",
443
+ "name": "staticATokenSymbol",
444
+ "type": "string"
445
+ }
446
+ ],
447
+ "name": "initialize",
448
+ "outputs": [],
449
+ "stateMutability": "nonpayable",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ { "internalType": "address", "name": "reward", "type": "address" }
455
+ ],
456
+ "name": "isRegisteredRewardToken",
457
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
458
+ "stateMutability": "view",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
463
+ "name": "maxDeposit",
464
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
470
+ "name": "maxMint",
471
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
472
+ "stateMutability": "view",
473
+ "type": "function"
474
+ },
475
+ {
476
+ "inputs": [
477
+ { "internalType": "address", "name": "owner", "type": "address" }
478
+ ],
479
+ "name": "maxRedeem",
480
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
481
+ "stateMutability": "view",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [
486
+ { "internalType": "address", "name": "owner", "type": "address" }
487
+ ],
488
+ "name": "maxWithdraw",
489
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [
495
+ { "internalType": "address", "name": "depositor", "type": "address" },
496
+ { "internalType": "address", "name": "receiver", "type": "address" },
497
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
498
+ { "internalType": "uint16", "name": "referralCode", "type": "uint16" },
499
+ { "internalType": "bool", "name": "depositToAave", "type": "bool" },
500
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
501
+ {
502
+ "components": [
503
+ { "internalType": "address", "name": "owner", "type": "address" },
504
+ { "internalType": "address", "name": "spender", "type": "address" },
505
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
506
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
507
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
508
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
509
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
510
+ ],
511
+ "internalType": "struct IStaticATokenLM.PermitParams",
512
+ "name": "permit",
513
+ "type": "tuple"
514
+ },
515
+ {
516
+ "components": [
517
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
518
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
519
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
520
+ ],
521
+ "internalType": "struct IStaticATokenLM.SignatureParams",
522
+ "name": "sigParams",
523
+ "type": "tuple"
524
+ }
525
+ ],
526
+ "name": "metaDeposit",
527
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
528
+ "stateMutability": "nonpayable",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ { "internalType": "address", "name": "owner", "type": "address" },
534
+ { "internalType": "address", "name": "receiver", "type": "address" },
535
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
536
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
537
+ { "internalType": "bool", "name": "withdrawFromAave", "type": "bool" },
538
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
539
+ {
540
+ "components": [
541
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
542
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
543
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
544
+ ],
545
+ "internalType": "struct IStaticATokenLM.SignatureParams",
546
+ "name": "sigParams",
547
+ "type": "tuple"
548
+ }
549
+ ],
550
+ "name": "metaWithdraw",
551
+ "outputs": [
552
+ { "internalType": "uint256", "name": "", "type": "uint256" },
553
+ { "internalType": "uint256", "name": "", "type": "uint256" }
554
+ ],
555
+ "stateMutability": "nonpayable",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [
560
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
561
+ { "internalType": "address", "name": "receiver", "type": "address" }
562
+ ],
563
+ "name": "mint",
564
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
565
+ "stateMutability": "nonpayable",
566
+ "type": "function"
567
+ },
568
+ {
569
+ "inputs": [],
570
+ "name": "name",
571
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
572
+ "stateMutability": "view",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
577
+ "name": "nonces",
578
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
579
+ "stateMutability": "view",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [
584
+ { "internalType": "address", "name": "owner", "type": "address" },
585
+ { "internalType": "address", "name": "spender", "type": "address" },
586
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
587
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
588
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
589
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
590
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
591
+ ],
592
+ "name": "permit",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [
599
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
600
+ ],
601
+ "name": "previewDeposit",
602
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
603
+ "stateMutability": "view",
604
+ "type": "function"
605
+ },
606
+ {
607
+ "inputs": [
608
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
609
+ ],
610
+ "name": "previewMint",
611
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [
617
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
618
+ ],
619
+ "name": "previewRedeem",
620
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [
626
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
627
+ ],
628
+ "name": "previewWithdraw",
629
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
630
+ "stateMutability": "view",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [],
635
+ "name": "rate",
636
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
637
+ "stateMutability": "view",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "inputs": [
642
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
643
+ { "internalType": "address", "name": "receiver", "type": "address" },
644
+ { "internalType": "address", "name": "owner", "type": "address" }
645
+ ],
646
+ "name": "redeem",
647
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
648
+ "stateMutability": "nonpayable",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [
653
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
654
+ { "internalType": "address", "name": "receiver", "type": "address" },
655
+ { "internalType": "address", "name": "owner", "type": "address" },
656
+ { "internalType": "bool", "name": "withdrawFromAave", "type": "bool" }
657
+ ],
658
+ "name": "redeem",
659
+ "outputs": [
660
+ { "internalType": "uint256", "name": "", "type": "uint256" },
661
+ { "internalType": "uint256", "name": "", "type": "uint256" }
662
+ ],
663
+ "stateMutability": "nonpayable",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [],
668
+ "name": "refreshRewardTokens",
669
+ "outputs": [],
670
+ "stateMutability": "nonpayable",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [],
675
+ "name": "rewardTokens",
676
+ "outputs": [
677
+ { "internalType": "address[]", "name": "", "type": "address[]" }
678
+ ],
679
+ "stateMutability": "view",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [],
684
+ "name": "symbol",
685
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "totalAssets",
692
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [],
698
+ "name": "totalSupply",
699
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
700
+ "stateMutability": "view",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [
705
+ { "internalType": "address", "name": "to", "type": "address" },
706
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
707
+ ],
708
+ "name": "transfer",
709
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
710
+ "stateMutability": "nonpayable",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [
715
+ { "internalType": "address", "name": "from", "type": "address" },
716
+ { "internalType": "address", "name": "to", "type": "address" },
717
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
718
+ ],
719
+ "name": "transferFrom",
720
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
721
+ "stateMutability": "nonpayable",
722
+ "type": "function"
723
+ },
724
+ {
725
+ "inputs": [
726
+ { "internalType": "uint256", "name": "assets", "type": "uint256" },
727
+ { "internalType": "address", "name": "receiver", "type": "address" },
728
+ { "internalType": "address", "name": "owner", "type": "address" }
729
+ ],
730
+ "name": "withdraw",
731
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
732
+ "stateMutability": "nonpayable",
733
+ "type": "function"
734
+ }
735
+ ]