curvance 1.0.3 → 1.0.5

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 (51) hide show
  1. package/README.md +2 -0
  2. package/dist/abis/BaseCToken.json +1550 -0
  3. package/dist/abis/BorrowableCToken.json +2188 -0
  4. package/dist/abis/IDynamicIRM.json +158 -0
  5. package/dist/abis/MarketManagerIsolated.json +1587 -0
  6. package/dist/abis/ProtocolReader.json +767 -0
  7. package/dist/classes/CToken.d.ts +170 -0
  8. package/dist/classes/CToken.d.ts.map +1 -0
  9. package/dist/classes/CToken.js +292 -0
  10. package/dist/classes/CToken.js.map +1 -0
  11. package/dist/classes/CVE.d.ts +7 -0
  12. package/dist/classes/CVE.d.ts.map +1 -0
  13. package/dist/classes/CVE.js +7 -0
  14. package/dist/classes/CVE.js.map +1 -0
  15. package/dist/classes/ERC20.d.ts +35 -0
  16. package/dist/classes/ERC20.d.ts.map +1 -0
  17. package/dist/classes/ERC20.js +68 -0
  18. package/dist/classes/ERC20.js.map +1 -0
  19. package/dist/classes/Faucet.d.ts +25 -0
  20. package/dist/classes/Faucet.d.ts.map +1 -0
  21. package/dist/classes/Faucet.js +48 -0
  22. package/dist/classes/Faucet.js.map +1 -0
  23. package/dist/classes/Market.d.ts +68 -0
  24. package/dist/classes/Market.d.ts.map +1 -0
  25. package/dist/classes/Market.js +136 -0
  26. package/dist/classes/Market.js.map +1 -0
  27. package/dist/classes/OracleManager.d.ts +13 -0
  28. package/dist/classes/OracleManager.d.ts.map +1 -0
  29. package/dist/classes/OracleManager.js +34 -0
  30. package/dist/classes/OracleManager.js.map +1 -0
  31. package/dist/classes/ProtocolReader.d.ts +116 -0
  32. package/dist/classes/ProtocolReader.d.ts.map +1 -0
  33. package/dist/classes/ProtocolReader.js +136 -0
  34. package/dist/classes/ProtocolReader.js.map +1 -0
  35. package/dist/helpers.d.ts +21 -0
  36. package/dist/helpers.d.ts.map +1 -0
  37. package/dist/helpers.js +55 -0
  38. package/dist/helpers.js.map +1 -0
  39. package/dist/index.d.ts +9 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +25 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/setup.d.ts +11 -0
  44. package/dist/setup.d.ts.map +1 -0
  45. package/dist/setup.js +2 -10
  46. package/dist/setup.js.map +1 -0
  47. package/dist/types.d.ts +10 -0
  48. package/dist/types.d.ts.map +1 -0
  49. package/dist/types.js +3 -0
  50. package/dist/types.js.map +1 -0
  51. package/package.json +10 -4
@@ -0,0 +1,2188 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "cr",
7
+ "type": "address",
8
+ "internalType": "contract ICentralRegistry"
9
+ },
10
+ {
11
+ "name": "asset_",
12
+ "type": "address",
13
+ "internalType": "contract IERC20"
14
+ },
15
+ {
16
+ "name": "mm",
17
+ "type": "address",
18
+ "internalType": "address"
19
+ },
20
+ {
21
+ "name": "IRM_",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "DOMAIN_SEPARATOR",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "result",
35
+ "type": "bytes32",
36
+ "internalType": "bytes32"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "FLASHLOAN_FEE",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "IRM",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "address",
62
+ "internalType": "contract IDynamicIRM"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "MAX_INTEREST_ACCRUAL_FEE",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "accrueIfNeeded",
83
+ "inputs": [],
84
+ "outputs": [],
85
+ "stateMutability": "nonpayable"
86
+ },
87
+ {
88
+ "type": "function",
89
+ "name": "allowance",
90
+ "inputs": [
91
+ {
92
+ "name": "owner",
93
+ "type": "address",
94
+ "internalType": "address"
95
+ },
96
+ {
97
+ "name": "spender",
98
+ "type": "address",
99
+ "internalType": "address"
100
+ }
101
+ ],
102
+ "outputs": [
103
+ {
104
+ "name": "result",
105
+ "type": "uint256",
106
+ "internalType": "uint256"
107
+ }
108
+ ],
109
+ "stateMutability": "view"
110
+ },
111
+ {
112
+ "type": "function",
113
+ "name": "approve",
114
+ "inputs": [
115
+ {
116
+ "name": "spender",
117
+ "type": "address",
118
+ "internalType": "address"
119
+ },
120
+ {
121
+ "name": "amount",
122
+ "type": "uint256",
123
+ "internalType": "uint256"
124
+ }
125
+ ],
126
+ "outputs": [
127
+ {
128
+ "name": "",
129
+ "type": "bool",
130
+ "internalType": "bool"
131
+ }
132
+ ],
133
+ "stateMutability": "nonpayable"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "asset",
138
+ "inputs": [],
139
+ "outputs": [
140
+ {
141
+ "name": "",
142
+ "type": "address",
143
+ "internalType": "address"
144
+ }
145
+ ],
146
+ "stateMutability": "view"
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "assetsHeld",
151
+ "inputs": [],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "uint256",
156
+ "internalType": "uint256"
157
+ }
158
+ ],
159
+ "stateMutability": "view"
160
+ },
161
+ {
162
+ "type": "function",
163
+ "name": "balanceOf",
164
+ "inputs": [
165
+ {
166
+ "name": "owner",
167
+ "type": "address",
168
+ "internalType": "address"
169
+ }
170
+ ],
171
+ "outputs": [
172
+ {
173
+ "name": "result",
174
+ "type": "uint256",
175
+ "internalType": "uint256"
176
+ }
177
+ ],
178
+ "stateMutability": "view"
179
+ },
180
+ {
181
+ "type": "function",
182
+ "name": "borrow",
183
+ "inputs": [
184
+ {
185
+ "name": "assets",
186
+ "type": "uint256",
187
+ "internalType": "uint256"
188
+ },
189
+ {
190
+ "name": "receiver",
191
+ "type": "address",
192
+ "internalType": "address"
193
+ }
194
+ ],
195
+ "outputs": [],
196
+ "stateMutability": "nonpayable"
197
+ },
198
+ {
199
+ "type": "function",
200
+ "name": "borrowFor",
201
+ "inputs": [
202
+ {
203
+ "name": "assets",
204
+ "type": "uint256",
205
+ "internalType": "uint256"
206
+ },
207
+ {
208
+ "name": "receiver",
209
+ "type": "address",
210
+ "internalType": "address"
211
+ },
212
+ {
213
+ "name": "owner",
214
+ "type": "address",
215
+ "internalType": "address"
216
+ }
217
+ ],
218
+ "outputs": [],
219
+ "stateMutability": "nonpayable"
220
+ },
221
+ {
222
+ "type": "function",
223
+ "name": "borrowForPositionManager",
224
+ "inputs": [
225
+ {
226
+ "name": "assets",
227
+ "type": "uint256",
228
+ "internalType": "uint256"
229
+ },
230
+ {
231
+ "name": "owner",
232
+ "type": "address",
233
+ "internalType": "address"
234
+ },
235
+ {
236
+ "name": "action",
237
+ "type": "tuple",
238
+ "internalType": "struct IPositionManager.LeverageAction",
239
+ "components": [
240
+ {
241
+ "name": "borrowableCToken",
242
+ "type": "address",
243
+ "internalType": "contract IBorrowableCToken"
244
+ },
245
+ {
246
+ "name": "borrowAssets",
247
+ "type": "uint256",
248
+ "internalType": "uint256"
249
+ },
250
+ {
251
+ "name": "cToken",
252
+ "type": "address",
253
+ "internalType": "contract ICToken"
254
+ },
255
+ {
256
+ "name": "swapAction",
257
+ "type": "tuple",
258
+ "internalType": "struct SwapperLib.Swap",
259
+ "components": [
260
+ {
261
+ "name": "inputToken",
262
+ "type": "address",
263
+ "internalType": "address"
264
+ },
265
+ {
266
+ "name": "inputAmount",
267
+ "type": "uint256",
268
+ "internalType": "uint256"
269
+ },
270
+ {
271
+ "name": "outputToken",
272
+ "type": "address",
273
+ "internalType": "address"
274
+ },
275
+ {
276
+ "name": "target",
277
+ "type": "address",
278
+ "internalType": "address"
279
+ },
280
+ {
281
+ "name": "slippage",
282
+ "type": "uint256",
283
+ "internalType": "uint256"
284
+ },
285
+ {
286
+ "name": "call",
287
+ "type": "bytes",
288
+ "internalType": "bytes"
289
+ }
290
+ ]
291
+ },
292
+ {
293
+ "name": "auxData",
294
+ "type": "bytes",
295
+ "internalType": "bytes"
296
+ }
297
+ ]
298
+ }
299
+ ],
300
+ "outputs": [],
301
+ "stateMutability": "nonpayable"
302
+ },
303
+ {
304
+ "type": "function",
305
+ "name": "centralRegistry",
306
+ "inputs": [],
307
+ "outputs": [
308
+ {
309
+ "name": "",
310
+ "type": "address",
311
+ "internalType": "contract ICentralRegistry"
312
+ }
313
+ ],
314
+ "stateMutability": "view"
315
+ },
316
+ {
317
+ "type": "function",
318
+ "name": "checkDelegationDisabled",
319
+ "inputs": [
320
+ {
321
+ "name": "user",
322
+ "type": "address",
323
+ "internalType": "address"
324
+ }
325
+ ],
326
+ "outputs": [
327
+ {
328
+ "name": "result",
329
+ "type": "bool",
330
+ "internalType": "bool"
331
+ }
332
+ ],
333
+ "stateMutability": "view"
334
+ },
335
+ {
336
+ "type": "function",
337
+ "name": "collateralPosted",
338
+ "inputs": [
339
+ {
340
+ "name": "",
341
+ "type": "address",
342
+ "internalType": "address"
343
+ }
344
+ ],
345
+ "outputs": [
346
+ {
347
+ "name": "",
348
+ "type": "uint256",
349
+ "internalType": "uint256"
350
+ }
351
+ ],
352
+ "stateMutability": "view"
353
+ },
354
+ {
355
+ "type": "function",
356
+ "name": "convertToAssets",
357
+ "inputs": [
358
+ {
359
+ "name": "shares",
360
+ "type": "uint256",
361
+ "internalType": "uint256"
362
+ }
363
+ ],
364
+ "outputs": [
365
+ {
366
+ "name": "",
367
+ "type": "uint256",
368
+ "internalType": "uint256"
369
+ }
370
+ ],
371
+ "stateMutability": "view"
372
+ },
373
+ {
374
+ "type": "function",
375
+ "name": "convertToShares",
376
+ "inputs": [
377
+ {
378
+ "name": "assets",
379
+ "type": "uint256",
380
+ "internalType": "uint256"
381
+ }
382
+ ],
383
+ "outputs": [
384
+ {
385
+ "name": "",
386
+ "type": "uint256",
387
+ "internalType": "uint256"
388
+ }
389
+ ],
390
+ "stateMutability": "view"
391
+ },
392
+ {
393
+ "type": "function",
394
+ "name": "debtBalance",
395
+ "inputs": [
396
+ {
397
+ "name": "account",
398
+ "type": "address",
399
+ "internalType": "address"
400
+ }
401
+ ],
402
+ "outputs": [
403
+ {
404
+ "name": "r",
405
+ "type": "uint256",
406
+ "internalType": "uint256"
407
+ }
408
+ ],
409
+ "stateMutability": "view"
410
+ },
411
+ {
412
+ "type": "function",
413
+ "name": "debtBalanceUpdated",
414
+ "inputs": [
415
+ {
416
+ "name": "account",
417
+ "type": "address",
418
+ "internalType": "address"
419
+ }
420
+ ],
421
+ "outputs": [
422
+ {
423
+ "name": "result",
424
+ "type": "uint256",
425
+ "internalType": "uint256"
426
+ }
427
+ ],
428
+ "stateMutability": "nonpayable"
429
+ },
430
+ {
431
+ "type": "function",
432
+ "name": "decimals",
433
+ "inputs": [],
434
+ "outputs": [
435
+ {
436
+ "name": "",
437
+ "type": "uint8",
438
+ "internalType": "uint8"
439
+ }
440
+ ],
441
+ "stateMutability": "view"
442
+ },
443
+ {
444
+ "type": "function",
445
+ "name": "deposit",
446
+ "inputs": [
447
+ {
448
+ "name": "assets",
449
+ "type": "uint256",
450
+ "internalType": "uint256"
451
+ },
452
+ {
453
+ "name": "receiver",
454
+ "type": "address",
455
+ "internalType": "address"
456
+ }
457
+ ],
458
+ "outputs": [
459
+ {
460
+ "name": "shares",
461
+ "type": "uint256",
462
+ "internalType": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "nonpayable"
466
+ },
467
+ {
468
+ "type": "function",
469
+ "name": "depositAsCollateral",
470
+ "inputs": [
471
+ {
472
+ "name": "assets",
473
+ "type": "uint256",
474
+ "internalType": "uint256"
475
+ },
476
+ {
477
+ "name": "receiver",
478
+ "type": "address",
479
+ "internalType": "address"
480
+ }
481
+ ],
482
+ "outputs": [
483
+ {
484
+ "name": "shares",
485
+ "type": "uint256",
486
+ "internalType": "uint256"
487
+ }
488
+ ],
489
+ "stateMutability": "nonpayable"
490
+ },
491
+ {
492
+ "type": "function",
493
+ "name": "depositAsCollateralFor",
494
+ "inputs": [
495
+ {
496
+ "name": "assets",
497
+ "type": "uint256",
498
+ "internalType": "uint256"
499
+ },
500
+ {
501
+ "name": "receiver",
502
+ "type": "address",
503
+ "internalType": "address"
504
+ }
505
+ ],
506
+ "outputs": [
507
+ {
508
+ "name": "shares",
509
+ "type": "uint256",
510
+ "internalType": "uint256"
511
+ }
512
+ ],
513
+ "stateMutability": "nonpayable"
514
+ },
515
+ {
516
+ "type": "function",
517
+ "name": "exchangeRate",
518
+ "inputs": [],
519
+ "outputs": [
520
+ {
521
+ "name": "r",
522
+ "type": "uint256",
523
+ "internalType": "uint256"
524
+ }
525
+ ],
526
+ "stateMutability": "view"
527
+ },
528
+ {
529
+ "type": "function",
530
+ "name": "exchangeRateUpdated",
531
+ "inputs": [],
532
+ "outputs": [
533
+ {
534
+ "name": "r",
535
+ "type": "uint256",
536
+ "internalType": "uint256"
537
+ }
538
+ ],
539
+ "stateMutability": "nonpayable"
540
+ },
541
+ {
542
+ "type": "function",
543
+ "name": "flashFee",
544
+ "inputs": [
545
+ {
546
+ "name": "assets",
547
+ "type": "uint256",
548
+ "internalType": "uint256"
549
+ }
550
+ ],
551
+ "outputs": [
552
+ {
553
+ "name": "fee",
554
+ "type": "uint256",
555
+ "internalType": "uint256"
556
+ }
557
+ ],
558
+ "stateMutability": "pure"
559
+ },
560
+ {
561
+ "type": "function",
562
+ "name": "flashLoan",
563
+ "inputs": [
564
+ {
565
+ "name": "assets",
566
+ "type": "uint256",
567
+ "internalType": "uint256"
568
+ },
569
+ {
570
+ "name": "data",
571
+ "type": "bytes",
572
+ "internalType": "bytes"
573
+ }
574
+ ],
575
+ "outputs": [],
576
+ "stateMutability": "nonpayable"
577
+ },
578
+ {
579
+ "type": "function",
580
+ "name": "getSnapshot",
581
+ "inputs": [
582
+ {
583
+ "name": "account",
584
+ "type": "address",
585
+ "internalType": "address"
586
+ }
587
+ ],
588
+ "outputs": [
589
+ {
590
+ "name": "result",
591
+ "type": "tuple",
592
+ "internalType": "struct AccountSnapshot",
593
+ "components": [
594
+ {
595
+ "name": "asset",
596
+ "type": "address",
597
+ "internalType": "address"
598
+ },
599
+ {
600
+ "name": "decimals",
601
+ "type": "uint8",
602
+ "internalType": "uint8"
603
+ },
604
+ {
605
+ "name": "isCollateral",
606
+ "type": "bool",
607
+ "internalType": "bool"
608
+ },
609
+ {
610
+ "name": "exchangeRate",
611
+ "type": "uint256",
612
+ "internalType": "uint256"
613
+ },
614
+ {
615
+ "name": "collateralPosted",
616
+ "type": "uint256",
617
+ "internalType": "uint256"
618
+ },
619
+ {
620
+ "name": "debtBalance",
621
+ "type": "uint256",
622
+ "internalType": "uint256"
623
+ }
624
+ ]
625
+ }
626
+ ],
627
+ "stateMutability": "view"
628
+ },
629
+ {
630
+ "type": "function",
631
+ "name": "getYieldInformation",
632
+ "inputs": [],
633
+ "outputs": [
634
+ {
635
+ "name": "vestingRate",
636
+ "type": "uint256",
637
+ "internalType": "uint256"
638
+ },
639
+ {
640
+ "name": "vestingEnd",
641
+ "type": "uint256",
642
+ "internalType": "uint256"
643
+ },
644
+ {
645
+ "name": "lastVestingClaim",
646
+ "type": "uint256",
647
+ "internalType": "uint256"
648
+ }
649
+ ],
650
+ "stateMutability": "view"
651
+ },
652
+ {
653
+ "type": "function",
654
+ "name": "initializeDeposits",
655
+ "inputs": [
656
+ {
657
+ "name": "by",
658
+ "type": "address",
659
+ "internalType": "address"
660
+ }
661
+ ],
662
+ "outputs": [
663
+ {
664
+ "name": "",
665
+ "type": "bool",
666
+ "internalType": "bool"
667
+ }
668
+ ],
669
+ "stateMutability": "nonpayable"
670
+ },
671
+ {
672
+ "type": "function",
673
+ "name": "interestFee",
674
+ "inputs": [],
675
+ "outputs": [
676
+ {
677
+ "name": "",
678
+ "type": "uint16",
679
+ "internalType": "uint16"
680
+ }
681
+ ],
682
+ "stateMutability": "view"
683
+ },
684
+ {
685
+ "type": "function",
686
+ "name": "isBorrowable",
687
+ "inputs": [],
688
+ "outputs": [
689
+ {
690
+ "name": "",
691
+ "type": "bool",
692
+ "internalType": "bool"
693
+ }
694
+ ],
695
+ "stateMutability": "pure"
696
+ },
697
+ {
698
+ "type": "function",
699
+ "name": "isDelegate",
700
+ "inputs": [
701
+ {
702
+ "name": "user",
703
+ "type": "address",
704
+ "internalType": "address"
705
+ },
706
+ {
707
+ "name": "delegate",
708
+ "type": "address",
709
+ "internalType": "address"
710
+ }
711
+ ],
712
+ "outputs": [
713
+ {
714
+ "name": "result",
715
+ "type": "bool",
716
+ "internalType": "bool"
717
+ }
718
+ ],
719
+ "stateMutability": "view"
720
+ },
721
+ {
722
+ "type": "function",
723
+ "name": "liquidate",
724
+ "inputs": [
725
+ {
726
+ "name": "accounts",
727
+ "type": "address[]",
728
+ "internalType": "address[]"
729
+ },
730
+ {
731
+ "name": "collateralToken",
732
+ "type": "address",
733
+ "internalType": "address"
734
+ }
735
+ ],
736
+ "outputs": [],
737
+ "stateMutability": "nonpayable"
738
+ },
739
+ {
740
+ "type": "function",
741
+ "name": "liquidateExact",
742
+ "inputs": [
743
+ {
744
+ "name": "debtAmounts",
745
+ "type": "uint256[]",
746
+ "internalType": "uint256[]"
747
+ },
748
+ {
749
+ "name": "accounts",
750
+ "type": "address[]",
751
+ "internalType": "address[]"
752
+ },
753
+ {
754
+ "name": "collateralToken",
755
+ "type": "address",
756
+ "internalType": "address"
757
+ }
758
+ ],
759
+ "outputs": [],
760
+ "stateMutability": "nonpayable"
761
+ },
762
+ {
763
+ "type": "function",
764
+ "name": "marketCollateralPosted",
765
+ "inputs": [],
766
+ "outputs": [
767
+ {
768
+ "name": "",
769
+ "type": "uint256",
770
+ "internalType": "uint256"
771
+ }
772
+ ],
773
+ "stateMutability": "view"
774
+ },
775
+ {
776
+ "type": "function",
777
+ "name": "marketManager",
778
+ "inputs": [],
779
+ "outputs": [
780
+ {
781
+ "name": "",
782
+ "type": "address",
783
+ "internalType": "contract IMarketManager"
784
+ }
785
+ ],
786
+ "stateMutability": "view"
787
+ },
788
+ {
789
+ "type": "function",
790
+ "name": "marketOutstandingDebt",
791
+ "inputs": [],
792
+ "outputs": [
793
+ {
794
+ "name": "",
795
+ "type": "uint240",
796
+ "internalType": "uint240"
797
+ }
798
+ ],
799
+ "stateMutability": "view"
800
+ },
801
+ {
802
+ "type": "function",
803
+ "name": "marketOutstandingDebtUpdated",
804
+ "inputs": [],
805
+ "outputs": [
806
+ {
807
+ "name": "result",
808
+ "type": "uint256",
809
+ "internalType": "uint256"
810
+ }
811
+ ],
812
+ "stateMutability": "nonpayable"
813
+ },
814
+ {
815
+ "type": "function",
816
+ "name": "maxDeposit",
817
+ "inputs": [
818
+ {
819
+ "name": "receiver",
820
+ "type": "address",
821
+ "internalType": "address"
822
+ }
823
+ ],
824
+ "outputs": [
825
+ {
826
+ "name": "maxAssets",
827
+ "type": "uint256",
828
+ "internalType": "uint256"
829
+ }
830
+ ],
831
+ "stateMutability": "view"
832
+ },
833
+ {
834
+ "type": "function",
835
+ "name": "maxMint",
836
+ "inputs": [
837
+ {
838
+ "name": "receiver",
839
+ "type": "address",
840
+ "internalType": "address"
841
+ }
842
+ ],
843
+ "outputs": [
844
+ {
845
+ "name": "maxShares",
846
+ "type": "uint256",
847
+ "internalType": "uint256"
848
+ }
849
+ ],
850
+ "stateMutability": "view"
851
+ },
852
+ {
853
+ "type": "function",
854
+ "name": "maxRedeem",
855
+ "inputs": [
856
+ {
857
+ "name": "owner",
858
+ "type": "address",
859
+ "internalType": "address"
860
+ }
861
+ ],
862
+ "outputs": [
863
+ {
864
+ "name": "maxShares",
865
+ "type": "uint256",
866
+ "internalType": "uint256"
867
+ }
868
+ ],
869
+ "stateMutability": "view"
870
+ },
871
+ {
872
+ "type": "function",
873
+ "name": "maxWithdraw",
874
+ "inputs": [
875
+ {
876
+ "name": "owner",
877
+ "type": "address",
878
+ "internalType": "address"
879
+ }
880
+ ],
881
+ "outputs": [
882
+ {
883
+ "name": "maxAssets",
884
+ "type": "uint256",
885
+ "internalType": "uint256"
886
+ }
887
+ ],
888
+ "stateMutability": "view"
889
+ },
890
+ {
891
+ "type": "function",
892
+ "name": "mint",
893
+ "inputs": [
894
+ {
895
+ "name": "shares",
896
+ "type": "uint256",
897
+ "internalType": "uint256"
898
+ },
899
+ {
900
+ "name": "receiver",
901
+ "type": "address",
902
+ "internalType": "address"
903
+ }
904
+ ],
905
+ "outputs": [
906
+ {
907
+ "name": "assets",
908
+ "type": "uint256",
909
+ "internalType": "uint256"
910
+ }
911
+ ],
912
+ "stateMutability": "nonpayable"
913
+ },
914
+ {
915
+ "type": "function",
916
+ "name": "multicall",
917
+ "inputs": [
918
+ {
919
+ "name": "calls",
920
+ "type": "tuple[]",
921
+ "internalType": "struct Multicall.MulticallAction[]",
922
+ "components": [
923
+ {
924
+ "name": "target",
925
+ "type": "address",
926
+ "internalType": "address"
927
+ },
928
+ {
929
+ "name": "isPriceUpdate",
930
+ "type": "bool",
931
+ "internalType": "bool"
932
+ },
933
+ {
934
+ "name": "data",
935
+ "type": "bytes",
936
+ "internalType": "bytes"
937
+ }
938
+ ]
939
+ }
940
+ ],
941
+ "outputs": [
942
+ {
943
+ "name": "results",
944
+ "type": "bytes[]",
945
+ "internalType": "bytes[]"
946
+ }
947
+ ],
948
+ "stateMutability": "nonpayable"
949
+ },
950
+ {
951
+ "type": "function",
952
+ "name": "name",
953
+ "inputs": [],
954
+ "outputs": [
955
+ {
956
+ "name": "",
957
+ "type": "string",
958
+ "internalType": "string"
959
+ }
960
+ ],
961
+ "stateMutability": "view"
962
+ },
963
+ {
964
+ "type": "function",
965
+ "name": "nonces",
966
+ "inputs": [
967
+ {
968
+ "name": "owner",
969
+ "type": "address",
970
+ "internalType": "address"
971
+ }
972
+ ],
973
+ "outputs": [
974
+ {
975
+ "name": "result",
976
+ "type": "uint256",
977
+ "internalType": "uint256"
978
+ }
979
+ ],
980
+ "stateMutability": "view"
981
+ },
982
+ {
983
+ "type": "function",
984
+ "name": "permit",
985
+ "inputs": [
986
+ {
987
+ "name": "owner",
988
+ "type": "address",
989
+ "internalType": "address"
990
+ },
991
+ {
992
+ "name": "spender",
993
+ "type": "address",
994
+ "internalType": "address"
995
+ },
996
+ {
997
+ "name": "value",
998
+ "type": "uint256",
999
+ "internalType": "uint256"
1000
+ },
1001
+ {
1002
+ "name": "deadline",
1003
+ "type": "uint256",
1004
+ "internalType": "uint256"
1005
+ },
1006
+ {
1007
+ "name": "v",
1008
+ "type": "uint8",
1009
+ "internalType": "uint8"
1010
+ },
1011
+ {
1012
+ "name": "r",
1013
+ "type": "bytes32",
1014
+ "internalType": "bytes32"
1015
+ },
1016
+ {
1017
+ "name": "s",
1018
+ "type": "bytes32",
1019
+ "internalType": "bytes32"
1020
+ }
1021
+ ],
1022
+ "outputs": [],
1023
+ "stateMutability": "nonpayable"
1024
+ },
1025
+ {
1026
+ "type": "function",
1027
+ "name": "postCollateral",
1028
+ "inputs": [
1029
+ {
1030
+ "name": "shares",
1031
+ "type": "uint256",
1032
+ "internalType": "uint256"
1033
+ }
1034
+ ],
1035
+ "outputs": [],
1036
+ "stateMutability": "nonpayable"
1037
+ },
1038
+ {
1039
+ "type": "function",
1040
+ "name": "postCollateralFor",
1041
+ "inputs": [
1042
+ {
1043
+ "name": "shares",
1044
+ "type": "uint256",
1045
+ "internalType": "uint256"
1046
+ },
1047
+ {
1048
+ "name": "owner",
1049
+ "type": "address",
1050
+ "internalType": "address"
1051
+ }
1052
+ ],
1053
+ "outputs": [],
1054
+ "stateMutability": "nonpayable"
1055
+ },
1056
+ {
1057
+ "type": "function",
1058
+ "name": "previewDeposit",
1059
+ "inputs": [
1060
+ {
1061
+ "name": "assets",
1062
+ "type": "uint256",
1063
+ "internalType": "uint256"
1064
+ }
1065
+ ],
1066
+ "outputs": [
1067
+ {
1068
+ "name": "",
1069
+ "type": "uint256",
1070
+ "internalType": "uint256"
1071
+ }
1072
+ ],
1073
+ "stateMutability": "view"
1074
+ },
1075
+ {
1076
+ "type": "function",
1077
+ "name": "previewMint",
1078
+ "inputs": [
1079
+ {
1080
+ "name": "shares",
1081
+ "type": "uint256",
1082
+ "internalType": "uint256"
1083
+ }
1084
+ ],
1085
+ "outputs": [
1086
+ {
1087
+ "name": "",
1088
+ "type": "uint256",
1089
+ "internalType": "uint256"
1090
+ }
1091
+ ],
1092
+ "stateMutability": "view"
1093
+ },
1094
+ {
1095
+ "type": "function",
1096
+ "name": "previewRedeem",
1097
+ "inputs": [
1098
+ {
1099
+ "name": "shares",
1100
+ "type": "uint256",
1101
+ "internalType": "uint256"
1102
+ }
1103
+ ],
1104
+ "outputs": [
1105
+ {
1106
+ "name": "",
1107
+ "type": "uint256",
1108
+ "internalType": "uint256"
1109
+ }
1110
+ ],
1111
+ "stateMutability": "view"
1112
+ },
1113
+ {
1114
+ "type": "function",
1115
+ "name": "previewWithdraw",
1116
+ "inputs": [
1117
+ {
1118
+ "name": "assets",
1119
+ "type": "uint256",
1120
+ "internalType": "uint256"
1121
+ }
1122
+ ],
1123
+ "outputs": [
1124
+ {
1125
+ "name": "",
1126
+ "type": "uint256",
1127
+ "internalType": "uint256"
1128
+ }
1129
+ ],
1130
+ "stateMutability": "view"
1131
+ },
1132
+ {
1133
+ "type": "function",
1134
+ "name": "redeem",
1135
+ "inputs": [
1136
+ {
1137
+ "name": "shares",
1138
+ "type": "uint256",
1139
+ "internalType": "uint256"
1140
+ },
1141
+ {
1142
+ "name": "receiver",
1143
+ "type": "address",
1144
+ "internalType": "address"
1145
+ },
1146
+ {
1147
+ "name": "owner",
1148
+ "type": "address",
1149
+ "internalType": "address"
1150
+ }
1151
+ ],
1152
+ "outputs": [
1153
+ {
1154
+ "name": "assets",
1155
+ "type": "uint256",
1156
+ "internalType": "uint256"
1157
+ }
1158
+ ],
1159
+ "stateMutability": "nonpayable"
1160
+ },
1161
+ {
1162
+ "type": "function",
1163
+ "name": "redeemCollateral",
1164
+ "inputs": [
1165
+ {
1166
+ "name": "shares",
1167
+ "type": "uint256",
1168
+ "internalType": "uint256"
1169
+ },
1170
+ {
1171
+ "name": "receiver",
1172
+ "type": "address",
1173
+ "internalType": "address"
1174
+ },
1175
+ {
1176
+ "name": "owner",
1177
+ "type": "address",
1178
+ "internalType": "address"
1179
+ }
1180
+ ],
1181
+ "outputs": [
1182
+ {
1183
+ "name": "assets",
1184
+ "type": "uint256",
1185
+ "internalType": "uint256"
1186
+ }
1187
+ ],
1188
+ "stateMutability": "nonpayable"
1189
+ },
1190
+ {
1191
+ "type": "function",
1192
+ "name": "redeemCollateralFor",
1193
+ "inputs": [
1194
+ {
1195
+ "name": "shares",
1196
+ "type": "uint256",
1197
+ "internalType": "uint256"
1198
+ },
1199
+ {
1200
+ "name": "receiver",
1201
+ "type": "address",
1202
+ "internalType": "address"
1203
+ },
1204
+ {
1205
+ "name": "owner",
1206
+ "type": "address",
1207
+ "internalType": "address"
1208
+ }
1209
+ ],
1210
+ "outputs": [
1211
+ {
1212
+ "name": "assets",
1213
+ "type": "uint256",
1214
+ "internalType": "uint256"
1215
+ }
1216
+ ],
1217
+ "stateMutability": "nonpayable"
1218
+ },
1219
+ {
1220
+ "type": "function",
1221
+ "name": "redeemFor",
1222
+ "inputs": [
1223
+ {
1224
+ "name": "shares",
1225
+ "type": "uint256",
1226
+ "internalType": "uint256"
1227
+ },
1228
+ {
1229
+ "name": "receiver",
1230
+ "type": "address",
1231
+ "internalType": "address"
1232
+ },
1233
+ {
1234
+ "name": "owner",
1235
+ "type": "address",
1236
+ "internalType": "address"
1237
+ }
1238
+ ],
1239
+ "outputs": [
1240
+ {
1241
+ "name": "assets",
1242
+ "type": "uint256",
1243
+ "internalType": "uint256"
1244
+ }
1245
+ ],
1246
+ "stateMutability": "nonpayable"
1247
+ },
1248
+ {
1249
+ "type": "function",
1250
+ "name": "removeCollateral",
1251
+ "inputs": [
1252
+ {
1253
+ "name": "shares",
1254
+ "type": "uint256",
1255
+ "internalType": "uint256"
1256
+ }
1257
+ ],
1258
+ "outputs": [],
1259
+ "stateMutability": "nonpayable"
1260
+ },
1261
+ {
1262
+ "type": "function",
1263
+ "name": "removeCollateralFor",
1264
+ "inputs": [
1265
+ {
1266
+ "name": "shares",
1267
+ "type": "uint256",
1268
+ "internalType": "uint256"
1269
+ },
1270
+ {
1271
+ "name": "owner",
1272
+ "type": "address",
1273
+ "internalType": "address"
1274
+ }
1275
+ ],
1276
+ "outputs": [],
1277
+ "stateMutability": "nonpayable"
1278
+ },
1279
+ {
1280
+ "type": "function",
1281
+ "name": "repay",
1282
+ "inputs": [
1283
+ {
1284
+ "name": "assets",
1285
+ "type": "uint256",
1286
+ "internalType": "uint256"
1287
+ }
1288
+ ],
1289
+ "outputs": [],
1290
+ "stateMutability": "nonpayable"
1291
+ },
1292
+ {
1293
+ "type": "function",
1294
+ "name": "repayFor",
1295
+ "inputs": [
1296
+ {
1297
+ "name": "assets",
1298
+ "type": "uint256",
1299
+ "internalType": "uint256"
1300
+ },
1301
+ {
1302
+ "name": "owner",
1303
+ "type": "address",
1304
+ "internalType": "address"
1305
+ }
1306
+ ],
1307
+ "outputs": [],
1308
+ "stateMutability": "nonpayable"
1309
+ },
1310
+ {
1311
+ "type": "function",
1312
+ "name": "rescueToken",
1313
+ "inputs": [
1314
+ {
1315
+ "name": "token",
1316
+ "type": "address",
1317
+ "internalType": "address"
1318
+ },
1319
+ {
1320
+ "name": "amount",
1321
+ "type": "uint256",
1322
+ "internalType": "uint256"
1323
+ }
1324
+ ],
1325
+ "outputs": [],
1326
+ "stateMutability": "nonpayable"
1327
+ },
1328
+ {
1329
+ "type": "function",
1330
+ "name": "seize",
1331
+ "inputs": [
1332
+ {
1333
+ "name": "liquidatedShares",
1334
+ "type": "uint256[]",
1335
+ "internalType": "uint256[]"
1336
+ },
1337
+ {
1338
+ "name": "liquidator",
1339
+ "type": "address",
1340
+ "internalType": "address"
1341
+ },
1342
+ {
1343
+ "name": "accounts",
1344
+ "type": "address[]",
1345
+ "internalType": "address[]"
1346
+ }
1347
+ ],
1348
+ "outputs": [],
1349
+ "stateMutability": "nonpayable"
1350
+ },
1351
+ {
1352
+ "type": "function",
1353
+ "name": "setDelegateApproval",
1354
+ "inputs": [
1355
+ {
1356
+ "name": "delegate",
1357
+ "type": "address",
1358
+ "internalType": "address"
1359
+ },
1360
+ {
1361
+ "name": "isApproved",
1362
+ "type": "bool",
1363
+ "internalType": "bool"
1364
+ }
1365
+ ],
1366
+ "outputs": [],
1367
+ "stateMutability": "nonpayable"
1368
+ },
1369
+ {
1370
+ "type": "function",
1371
+ "name": "setIRM",
1372
+ "inputs": [
1373
+ {
1374
+ "name": "newIRM",
1375
+ "type": "address",
1376
+ "internalType": "address"
1377
+ }
1378
+ ],
1379
+ "outputs": [],
1380
+ "stateMutability": "nonpayable"
1381
+ },
1382
+ {
1383
+ "type": "function",
1384
+ "name": "setInterestFee",
1385
+ "inputs": [
1386
+ {
1387
+ "name": "newInterestFee",
1388
+ "type": "uint256",
1389
+ "internalType": "uint256"
1390
+ }
1391
+ ],
1392
+ "outputs": [],
1393
+ "stateMutability": "nonpayable"
1394
+ },
1395
+ {
1396
+ "type": "function",
1397
+ "name": "supportsInterface",
1398
+ "inputs": [
1399
+ {
1400
+ "name": "interfaceId",
1401
+ "type": "bytes4",
1402
+ "internalType": "bytes4"
1403
+ }
1404
+ ],
1405
+ "outputs": [
1406
+ {
1407
+ "name": "result",
1408
+ "type": "bool",
1409
+ "internalType": "bool"
1410
+ }
1411
+ ],
1412
+ "stateMutability": "pure"
1413
+ },
1414
+ {
1415
+ "type": "function",
1416
+ "name": "symbol",
1417
+ "inputs": [],
1418
+ "outputs": [
1419
+ {
1420
+ "name": "",
1421
+ "type": "string",
1422
+ "internalType": "string"
1423
+ }
1424
+ ],
1425
+ "stateMutability": "view"
1426
+ },
1427
+ {
1428
+ "type": "function",
1429
+ "name": "totalAssets",
1430
+ "inputs": [],
1431
+ "outputs": [
1432
+ {
1433
+ "name": "",
1434
+ "type": "uint256",
1435
+ "internalType": "uint256"
1436
+ }
1437
+ ],
1438
+ "stateMutability": "view"
1439
+ },
1440
+ {
1441
+ "type": "function",
1442
+ "name": "totalSupply",
1443
+ "inputs": [],
1444
+ "outputs": [
1445
+ {
1446
+ "name": "result",
1447
+ "type": "uint256",
1448
+ "internalType": "uint256"
1449
+ }
1450
+ ],
1451
+ "stateMutability": "view"
1452
+ },
1453
+ {
1454
+ "type": "function",
1455
+ "name": "transfer",
1456
+ "inputs": [
1457
+ {
1458
+ "name": "receiver",
1459
+ "type": "address",
1460
+ "internalType": "address"
1461
+ },
1462
+ {
1463
+ "name": "shares",
1464
+ "type": "uint256",
1465
+ "internalType": "uint256"
1466
+ }
1467
+ ],
1468
+ "outputs": [
1469
+ {
1470
+ "name": "",
1471
+ "type": "bool",
1472
+ "internalType": "bool"
1473
+ }
1474
+ ],
1475
+ "stateMutability": "nonpayable"
1476
+ },
1477
+ {
1478
+ "type": "function",
1479
+ "name": "transferFrom",
1480
+ "inputs": [
1481
+ {
1482
+ "name": "owner",
1483
+ "type": "address",
1484
+ "internalType": "address"
1485
+ },
1486
+ {
1487
+ "name": "receiver",
1488
+ "type": "address",
1489
+ "internalType": "address"
1490
+ },
1491
+ {
1492
+ "name": "shares",
1493
+ "type": "uint256",
1494
+ "internalType": "uint256"
1495
+ }
1496
+ ],
1497
+ "outputs": [
1498
+ {
1499
+ "name": "",
1500
+ "type": "bool",
1501
+ "internalType": "bool"
1502
+ }
1503
+ ],
1504
+ "stateMutability": "nonpayable"
1505
+ },
1506
+ {
1507
+ "type": "function",
1508
+ "name": "userApprovalIndex",
1509
+ "inputs": [
1510
+ {
1511
+ "name": "user",
1512
+ "type": "address",
1513
+ "internalType": "address"
1514
+ }
1515
+ ],
1516
+ "outputs": [
1517
+ {
1518
+ "name": "result",
1519
+ "type": "uint256",
1520
+ "internalType": "uint256"
1521
+ }
1522
+ ],
1523
+ "stateMutability": "view"
1524
+ },
1525
+ {
1526
+ "type": "function",
1527
+ "name": "vestingPeriod",
1528
+ "inputs": [],
1529
+ "outputs": [
1530
+ {
1531
+ "name": "",
1532
+ "type": "uint256",
1533
+ "internalType": "uint256"
1534
+ }
1535
+ ],
1536
+ "stateMutability": "view"
1537
+ },
1538
+ {
1539
+ "type": "function",
1540
+ "name": "withdraw",
1541
+ "inputs": [
1542
+ {
1543
+ "name": "assets",
1544
+ "type": "uint256",
1545
+ "internalType": "uint256"
1546
+ },
1547
+ {
1548
+ "name": "receiver",
1549
+ "type": "address",
1550
+ "internalType": "address"
1551
+ },
1552
+ {
1553
+ "name": "owner",
1554
+ "type": "address",
1555
+ "internalType": "address"
1556
+ }
1557
+ ],
1558
+ "outputs": [
1559
+ {
1560
+ "name": "shares",
1561
+ "type": "uint256",
1562
+ "internalType": "uint256"
1563
+ }
1564
+ ],
1565
+ "stateMutability": "nonpayable"
1566
+ },
1567
+ {
1568
+ "type": "function",
1569
+ "name": "withdrawByPositionManager",
1570
+ "inputs": [
1571
+ {
1572
+ "name": "assets",
1573
+ "type": "uint256",
1574
+ "internalType": "uint256"
1575
+ },
1576
+ {
1577
+ "name": "owner",
1578
+ "type": "address",
1579
+ "internalType": "address"
1580
+ },
1581
+ {
1582
+ "name": "action",
1583
+ "type": "tuple",
1584
+ "internalType": "struct IPositionManager.DeleverageAction",
1585
+ "components": [
1586
+ {
1587
+ "name": "cToken",
1588
+ "type": "address",
1589
+ "internalType": "contract ICToken"
1590
+ },
1591
+ {
1592
+ "name": "collateralAssets",
1593
+ "type": "uint256",
1594
+ "internalType": "uint256"
1595
+ },
1596
+ {
1597
+ "name": "borrowableCToken",
1598
+ "type": "address",
1599
+ "internalType": "contract IBorrowableCToken"
1600
+ },
1601
+ {
1602
+ "name": "repayAssets",
1603
+ "type": "uint256",
1604
+ "internalType": "uint256"
1605
+ },
1606
+ {
1607
+ "name": "swapActions",
1608
+ "type": "tuple[]",
1609
+ "internalType": "struct SwapperLib.Swap[]",
1610
+ "components": [
1611
+ {
1612
+ "name": "inputToken",
1613
+ "type": "address",
1614
+ "internalType": "address"
1615
+ },
1616
+ {
1617
+ "name": "inputAmount",
1618
+ "type": "uint256",
1619
+ "internalType": "uint256"
1620
+ },
1621
+ {
1622
+ "name": "outputToken",
1623
+ "type": "address",
1624
+ "internalType": "address"
1625
+ },
1626
+ {
1627
+ "name": "target",
1628
+ "type": "address",
1629
+ "internalType": "address"
1630
+ },
1631
+ {
1632
+ "name": "slippage",
1633
+ "type": "uint256",
1634
+ "internalType": "uint256"
1635
+ },
1636
+ {
1637
+ "name": "call",
1638
+ "type": "bytes",
1639
+ "internalType": "bytes"
1640
+ }
1641
+ ]
1642
+ },
1643
+ {
1644
+ "name": "auxData",
1645
+ "type": "bytes",
1646
+ "internalType": "bytes"
1647
+ }
1648
+ ]
1649
+ }
1650
+ ],
1651
+ "outputs": [],
1652
+ "stateMutability": "nonpayable"
1653
+ },
1654
+ {
1655
+ "type": "function",
1656
+ "name": "withdrawCollateral",
1657
+ "inputs": [
1658
+ {
1659
+ "name": "assets",
1660
+ "type": "uint256",
1661
+ "internalType": "uint256"
1662
+ },
1663
+ {
1664
+ "name": "receiver",
1665
+ "type": "address",
1666
+ "internalType": "address"
1667
+ },
1668
+ {
1669
+ "name": "owner",
1670
+ "type": "address",
1671
+ "internalType": "address"
1672
+ }
1673
+ ],
1674
+ "outputs": [
1675
+ {
1676
+ "name": "shares",
1677
+ "type": "uint256",
1678
+ "internalType": "uint256"
1679
+ }
1680
+ ],
1681
+ "stateMutability": "nonpayable"
1682
+ },
1683
+ {
1684
+ "type": "event",
1685
+ "name": "Approval",
1686
+ "inputs": [
1687
+ {
1688
+ "name": "owner",
1689
+ "type": "address",
1690
+ "indexed": true,
1691
+ "internalType": "address"
1692
+ },
1693
+ {
1694
+ "name": "spender",
1695
+ "type": "address",
1696
+ "indexed": true,
1697
+ "internalType": "address"
1698
+ },
1699
+ {
1700
+ "name": "amount",
1701
+ "type": "uint256",
1702
+ "indexed": false,
1703
+ "internalType": "uint256"
1704
+ }
1705
+ ],
1706
+ "anonymous": false
1707
+ },
1708
+ {
1709
+ "type": "event",
1710
+ "name": "BadDebtRecognized",
1711
+ "inputs": [
1712
+ {
1713
+ "name": "assets",
1714
+ "type": "uint256",
1715
+ "indexed": false,
1716
+ "internalType": "uint256"
1717
+ },
1718
+ {
1719
+ "name": "liquidator",
1720
+ "type": "address",
1721
+ "indexed": false,
1722
+ "internalType": "address"
1723
+ }
1724
+ ],
1725
+ "anonymous": false
1726
+ },
1727
+ {
1728
+ "type": "event",
1729
+ "name": "Borrow",
1730
+ "inputs": [
1731
+ {
1732
+ "name": "assets",
1733
+ "type": "uint256",
1734
+ "indexed": false,
1735
+ "internalType": "uint256"
1736
+ },
1737
+ {
1738
+ "name": "account",
1739
+ "type": "address",
1740
+ "indexed": false,
1741
+ "internalType": "address"
1742
+ }
1743
+ ],
1744
+ "anonymous": false
1745
+ },
1746
+ {
1747
+ "type": "event",
1748
+ "name": "CollateralUpdated",
1749
+ "inputs": [
1750
+ {
1751
+ "name": "shares",
1752
+ "type": "uint256",
1753
+ "indexed": false,
1754
+ "internalType": "uint256"
1755
+ },
1756
+ {
1757
+ "name": "increased",
1758
+ "type": "bool",
1759
+ "indexed": false,
1760
+ "internalType": "bool"
1761
+ },
1762
+ {
1763
+ "name": "account",
1764
+ "type": "address",
1765
+ "indexed": false,
1766
+ "internalType": "address"
1767
+ }
1768
+ ],
1769
+ "anonymous": false
1770
+ },
1771
+ {
1772
+ "type": "event",
1773
+ "name": "DelegateApproval",
1774
+ "inputs": [
1775
+ {
1776
+ "name": "owner",
1777
+ "type": "address",
1778
+ "indexed": true,
1779
+ "internalType": "address"
1780
+ },
1781
+ {
1782
+ "name": "delegate",
1783
+ "type": "address",
1784
+ "indexed": true,
1785
+ "internalType": "address"
1786
+ },
1787
+ {
1788
+ "name": "approvalIndex",
1789
+ "type": "uint256",
1790
+ "indexed": false,
1791
+ "internalType": "uint256"
1792
+ },
1793
+ {
1794
+ "name": "isApproved",
1795
+ "type": "bool",
1796
+ "indexed": false,
1797
+ "internalType": "bool"
1798
+ }
1799
+ ],
1800
+ "anonymous": false
1801
+ },
1802
+ {
1803
+ "type": "event",
1804
+ "name": "Deposit",
1805
+ "inputs": [
1806
+ {
1807
+ "name": "by",
1808
+ "type": "address",
1809
+ "indexed": true,
1810
+ "internalType": "address"
1811
+ },
1812
+ {
1813
+ "name": "owner",
1814
+ "type": "address",
1815
+ "indexed": true,
1816
+ "internalType": "address"
1817
+ },
1818
+ {
1819
+ "name": "assets",
1820
+ "type": "uint256",
1821
+ "indexed": false,
1822
+ "internalType": "uint256"
1823
+ },
1824
+ {
1825
+ "name": "shares",
1826
+ "type": "uint256",
1827
+ "indexed": false,
1828
+ "internalType": "uint256"
1829
+ }
1830
+ ],
1831
+ "anonymous": false
1832
+ },
1833
+ {
1834
+ "type": "event",
1835
+ "name": "Flashloan",
1836
+ "inputs": [
1837
+ {
1838
+ "name": "assets",
1839
+ "type": "uint256",
1840
+ "indexed": false,
1841
+ "internalType": "uint256"
1842
+ },
1843
+ {
1844
+ "name": "assetsFee",
1845
+ "type": "uint256",
1846
+ "indexed": false,
1847
+ "internalType": "uint256"
1848
+ },
1849
+ {
1850
+ "name": "account",
1851
+ "type": "address",
1852
+ "indexed": false,
1853
+ "internalType": "address"
1854
+ }
1855
+ ],
1856
+ "anonymous": false
1857
+ },
1858
+ {
1859
+ "type": "event",
1860
+ "name": "Liquidated",
1861
+ "inputs": [
1862
+ {
1863
+ "name": "shares",
1864
+ "type": "uint256",
1865
+ "indexed": false,
1866
+ "internalType": "uint256"
1867
+ },
1868
+ {
1869
+ "name": "liquidator",
1870
+ "type": "address",
1871
+ "indexed": false,
1872
+ "internalType": "address"
1873
+ },
1874
+ {
1875
+ "name": "account",
1876
+ "type": "address",
1877
+ "indexed": false,
1878
+ "internalType": "address"
1879
+ }
1880
+ ],
1881
+ "anonymous": false
1882
+ },
1883
+ {
1884
+ "type": "event",
1885
+ "name": "NewIRM",
1886
+ "inputs": [
1887
+ {
1888
+ "name": "oldIRM",
1889
+ "type": "address",
1890
+ "indexed": false,
1891
+ "internalType": "address"
1892
+ },
1893
+ {
1894
+ "name": "newIRM",
1895
+ "type": "address",
1896
+ "indexed": false,
1897
+ "internalType": "address"
1898
+ },
1899
+ {
1900
+ "name": "newVestingPeriod",
1901
+ "type": "uint256",
1902
+ "indexed": false,
1903
+ "internalType": "uint256"
1904
+ }
1905
+ ],
1906
+ "anonymous": false
1907
+ },
1908
+ {
1909
+ "type": "event",
1910
+ "name": "NewInterestFee",
1911
+ "inputs": [
1912
+ {
1913
+ "name": "oldInterestFee",
1914
+ "type": "uint256",
1915
+ "indexed": false,
1916
+ "internalType": "uint256"
1917
+ },
1918
+ {
1919
+ "name": "newInterestFee",
1920
+ "type": "uint256",
1921
+ "indexed": false,
1922
+ "internalType": "uint256"
1923
+ }
1924
+ ],
1925
+ "anonymous": false
1926
+ },
1927
+ {
1928
+ "type": "event",
1929
+ "name": "RatesAdjusted",
1930
+ "inputs": [
1931
+ {
1932
+ "name": "debtPerSecond",
1933
+ "type": "uint256",
1934
+ "indexed": false,
1935
+ "internalType": "uint256"
1936
+ },
1937
+ {
1938
+ "name": "nextAdjustment",
1939
+ "type": "uint256",
1940
+ "indexed": false,
1941
+ "internalType": "uint256"
1942
+ }
1943
+ ],
1944
+ "anonymous": false
1945
+ },
1946
+ {
1947
+ "type": "event",
1948
+ "name": "Repay",
1949
+ "inputs": [
1950
+ {
1951
+ "name": "assets",
1952
+ "type": "uint256",
1953
+ "indexed": false,
1954
+ "internalType": "uint256"
1955
+ },
1956
+ {
1957
+ "name": "payer",
1958
+ "type": "address",
1959
+ "indexed": false,
1960
+ "internalType": "address"
1961
+ },
1962
+ {
1963
+ "name": "account",
1964
+ "type": "address",
1965
+ "indexed": false,
1966
+ "internalType": "address"
1967
+ }
1968
+ ],
1969
+ "anonymous": false
1970
+ },
1971
+ {
1972
+ "type": "event",
1973
+ "name": "Transfer",
1974
+ "inputs": [
1975
+ {
1976
+ "name": "from",
1977
+ "type": "address",
1978
+ "indexed": true,
1979
+ "internalType": "address"
1980
+ },
1981
+ {
1982
+ "name": "to",
1983
+ "type": "address",
1984
+ "indexed": true,
1985
+ "internalType": "address"
1986
+ },
1987
+ {
1988
+ "name": "amount",
1989
+ "type": "uint256",
1990
+ "indexed": false,
1991
+ "internalType": "uint256"
1992
+ }
1993
+ ],
1994
+ "anonymous": false
1995
+ },
1996
+ {
1997
+ "type": "event",
1998
+ "name": "Withdraw",
1999
+ "inputs": [
2000
+ {
2001
+ "name": "by",
2002
+ "type": "address",
2003
+ "indexed": true,
2004
+ "internalType": "address"
2005
+ },
2006
+ {
2007
+ "name": "to",
2008
+ "type": "address",
2009
+ "indexed": true,
2010
+ "internalType": "address"
2011
+ },
2012
+ {
2013
+ "name": "owner",
2014
+ "type": "address",
2015
+ "indexed": true,
2016
+ "internalType": "address"
2017
+ },
2018
+ {
2019
+ "name": "assets",
2020
+ "type": "uint256",
2021
+ "indexed": false,
2022
+ "internalType": "uint256"
2023
+ },
2024
+ {
2025
+ "name": "shares",
2026
+ "type": "uint256",
2027
+ "indexed": false,
2028
+ "internalType": "uint256"
2029
+ }
2030
+ ],
2031
+ "anonymous": false
2032
+ },
2033
+ {
2034
+ "type": "error",
2035
+ "name": "AllowanceOverflow",
2036
+ "inputs": []
2037
+ },
2038
+ {
2039
+ "type": "error",
2040
+ "name": "AllowanceUnderflow",
2041
+ "inputs": []
2042
+ },
2043
+ {
2044
+ "type": "error",
2045
+ "name": "BaseCTokenWithYield__InvalidVestingPeriod",
2046
+ "inputs": []
2047
+ },
2048
+ {
2049
+ "type": "error",
2050
+ "name": "BaseCToken__InsufficientLiquidity",
2051
+ "inputs": []
2052
+ },
2053
+ {
2054
+ "type": "error",
2055
+ "name": "BaseCToken__InvalidMarketManager",
2056
+ "inputs": []
2057
+ },
2058
+ {
2059
+ "type": "error",
2060
+ "name": "BaseCToken__TransferError",
2061
+ "inputs": []
2062
+ },
2063
+ {
2064
+ "type": "error",
2065
+ "name": "BaseCToken__Unauthorized",
2066
+ "inputs": []
2067
+ },
2068
+ {
2069
+ "type": "error",
2070
+ "name": "BaseCToken__UnsupportedAsset",
2071
+ "inputs": []
2072
+ },
2073
+ {
2074
+ "type": "error",
2075
+ "name": "BaseCToken__UnsupportedChain",
2076
+ "inputs": []
2077
+ },
2078
+ {
2079
+ "type": "error",
2080
+ "name": "BaseCToken__ZeroAmount",
2081
+ "inputs": []
2082
+ },
2083
+ {
2084
+ "type": "error",
2085
+ "name": "BorrowableCToken__CollateralPositionActive",
2086
+ "inputs": []
2087
+ },
2088
+ {
2089
+ "type": "error",
2090
+ "name": "BorrowableCToken__DebtPositionActive",
2091
+ "inputs": []
2092
+ },
2093
+ {
2094
+ "type": "error",
2095
+ "name": "BorrowableCToken__InsufficientAssetsHeld",
2096
+ "inputs": []
2097
+ },
2098
+ {
2099
+ "type": "error",
2100
+ "name": "BorrowableCToken__InvalidParameter",
2101
+ "inputs": []
2102
+ },
2103
+ {
2104
+ "type": "error",
2105
+ "name": "CentralRegistryLib__InvalidCentralRegistry",
2106
+ "inputs": []
2107
+ },
2108
+ {
2109
+ "type": "error",
2110
+ "name": "DepositMoreThanMax",
2111
+ "inputs": []
2112
+ },
2113
+ {
2114
+ "type": "error",
2115
+ "name": "InsufficientAllowance",
2116
+ "inputs": []
2117
+ },
2118
+ {
2119
+ "type": "error",
2120
+ "name": "InsufficientBalance",
2121
+ "inputs": []
2122
+ },
2123
+ {
2124
+ "type": "error",
2125
+ "name": "InvalidPermit",
2126
+ "inputs": []
2127
+ },
2128
+ {
2129
+ "type": "error",
2130
+ "name": "LowLevelCallsHelper__CallFailed",
2131
+ "inputs": []
2132
+ },
2133
+ {
2134
+ "type": "error",
2135
+ "name": "MintMoreThanMax",
2136
+ "inputs": []
2137
+ },
2138
+ {
2139
+ "type": "error",
2140
+ "name": "Multicall__InvalidTarget",
2141
+ "inputs": []
2142
+ },
2143
+ {
2144
+ "type": "error",
2145
+ "name": "Multicall__UnknownCalldata",
2146
+ "inputs": []
2147
+ },
2148
+ {
2149
+ "type": "error",
2150
+ "name": "PermitExpired",
2151
+ "inputs": []
2152
+ },
2153
+ {
2154
+ "type": "error",
2155
+ "name": "PluginDelegable_InvalidParameter",
2156
+ "inputs": []
2157
+ },
2158
+ {
2159
+ "type": "error",
2160
+ "name": "PluginDelegable__DelegatingDisabled",
2161
+ "inputs": []
2162
+ },
2163
+ {
2164
+ "type": "error",
2165
+ "name": "PluginDelegable__Unauthorized",
2166
+ "inputs": []
2167
+ },
2168
+ {
2169
+ "type": "error",
2170
+ "name": "RedeemMoreThanMax",
2171
+ "inputs": []
2172
+ },
2173
+ {
2174
+ "type": "error",
2175
+ "name": "Reentrancy",
2176
+ "inputs": []
2177
+ },
2178
+ {
2179
+ "type": "error",
2180
+ "name": "TotalSupplyOverflow",
2181
+ "inputs": []
2182
+ },
2183
+ {
2184
+ "type": "error",
2185
+ "name": "WithdrawMoreThanMax",
2186
+ "inputs": []
2187
+ }
2188
+ ]