@merkl/contracts 1.4.51 → 1.5.0

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