defi-state-querier 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. defi_services/__init__.py +1 -1
  2. defi_services/abis/lending/morpho/__init__.py +0 -0
  3. defi_services/abis/lending/morpho/morpho_aave_v2_comptroller_abi.py +2301 -0
  4. defi_services/abis/lending/morpho/morpho_aave_v2_lens_abi.py +1208 -0
  5. defi_services/abis/lending/morpho/morpho_aave_v3_comptroller_abi.py +2994 -0
  6. defi_services/abis/lending/morpho/morpho_compound_comptroller_abi.py +2301 -0
  7. defi_services/abis/lending/morpho/morpho_compound_lens_abi.py +1402 -0
  8. defi_services/abis/lending/morpho/morpho_compound_reward_manager_abi.py +307 -0
  9. defi_services/constants/entities/lending_constant.py +6 -1
  10. defi_services/constants/entities/lending_services.py +7 -1
  11. defi_services/constants/query_constant.py +1 -0
  12. defi_services/jobs/processors/substrate_state_processor.py +97 -0
  13. defi_services/jobs/queriers/substrate_state_querier.py +84 -0
  14. defi_services/services/lending/aave_v3_services.py +4 -2
  15. defi_services/services/lending/compound_service.py +20 -2
  16. defi_services/services/lending/flux_services.py +30 -22
  17. defi_services/services/lending/iron_bank_service.py +19 -10
  18. defi_services/services/lending/lending_info/aave_v2_services.py +1 -1
  19. defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +53 -0
  20. defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +51 -0
  21. defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +44 -0
  22. defi_services/services/lending/morpho_aave_v2_services.py +89 -0
  23. defi_services/services/lending/morpho_aave_v3_services.py +159 -0
  24. defi_services/services/lending/morpho_compound_services.py +233 -0
  25. defi_services/services/lending/onyx_service.py +23 -3
  26. defi_services/services/lending/strike_service.py +22 -3
  27. defi_services/services/lending/venus_services.py +19 -0
  28. defi_services/services/substrate_token_services.py +70 -0
  29. {defi_state_querier-0.0.7.dist-info → defi_state_querier-0.0.9.dist-info}/METADATA +1 -1
  30. {defi_state_querier-0.0.7.dist-info → defi_state_querier-0.0.9.dist-info}/RECORD +33 -17
  31. {defi_state_querier-0.0.7.dist-info → defi_state_querier-0.0.9.dist-info}/LICENSE +0 -0
  32. {defi_state_querier-0.0.7.dist-info → defi_state_querier-0.0.9.dist-info}/WHEEL +0 -0
  33. {defi_state_querier-0.0.7.dist-info → defi_state_querier-0.0.9.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2994 @@
1
+ import json
2
+
3
+ MORPHO_AAVE_V3_COMPTROLLER_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [],
7
+ "name": "AddressIsZero",
8
+ "type": "error"
9
+ },
10
+ {
11
+ "inputs": [],
12
+ "name": "AmountIsZero",
13
+ "type": "error"
14
+ },
15
+ {
16
+ "inputs": [],
17
+ "name": "UnsafeCast",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "AssetIsCollateralOnMorpho",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [],
27
+ "name": "AssetNotCollateralOnMorpho",
28
+ "type": "error"
29
+ },
30
+ {
31
+ "inputs": [],
32
+ "name": "AssetNotCollateralOnPool",
33
+ "type": "error"
34
+ },
35
+ {
36
+ "inputs": [],
37
+ "name": "BorrowIsPaused",
38
+ "type": "error"
39
+ },
40
+ {
41
+ "inputs": [],
42
+ "name": "BorrowNotEnabled",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "BorrowNotPaused",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [],
52
+ "name": "ClaimRewardsPaused",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "CollateralIsZero",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "DebtIsZero",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "ExceedsBorrowCap",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [],
72
+ "name": "ExceedsMaxBasisPoints",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [],
77
+ "name": "InconsistentEMode",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [],
82
+ "name": "InvalidNonce",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [],
87
+ "name": "InvalidSignatory",
88
+ "type": "error"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "InvalidValueS",
93
+ "type": "error"
94
+ },
95
+ {
96
+ "inputs": [],
97
+ "name": "InvalidValueV",
98
+ "type": "error"
99
+ },
100
+ {
101
+ "inputs": [],
102
+ "name": "LiquidateBorrowIsPaused",
103
+ "type": "error"
104
+ },
105
+ {
106
+ "inputs": [],
107
+ "name": "LiquidateCollateralIsPaused",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "MarketAlreadyCreated",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [],
117
+ "name": "MarketIsDeprecated",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "MarketIsNotListedOnAave",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "MarketLtTooLow",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "MarketNotCreated",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "PermissionDenied",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "RepayIsPaused",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [],
147
+ "name": "SentinelBorrowNotEnabled",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [],
152
+ "name": "SentinelLiquidateNotEnabled",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "SetAsCollateralOnPoolButMarketNotCreated",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "inputs": [],
162
+ "name": "SignatureExpired",
163
+ "type": "error"
164
+ },
165
+ {
166
+ "inputs": [],
167
+ "name": "SiloedBorrowMarket",
168
+ "type": "error"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "SupplyCollateralIsPaused",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "SupplyIsPaused",
178
+ "type": "error"
179
+ },
180
+ {
181
+ "inputs": [],
182
+ "name": "SupplyIsZero",
183
+ "type": "error"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "UnauthorizedBorrow",
188
+ "type": "error"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "UnauthorizedLiquidate",
193
+ "type": "error"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "UnauthorizedWithdraw",
198
+ "type": "error"
199
+ },
200
+ {
201
+ "inputs": [],
202
+ "name": "WithdrawCollateralIsPaused",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [],
207
+ "name": "WithdrawIsPaused",
208
+ "type": "error"
209
+ },
210
+ {
211
+ "anonymous": false,
212
+ "inputs": [
213
+ {
214
+ "indexed": false,
215
+ "internalType": "uint8",
216
+ "name": "version",
217
+ "type": "uint8"
218
+ }
219
+ ],
220
+ "name": "Initialized",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "previousOwner",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": true,
234
+ "internalType": "address",
235
+ "name": "newOwner",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "name": "OwnershipTransferStarted",
240
+ "type": "event"
241
+ },
242
+ {
243
+ "anonymous": false,
244
+ "inputs": [
245
+ {
246
+ "indexed": true,
247
+ "internalType": "address",
248
+ "name": "previousOwner",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "indexed": true,
253
+ "internalType": "address",
254
+ "name": "newOwner",
255
+ "type": "address"
256
+ }
257
+ ],
258
+ "name": "OwnershipTransferred",
259
+ "type": "event"
260
+ },
261
+ {
262
+ "anonymous": false,
263
+ "inputs": [
264
+ {
265
+ "indexed": true,
266
+ "internalType": "address",
267
+ "name": "user",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "indexed": true,
272
+ "internalType": "address",
273
+ "name": "underlying",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "scaledOnPool",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "internalType": "uint256",
285
+ "name": "scaledInP2P",
286
+ "type": "uint256"
287
+ }
288
+ ],
289
+ "name": "BorrowPositionUpdated",
290
+ "type": "event"
291
+ },
292
+ {
293
+ "anonymous": false,
294
+ "inputs": [
295
+ {
296
+ "indexed": false,
297
+ "internalType": "address",
298
+ "name": "caller",
299
+ "type": "address"
300
+ },
301
+ {
302
+ "indexed": true,
303
+ "internalType": "address",
304
+ "name": "onBehalf",
305
+ "type": "address"
306
+ },
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "receiver",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": true,
315
+ "internalType": "address",
316
+ "name": "underlying",
317
+ "type": "address"
318
+ },
319
+ {
320
+ "indexed": false,
321
+ "internalType": "uint256",
322
+ "name": "amount",
323
+ "type": "uint256"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "uint256",
328
+ "name": "scaledOnPool",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint256",
334
+ "name": "scaledInP2P",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "Borrowed",
339
+ "type": "event"
340
+ },
341
+ {
342
+ "anonymous": false,
343
+ "inputs": [
344
+ {
345
+ "indexed": true,
346
+ "internalType": "address",
347
+ "name": "from",
348
+ "type": "address"
349
+ },
350
+ {
351
+ "indexed": true,
352
+ "internalType": "address",
353
+ "name": "onBehalf",
354
+ "type": "address"
355
+ },
356
+ {
357
+ "indexed": true,
358
+ "internalType": "address",
359
+ "name": "underlying",
360
+ "type": "address"
361
+ },
362
+ {
363
+ "indexed": false,
364
+ "internalType": "uint256",
365
+ "name": "amount",
366
+ "type": "uint256"
367
+ },
368
+ {
369
+ "indexed": false,
370
+ "internalType": "uint256",
371
+ "name": "scaledBalance",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "name": "CollateralSupplied",
376
+ "type": "event"
377
+ },
378
+ {
379
+ "anonymous": false,
380
+ "inputs": [
381
+ {
382
+ "indexed": false,
383
+ "internalType": "address",
384
+ "name": "caller",
385
+ "type": "address"
386
+ },
387
+ {
388
+ "indexed": true,
389
+ "internalType": "address",
390
+ "name": "onBehalf",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "indexed": true,
395
+ "internalType": "address",
396
+ "name": "receiver",
397
+ "type": "address"
398
+ },
399
+ {
400
+ "indexed": true,
401
+ "internalType": "address",
402
+ "name": "underlying",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "indexed": false,
407
+ "internalType": "uint256",
408
+ "name": "amount",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "indexed": false,
413
+ "internalType": "uint256",
414
+ "name": "scaledBalance",
415
+ "type": "uint256"
416
+ }
417
+ ],
418
+ "name": "CollateralWithdrawn",
419
+ "type": "event"
420
+ },
421
+ {
422
+ "anonymous": false,
423
+ "inputs": [
424
+ {
425
+ "indexed": false,
426
+ "internalType": "uint128",
427
+ "name": "repay",
428
+ "type": "uint128"
429
+ },
430
+ {
431
+ "indexed": false,
432
+ "internalType": "uint128",
433
+ "name": "withdraw",
434
+ "type": "uint128"
435
+ }
436
+ ],
437
+ "name": "DefaultIterationsSet",
438
+ "type": "event"
439
+ },
440
+ {
441
+ "anonymous": false,
442
+ "inputs": [
443
+ {
444
+ "indexed": true,
445
+ "internalType": "address",
446
+ "name": "underlying",
447
+ "type": "address"
448
+ },
449
+ {
450
+ "indexed": false,
451
+ "internalType": "uint256",
452
+ "name": "idleSupply",
453
+ "type": "uint256"
454
+ }
455
+ ],
456
+ "name": "IdleSupplyUpdated",
457
+ "type": "event"
458
+ },
459
+ {
460
+ "anonymous": false,
461
+ "inputs": [
462
+ {
463
+ "indexed": true,
464
+ "internalType": "address",
465
+ "name": "underlying",
466
+ "type": "address"
467
+ },
468
+ {
469
+ "indexed": false,
470
+ "internalType": "uint256",
471
+ "name": "poolSupplyIndex",
472
+ "type": "uint256"
473
+ },
474
+ {
475
+ "indexed": false,
476
+ "internalType": "uint256",
477
+ "name": "p2pSupplyIndex",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "indexed": false,
482
+ "internalType": "uint256",
483
+ "name": "poolBorrowIndex",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "indexed": false,
488
+ "internalType": "uint256",
489
+ "name": "p2pBorrowIndex",
490
+ "type": "uint256"
491
+ }
492
+ ],
493
+ "name": "IndexesUpdated",
494
+ "type": "event"
495
+ },
496
+ {
497
+ "anonymous": false,
498
+ "inputs": [
499
+ {
500
+ "indexed": true,
501
+ "internalType": "address",
502
+ "name": "underlying",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "indexed": false,
507
+ "internalType": "bool",
508
+ "name": "isPaused",
509
+ "type": "bool"
510
+ }
511
+ ],
512
+ "name": "IsBorrowPausedSet",
513
+ "type": "event"
514
+ },
515
+ {
516
+ "anonymous": false,
517
+ "inputs": [
518
+ {
519
+ "indexed": false,
520
+ "internalType": "bool",
521
+ "name": "isPaused",
522
+ "type": "bool"
523
+ }
524
+ ],
525
+ "name": "IsClaimRewardsPausedSet",
526
+ "type": "event"
527
+ },
528
+ {
529
+ "anonymous": false,
530
+ "inputs": [
531
+ {
532
+ "indexed": true,
533
+ "internalType": "address",
534
+ "name": "underlying",
535
+ "type": "address"
536
+ },
537
+ {
538
+ "indexed": false,
539
+ "internalType": "bool",
540
+ "name": "isCollateral",
541
+ "type": "bool"
542
+ }
543
+ ],
544
+ "name": "IsCollateralSet",
545
+ "type": "event"
546
+ },
547
+ {
548
+ "anonymous": false,
549
+ "inputs": [
550
+ {
551
+ "indexed": true,
552
+ "internalType": "address",
553
+ "name": "underlying",
554
+ "type": "address"
555
+ },
556
+ {
557
+ "indexed": false,
558
+ "internalType": "bool",
559
+ "name": "isDeprecated",
560
+ "type": "bool"
561
+ }
562
+ ],
563
+ "name": "IsDeprecatedSet",
564
+ "type": "event"
565
+ },
566
+ {
567
+ "anonymous": false,
568
+ "inputs": [
569
+ {
570
+ "indexed": true,
571
+ "internalType": "address",
572
+ "name": "underlying",
573
+ "type": "address"
574
+ },
575
+ {
576
+ "indexed": false,
577
+ "internalType": "bool",
578
+ "name": "isPaused",
579
+ "type": "bool"
580
+ }
581
+ ],
582
+ "name": "IsLiquidateBorrowPausedSet",
583
+ "type": "event"
584
+ },
585
+ {
586
+ "anonymous": false,
587
+ "inputs": [
588
+ {
589
+ "indexed": true,
590
+ "internalType": "address",
591
+ "name": "underlying",
592
+ "type": "address"
593
+ },
594
+ {
595
+ "indexed": false,
596
+ "internalType": "bool",
597
+ "name": "isPaused",
598
+ "type": "bool"
599
+ }
600
+ ],
601
+ "name": "IsLiquidateCollateralPausedSet",
602
+ "type": "event"
603
+ },
604
+ {
605
+ "anonymous": false,
606
+ "inputs": [
607
+ {
608
+ "indexed": true,
609
+ "internalType": "address",
610
+ "name": "underlying",
611
+ "type": "address"
612
+ },
613
+ {
614
+ "indexed": false,
615
+ "internalType": "bool",
616
+ "name": "isP2PDisabled",
617
+ "type": "bool"
618
+ }
619
+ ],
620
+ "name": "IsP2PDisabledSet",
621
+ "type": "event"
622
+ },
623
+ {
624
+ "anonymous": false,
625
+ "inputs": [
626
+ {
627
+ "indexed": true,
628
+ "internalType": "address",
629
+ "name": "underlying",
630
+ "type": "address"
631
+ },
632
+ {
633
+ "indexed": false,
634
+ "internalType": "bool",
635
+ "name": "isPaused",
636
+ "type": "bool"
637
+ }
638
+ ],
639
+ "name": "IsRepayPausedSet",
640
+ "type": "event"
641
+ },
642
+ {
643
+ "anonymous": false,
644
+ "inputs": [
645
+ {
646
+ "indexed": true,
647
+ "internalType": "address",
648
+ "name": "underlying",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "indexed": false,
653
+ "internalType": "bool",
654
+ "name": "isPaused",
655
+ "type": "bool"
656
+ }
657
+ ],
658
+ "name": "IsSupplyCollateralPausedSet",
659
+ "type": "event"
660
+ },
661
+ {
662
+ "anonymous": false,
663
+ "inputs": [
664
+ {
665
+ "indexed": true,
666
+ "internalType": "address",
667
+ "name": "underlying",
668
+ "type": "address"
669
+ },
670
+ {
671
+ "indexed": false,
672
+ "internalType": "bool",
673
+ "name": "isPaused",
674
+ "type": "bool"
675
+ }
676
+ ],
677
+ "name": "IsSupplyPausedSet",
678
+ "type": "event"
679
+ },
680
+ {
681
+ "anonymous": false,
682
+ "inputs": [
683
+ {
684
+ "indexed": true,
685
+ "internalType": "address",
686
+ "name": "underlying",
687
+ "type": "address"
688
+ },
689
+ {
690
+ "indexed": false,
691
+ "internalType": "bool",
692
+ "name": "isPaused",
693
+ "type": "bool"
694
+ }
695
+ ],
696
+ "name": "IsWithdrawCollateralPausedSet",
697
+ "type": "event"
698
+ },
699
+ {
700
+ "anonymous": false,
701
+ "inputs": [
702
+ {
703
+ "indexed": true,
704
+ "internalType": "address",
705
+ "name": "underlying",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "indexed": false,
710
+ "internalType": "bool",
711
+ "name": "isPaused",
712
+ "type": "bool"
713
+ }
714
+ ],
715
+ "name": "IsWithdrawPausedSet",
716
+ "type": "event"
717
+ },
718
+ {
719
+ "anonymous": false,
720
+ "inputs": [
721
+ {
722
+ "indexed": true,
723
+ "internalType": "address",
724
+ "name": "liquidator",
725
+ "type": "address"
726
+ },
727
+ {
728
+ "indexed": true,
729
+ "internalType": "address",
730
+ "name": "borrower",
731
+ "type": "address"
732
+ },
733
+ {
734
+ "indexed": true,
735
+ "internalType": "address",
736
+ "name": "underlyingBorrowed",
737
+ "type": "address"
738
+ },
739
+ {
740
+ "indexed": false,
741
+ "internalType": "uint256",
742
+ "name": "amountLiquidated",
743
+ "type": "uint256"
744
+ },
745
+ {
746
+ "indexed": false,
747
+ "internalType": "address",
748
+ "name": "underlyingCollateral",
749
+ "type": "address"
750
+ },
751
+ {
752
+ "indexed": false,
753
+ "internalType": "uint256",
754
+ "name": "amountSeized",
755
+ "type": "uint256"
756
+ }
757
+ ],
758
+ "name": "Liquidated",
759
+ "type": "event"
760
+ },
761
+ {
762
+ "anonymous": false,
763
+ "inputs": [
764
+ {
765
+ "indexed": true,
766
+ "internalType": "address",
767
+ "name": "delegator",
768
+ "type": "address"
769
+ },
770
+ {
771
+ "indexed": true,
772
+ "internalType": "address",
773
+ "name": "manager",
774
+ "type": "address"
775
+ },
776
+ {
777
+ "indexed": false,
778
+ "internalType": "bool",
779
+ "name": "isAllowed",
780
+ "type": "bool"
781
+ }
782
+ ],
783
+ "name": "ManagerApproval",
784
+ "type": "event"
785
+ },
786
+ {
787
+ "anonymous": false,
788
+ "inputs": [
789
+ {
790
+ "indexed": true,
791
+ "internalType": "address",
792
+ "name": "underlying",
793
+ "type": "address"
794
+ }
795
+ ],
796
+ "name": "MarketCreated",
797
+ "type": "event"
798
+ },
799
+ {
800
+ "anonymous": false,
801
+ "inputs": [
802
+ {
803
+ "indexed": true,
804
+ "internalType": "address",
805
+ "name": "underlying",
806
+ "type": "address"
807
+ },
808
+ {
809
+ "indexed": false,
810
+ "internalType": "uint256",
811
+ "name": "scaledDelta",
812
+ "type": "uint256"
813
+ }
814
+ ],
815
+ "name": "P2PBorrowDeltaUpdated",
816
+ "type": "event"
817
+ },
818
+ {
819
+ "anonymous": false,
820
+ "inputs": [
821
+ {
822
+ "indexed": true,
823
+ "internalType": "address",
824
+ "name": "underlying",
825
+ "type": "address"
826
+ },
827
+ {
828
+ "indexed": false,
829
+ "internalType": "uint256",
830
+ "name": "amount",
831
+ "type": "uint256"
832
+ }
833
+ ],
834
+ "name": "P2PDeltasIncreased",
835
+ "type": "event"
836
+ },
837
+ {
838
+ "anonymous": false,
839
+ "inputs": [
840
+ {
841
+ "indexed": true,
842
+ "internalType": "address",
843
+ "name": "underlying",
844
+ "type": "address"
845
+ },
846
+ {
847
+ "indexed": false,
848
+ "internalType": "uint16",
849
+ "name": "p2pIndexCursor",
850
+ "type": "uint16"
851
+ }
852
+ ],
853
+ "name": "P2PIndexCursorSet",
854
+ "type": "event"
855
+ },
856
+ {
857
+ "anonymous": false,
858
+ "inputs": [
859
+ {
860
+ "indexed": true,
861
+ "internalType": "address",
862
+ "name": "underlying",
863
+ "type": "address"
864
+ },
865
+ {
866
+ "indexed": false,
867
+ "internalType": "uint256",
868
+ "name": "scaledDelta",
869
+ "type": "uint256"
870
+ }
871
+ ],
872
+ "name": "P2PSupplyDeltaUpdated",
873
+ "type": "event"
874
+ },
875
+ {
876
+ "anonymous": false,
877
+ "inputs": [
878
+ {
879
+ "indexed": true,
880
+ "internalType": "address",
881
+ "name": "underlying",
882
+ "type": "address"
883
+ },
884
+ {
885
+ "indexed": false,
886
+ "internalType": "uint256",
887
+ "name": "scaledTotalSupplyP2P",
888
+ "type": "uint256"
889
+ },
890
+ {
891
+ "indexed": false,
892
+ "internalType": "uint256",
893
+ "name": "scaledTotalBorrowP2P",
894
+ "type": "uint256"
895
+ }
896
+ ],
897
+ "name": "P2PTotalsUpdated",
898
+ "type": "event"
899
+ },
900
+ {
901
+ "anonymous": false,
902
+ "inputs": [
903
+ {
904
+ "indexed": true,
905
+ "internalType": "address",
906
+ "name": "positionsManager",
907
+ "type": "address"
908
+ }
909
+ ],
910
+ "name": "PositionsManagerSet",
911
+ "type": "event"
912
+ },
913
+ {
914
+ "anonymous": false,
915
+ "inputs": [
916
+ {
917
+ "indexed": true,
918
+ "internalType": "address",
919
+ "name": "repayer",
920
+ "type": "address"
921
+ },
922
+ {
923
+ "indexed": true,
924
+ "internalType": "address",
925
+ "name": "onBehalf",
926
+ "type": "address"
927
+ },
928
+ {
929
+ "indexed": true,
930
+ "internalType": "address",
931
+ "name": "underlying",
932
+ "type": "address"
933
+ },
934
+ {
935
+ "indexed": false,
936
+ "internalType": "uint256",
937
+ "name": "amount",
938
+ "type": "uint256"
939
+ },
940
+ {
941
+ "indexed": false,
942
+ "internalType": "uint256",
943
+ "name": "scaledOnPool",
944
+ "type": "uint256"
945
+ },
946
+ {
947
+ "indexed": false,
948
+ "internalType": "uint256",
949
+ "name": "scaledInP2P",
950
+ "type": "uint256"
951
+ }
952
+ ],
953
+ "name": "Repaid",
954
+ "type": "event"
955
+ },
956
+ {
957
+ "anonymous": false,
958
+ "inputs": [
959
+ {
960
+ "indexed": true,
961
+ "internalType": "address",
962
+ "name": "underlying",
963
+ "type": "address"
964
+ },
965
+ {
966
+ "indexed": false,
967
+ "internalType": "uint16",
968
+ "name": "reserveFactor",
969
+ "type": "uint16"
970
+ }
971
+ ],
972
+ "name": "ReserveFactorSet",
973
+ "type": "event"
974
+ },
975
+ {
976
+ "anonymous": false,
977
+ "inputs": [
978
+ {
979
+ "indexed": true,
980
+ "internalType": "address",
981
+ "name": "underlying",
982
+ "type": "address"
983
+ },
984
+ {
985
+ "indexed": false,
986
+ "internalType": "uint256",
987
+ "name": "claimed",
988
+ "type": "uint256"
989
+ }
990
+ ],
991
+ "name": "ReserveFeeClaimed",
992
+ "type": "event"
993
+ },
994
+ {
995
+ "anonymous": false,
996
+ "inputs": [
997
+ {
998
+ "indexed": true,
999
+ "internalType": "address",
1000
+ "name": "claimer",
1001
+ "type": "address"
1002
+ },
1003
+ {
1004
+ "indexed": true,
1005
+ "internalType": "address",
1006
+ "name": "onBehalf",
1007
+ "type": "address"
1008
+ },
1009
+ {
1010
+ "indexed": true,
1011
+ "internalType": "address",
1012
+ "name": "rewardToken",
1013
+ "type": "address"
1014
+ },
1015
+ {
1016
+ "indexed": false,
1017
+ "internalType": "uint256",
1018
+ "name": "amountClaimed",
1019
+ "type": "uint256"
1020
+ }
1021
+ ],
1022
+ "name": "RewardsClaimed",
1023
+ "type": "event"
1024
+ },
1025
+ {
1026
+ "anonymous": false,
1027
+ "inputs": [
1028
+ {
1029
+ "indexed": true,
1030
+ "internalType": "address",
1031
+ "name": "rewardsManager",
1032
+ "type": "address"
1033
+ }
1034
+ ],
1035
+ "name": "RewardsManagerSet",
1036
+ "type": "event"
1037
+ },
1038
+ {
1039
+ "anonymous": false,
1040
+ "inputs": [
1041
+ {
1042
+ "indexed": true,
1043
+ "internalType": "address",
1044
+ "name": "from",
1045
+ "type": "address"
1046
+ },
1047
+ {
1048
+ "indexed": true,
1049
+ "internalType": "address",
1050
+ "name": "onBehalf",
1051
+ "type": "address"
1052
+ },
1053
+ {
1054
+ "indexed": true,
1055
+ "internalType": "address",
1056
+ "name": "underlying",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "indexed": false,
1061
+ "internalType": "uint256",
1062
+ "name": "amount",
1063
+ "type": "uint256"
1064
+ },
1065
+ {
1066
+ "indexed": false,
1067
+ "internalType": "uint256",
1068
+ "name": "scaledOnPool",
1069
+ "type": "uint256"
1070
+ },
1071
+ {
1072
+ "indexed": false,
1073
+ "internalType": "uint256",
1074
+ "name": "scaledInP2P",
1075
+ "type": "uint256"
1076
+ }
1077
+ ],
1078
+ "name": "Supplied",
1079
+ "type": "event"
1080
+ },
1081
+ {
1082
+ "anonymous": false,
1083
+ "inputs": [
1084
+ {
1085
+ "indexed": true,
1086
+ "internalType": "address",
1087
+ "name": "user",
1088
+ "type": "address"
1089
+ },
1090
+ {
1091
+ "indexed": true,
1092
+ "internalType": "address",
1093
+ "name": "underlying",
1094
+ "type": "address"
1095
+ },
1096
+ {
1097
+ "indexed": false,
1098
+ "internalType": "uint256",
1099
+ "name": "scaledOnPool",
1100
+ "type": "uint256"
1101
+ },
1102
+ {
1103
+ "indexed": false,
1104
+ "internalType": "uint256",
1105
+ "name": "scaledInP2P",
1106
+ "type": "uint256"
1107
+ }
1108
+ ],
1109
+ "name": "SupplyPositionUpdated",
1110
+ "type": "event"
1111
+ },
1112
+ {
1113
+ "anonymous": false,
1114
+ "inputs": [
1115
+ {
1116
+ "indexed": true,
1117
+ "internalType": "address",
1118
+ "name": "treasuryVault",
1119
+ "type": "address"
1120
+ }
1121
+ ],
1122
+ "name": "TreasuryVaultSet",
1123
+ "type": "event"
1124
+ },
1125
+ {
1126
+ "anonymous": false,
1127
+ "inputs": [
1128
+ {
1129
+ "indexed": true,
1130
+ "internalType": "address",
1131
+ "name": "caller",
1132
+ "type": "address"
1133
+ },
1134
+ {
1135
+ "indexed": true,
1136
+ "internalType": "address",
1137
+ "name": "signatory",
1138
+ "type": "address"
1139
+ },
1140
+ {
1141
+ "indexed": false,
1142
+ "internalType": "uint256",
1143
+ "name": "usedNonce",
1144
+ "type": "uint256"
1145
+ }
1146
+ ],
1147
+ "name": "UserNonceIncremented",
1148
+ "type": "event"
1149
+ },
1150
+ {
1151
+ "anonymous": false,
1152
+ "inputs": [
1153
+ {
1154
+ "indexed": false,
1155
+ "internalType": "address",
1156
+ "name": "caller",
1157
+ "type": "address"
1158
+ },
1159
+ {
1160
+ "indexed": true,
1161
+ "internalType": "address",
1162
+ "name": "onBehalf",
1163
+ "type": "address"
1164
+ },
1165
+ {
1166
+ "indexed": true,
1167
+ "internalType": "address",
1168
+ "name": "receiver",
1169
+ "type": "address"
1170
+ },
1171
+ {
1172
+ "indexed": true,
1173
+ "internalType": "address",
1174
+ "name": "underlying",
1175
+ "type": "address"
1176
+ },
1177
+ {
1178
+ "indexed": false,
1179
+ "internalType": "uint256",
1180
+ "name": "amount",
1181
+ "type": "uint256"
1182
+ },
1183
+ {
1184
+ "indexed": false,
1185
+ "internalType": "uint256",
1186
+ "name": "scaledOnPool",
1187
+ "type": "uint256"
1188
+ },
1189
+ {
1190
+ "indexed": false,
1191
+ "internalType": "uint256",
1192
+ "name": "scaledInP2P",
1193
+ "type": "uint256"
1194
+ }
1195
+ ],
1196
+ "name": "Withdrawn",
1197
+ "type": "event"
1198
+ },
1199
+ {
1200
+ "inputs": [],
1201
+ "name": "DOMAIN_SEPARATOR",
1202
+ "outputs": [
1203
+ {
1204
+ "internalType": "bytes32",
1205
+ "name": "",
1206
+ "type": "bytes32"
1207
+ }
1208
+ ],
1209
+ "stateMutability": "view",
1210
+ "type": "function"
1211
+ },
1212
+ {
1213
+ "inputs": [],
1214
+ "name": "acceptOwnership",
1215
+ "outputs": [],
1216
+ "stateMutability": "nonpayable",
1217
+ "type": "function"
1218
+ },
1219
+ {
1220
+ "inputs": [],
1221
+ "name": "addressesProvider",
1222
+ "outputs": [
1223
+ {
1224
+ "internalType": "address",
1225
+ "name": "",
1226
+ "type": "address"
1227
+ }
1228
+ ],
1229
+ "stateMutability": "view",
1230
+ "type": "function"
1231
+ },
1232
+ {
1233
+ "inputs": [
1234
+ {
1235
+ "internalType": "address",
1236
+ "name": "manager",
1237
+ "type": "address"
1238
+ },
1239
+ {
1240
+ "internalType": "bool",
1241
+ "name": "isAllowed",
1242
+ "type": "bool"
1243
+ }
1244
+ ],
1245
+ "name": "approveManager",
1246
+ "outputs": [],
1247
+ "stateMutability": "nonpayable",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [
1252
+ {
1253
+ "internalType": "address",
1254
+ "name": "delegator",
1255
+ "type": "address"
1256
+ },
1257
+ {
1258
+ "internalType": "address",
1259
+ "name": "manager",
1260
+ "type": "address"
1261
+ },
1262
+ {
1263
+ "internalType": "bool",
1264
+ "name": "isAllowed",
1265
+ "type": "bool"
1266
+ },
1267
+ {
1268
+ "internalType": "uint256",
1269
+ "name": "nonce",
1270
+ "type": "uint256"
1271
+ },
1272
+ {
1273
+ "internalType": "uint256",
1274
+ "name": "deadline",
1275
+ "type": "uint256"
1276
+ },
1277
+ {
1278
+ "components": [
1279
+ {
1280
+ "internalType": "uint8",
1281
+ "name": "v",
1282
+ "type": "uint8"
1283
+ },
1284
+ {
1285
+ "internalType": "bytes32",
1286
+ "name": "r",
1287
+ "type": "bytes32"
1288
+ },
1289
+ {
1290
+ "internalType": "bytes32",
1291
+ "name": "s",
1292
+ "type": "bytes32"
1293
+ }
1294
+ ],
1295
+ "internalType": "struct Types.Signature",
1296
+ "name": "signature",
1297
+ "type": "tuple"
1298
+ }
1299
+ ],
1300
+ "name": "approveManagerWithSig",
1301
+ "outputs": [],
1302
+ "stateMutability": "nonpayable",
1303
+ "type": "function"
1304
+ },
1305
+ {
1306
+ "inputs": [
1307
+ {
1308
+ "internalType": "address",
1309
+ "name": "underlying",
1310
+ "type": "address"
1311
+ },
1312
+ {
1313
+ "internalType": "uint256",
1314
+ "name": "amount",
1315
+ "type": "uint256"
1316
+ },
1317
+ {
1318
+ "internalType": "address",
1319
+ "name": "onBehalf",
1320
+ "type": "address"
1321
+ },
1322
+ {
1323
+ "internalType": "address",
1324
+ "name": "receiver",
1325
+ "type": "address"
1326
+ },
1327
+ {
1328
+ "internalType": "uint256",
1329
+ "name": "maxIterations",
1330
+ "type": "uint256"
1331
+ }
1332
+ ],
1333
+ "name": "borrow",
1334
+ "outputs": [
1335
+ {
1336
+ "internalType": "uint256",
1337
+ "name": "",
1338
+ "type": "uint256"
1339
+ }
1340
+ ],
1341
+ "stateMutability": "nonpayable",
1342
+ "type": "function"
1343
+ },
1344
+ {
1345
+ "inputs": [
1346
+ {
1347
+ "internalType": "address",
1348
+ "name": "underlying",
1349
+ "type": "address"
1350
+ },
1351
+ {
1352
+ "internalType": "address",
1353
+ "name": "user",
1354
+ "type": "address"
1355
+ }
1356
+ ],
1357
+ "name": "borrowBalance",
1358
+ "outputs": [
1359
+ {
1360
+ "internalType": "uint256",
1361
+ "name": "",
1362
+ "type": "uint256"
1363
+ }
1364
+ ],
1365
+ "stateMutability": "view",
1366
+ "type": "function"
1367
+ },
1368
+ {
1369
+ "inputs": [
1370
+ {
1371
+ "internalType": "address[]",
1372
+ "name": "assets",
1373
+ "type": "address[]"
1374
+ },
1375
+ {
1376
+ "internalType": "address",
1377
+ "name": "onBehalf",
1378
+ "type": "address"
1379
+ }
1380
+ ],
1381
+ "name": "claimRewards",
1382
+ "outputs": [
1383
+ {
1384
+ "internalType": "address[]",
1385
+ "name": "rewardTokens",
1386
+ "type": "address[]"
1387
+ },
1388
+ {
1389
+ "internalType": "uint256[]",
1390
+ "name": "claimedAmounts",
1391
+ "type": "uint256[]"
1392
+ }
1393
+ ],
1394
+ "stateMutability": "nonpayable",
1395
+ "type": "function"
1396
+ },
1397
+ {
1398
+ "inputs": [
1399
+ {
1400
+ "internalType": "address[]",
1401
+ "name": "underlyings",
1402
+ "type": "address[]"
1403
+ },
1404
+ {
1405
+ "internalType": "uint256[]",
1406
+ "name": "amounts",
1407
+ "type": "uint256[]"
1408
+ }
1409
+ ],
1410
+ "name": "claimToTreasury",
1411
+ "outputs": [],
1412
+ "stateMutability": "nonpayable",
1413
+ "type": "function"
1414
+ },
1415
+ {
1416
+ "inputs": [
1417
+ {
1418
+ "internalType": "address",
1419
+ "name": "underlying",
1420
+ "type": "address"
1421
+ },
1422
+ {
1423
+ "internalType": "address",
1424
+ "name": "user",
1425
+ "type": "address"
1426
+ }
1427
+ ],
1428
+ "name": "collateralBalance",
1429
+ "outputs": [
1430
+ {
1431
+ "internalType": "uint256",
1432
+ "name": "",
1433
+ "type": "uint256"
1434
+ }
1435
+ ],
1436
+ "stateMutability": "view",
1437
+ "type": "function"
1438
+ },
1439
+ {
1440
+ "inputs": [
1441
+ {
1442
+ "internalType": "address",
1443
+ "name": "underlying",
1444
+ "type": "address"
1445
+ },
1446
+ {
1447
+ "internalType": "uint16",
1448
+ "name": "reserveFactor",
1449
+ "type": "uint16"
1450
+ },
1451
+ {
1452
+ "internalType": "uint16",
1453
+ "name": "p2pIndexCursor",
1454
+ "type": "uint16"
1455
+ }
1456
+ ],
1457
+ "name": "createMarket",
1458
+ "outputs": [],
1459
+ "stateMutability": "nonpayable",
1460
+ "type": "function"
1461
+ },
1462
+ {
1463
+ "inputs": [],
1464
+ "name": "defaultIterations",
1465
+ "outputs": [
1466
+ {
1467
+ "components": [
1468
+ {
1469
+ "internalType": "uint128",
1470
+ "name": "repay",
1471
+ "type": "uint128"
1472
+ },
1473
+ {
1474
+ "internalType": "uint128",
1475
+ "name": "withdraw",
1476
+ "type": "uint128"
1477
+ }
1478
+ ],
1479
+ "internalType": "struct Types.Iterations",
1480
+ "name": "",
1481
+ "type": "tuple"
1482
+ }
1483
+ ],
1484
+ "stateMutability": "view",
1485
+ "type": "function"
1486
+ },
1487
+ {
1488
+ "inputs": [],
1489
+ "name": "eModeCategoryId",
1490
+ "outputs": [
1491
+ {
1492
+ "internalType": "uint256",
1493
+ "name": "",
1494
+ "type": "uint256"
1495
+ }
1496
+ ],
1497
+ "stateMutability": "view",
1498
+ "type": "function"
1499
+ },
1500
+ {
1501
+ "inputs": [
1502
+ {
1503
+ "internalType": "address",
1504
+ "name": "underlying",
1505
+ "type": "address"
1506
+ },
1507
+ {
1508
+ "internalType": "enum Types.Position",
1509
+ "name": "position",
1510
+ "type": "uint8"
1511
+ }
1512
+ ],
1513
+ "name": "getBucketsMask",
1514
+ "outputs": [
1515
+ {
1516
+ "internalType": "uint256",
1517
+ "name": "",
1518
+ "type": "uint256"
1519
+ }
1520
+ ],
1521
+ "stateMutability": "view",
1522
+ "type": "function"
1523
+ },
1524
+ {
1525
+ "inputs": [
1526
+ {
1527
+ "internalType": "address",
1528
+ "name": "underlying",
1529
+ "type": "address"
1530
+ },
1531
+ {
1532
+ "internalType": "enum Types.Position",
1533
+ "name": "position",
1534
+ "type": "uint8"
1535
+ },
1536
+ {
1537
+ "internalType": "address",
1538
+ "name": "user",
1539
+ "type": "address"
1540
+ }
1541
+ ],
1542
+ "name": "getNext",
1543
+ "outputs": [
1544
+ {
1545
+ "internalType": "address",
1546
+ "name": "",
1547
+ "type": "address"
1548
+ }
1549
+ ],
1550
+ "stateMutability": "view",
1551
+ "type": "function"
1552
+ },
1553
+ {
1554
+ "inputs": [
1555
+ {
1556
+ "internalType": "address",
1557
+ "name": "underlying",
1558
+ "type": "address"
1559
+ },
1560
+ {
1561
+ "internalType": "uint256",
1562
+ "name": "amount",
1563
+ "type": "uint256"
1564
+ }
1565
+ ],
1566
+ "name": "increaseP2PDeltas",
1567
+ "outputs": [],
1568
+ "stateMutability": "nonpayable",
1569
+ "type": "function"
1570
+ },
1571
+ {
1572
+ "inputs": [
1573
+ {
1574
+ "internalType": "address",
1575
+ "name": "addressesProvider",
1576
+ "type": "address"
1577
+ },
1578
+ {
1579
+ "internalType": "uint8",
1580
+ "name": "eModeCategoryId",
1581
+ "type": "uint8"
1582
+ },
1583
+ {
1584
+ "internalType": "address",
1585
+ "name": "positionsManager",
1586
+ "type": "address"
1587
+ },
1588
+ {
1589
+ "components": [
1590
+ {
1591
+ "internalType": "uint128",
1592
+ "name": "repay",
1593
+ "type": "uint128"
1594
+ },
1595
+ {
1596
+ "internalType": "uint128",
1597
+ "name": "withdraw",
1598
+ "type": "uint128"
1599
+ }
1600
+ ],
1601
+ "internalType": "struct Types.Iterations",
1602
+ "name": "defaultIterations",
1603
+ "type": "tuple"
1604
+ }
1605
+ ],
1606
+ "name": "initialize",
1607
+ "outputs": [],
1608
+ "stateMutability": "nonpayable",
1609
+ "type": "function"
1610
+ },
1611
+ {
1612
+ "inputs": [],
1613
+ "name": "isClaimRewardsPaused",
1614
+ "outputs": [
1615
+ {
1616
+ "internalType": "bool",
1617
+ "name": "",
1618
+ "type": "bool"
1619
+ }
1620
+ ],
1621
+ "stateMutability": "view",
1622
+ "type": "function"
1623
+ },
1624
+ {
1625
+ "inputs": [
1626
+ {
1627
+ "internalType": "address",
1628
+ "name": "delegator",
1629
+ "type": "address"
1630
+ },
1631
+ {
1632
+ "internalType": "address",
1633
+ "name": "manager",
1634
+ "type": "address"
1635
+ }
1636
+ ],
1637
+ "name": "isManagedBy",
1638
+ "outputs": [
1639
+ {
1640
+ "internalType": "bool",
1641
+ "name": "",
1642
+ "type": "bool"
1643
+ }
1644
+ ],
1645
+ "stateMutability": "view",
1646
+ "type": "function"
1647
+ },
1648
+ {
1649
+ "inputs": [
1650
+ {
1651
+ "internalType": "address",
1652
+ "name": "underlyingBorrowed",
1653
+ "type": "address"
1654
+ },
1655
+ {
1656
+ "internalType": "address",
1657
+ "name": "underlyingCollateral",
1658
+ "type": "address"
1659
+ },
1660
+ {
1661
+ "internalType": "address",
1662
+ "name": "user",
1663
+ "type": "address"
1664
+ },
1665
+ {
1666
+ "internalType": "uint256",
1667
+ "name": "amount",
1668
+ "type": "uint256"
1669
+ }
1670
+ ],
1671
+ "name": "liquidate",
1672
+ "outputs": [
1673
+ {
1674
+ "internalType": "uint256",
1675
+ "name": "",
1676
+ "type": "uint256"
1677
+ },
1678
+ {
1679
+ "internalType": "uint256",
1680
+ "name": "",
1681
+ "type": "uint256"
1682
+ }
1683
+ ],
1684
+ "stateMutability": "nonpayable",
1685
+ "type": "function"
1686
+ },
1687
+ {
1688
+ "inputs": [
1689
+ {
1690
+ "internalType": "address",
1691
+ "name": "user",
1692
+ "type": "address"
1693
+ }
1694
+ ],
1695
+ "name": "liquidityData",
1696
+ "outputs": [
1697
+ {
1698
+ "components": [
1699
+ {
1700
+ "internalType": "uint256",
1701
+ "name": "borrowable",
1702
+ "type": "uint256"
1703
+ },
1704
+ {
1705
+ "internalType": "uint256",
1706
+ "name": "maxDebt",
1707
+ "type": "uint256"
1708
+ },
1709
+ {
1710
+ "internalType": "uint256",
1711
+ "name": "debt",
1712
+ "type": "uint256"
1713
+ }
1714
+ ],
1715
+ "internalType": "struct Types.LiquidityData",
1716
+ "name": "",
1717
+ "type": "tuple"
1718
+ }
1719
+ ],
1720
+ "stateMutability": "view",
1721
+ "type": "function"
1722
+ },
1723
+ {
1724
+ "inputs": [
1725
+ {
1726
+ "internalType": "address",
1727
+ "name": "underlying",
1728
+ "type": "address"
1729
+ }
1730
+ ],
1731
+ "name": "market",
1732
+ "outputs": [
1733
+ {
1734
+ "components": [
1735
+ {
1736
+ "components": [
1737
+ {
1738
+ "components": [
1739
+ {
1740
+ "internalType": "uint128",
1741
+ "name": "poolIndex",
1742
+ "type": "uint128"
1743
+ },
1744
+ {
1745
+ "internalType": "uint128",
1746
+ "name": "p2pIndex",
1747
+ "type": "uint128"
1748
+ }
1749
+ ],
1750
+ "internalType": "struct Types.MarketSideIndexes",
1751
+ "name": "supply",
1752
+ "type": "tuple"
1753
+ },
1754
+ {
1755
+ "components": [
1756
+ {
1757
+ "internalType": "uint128",
1758
+ "name": "poolIndex",
1759
+ "type": "uint128"
1760
+ },
1761
+ {
1762
+ "internalType": "uint128",
1763
+ "name": "p2pIndex",
1764
+ "type": "uint128"
1765
+ }
1766
+ ],
1767
+ "internalType": "struct Types.MarketSideIndexes",
1768
+ "name": "borrow",
1769
+ "type": "tuple"
1770
+ }
1771
+ ],
1772
+ "internalType": "struct Types.Indexes",
1773
+ "name": "indexes",
1774
+ "type": "tuple"
1775
+ },
1776
+ {
1777
+ "components": [
1778
+ {
1779
+ "components": [
1780
+ {
1781
+ "internalType": "uint256",
1782
+ "name": "scaledDelta",
1783
+ "type": "uint256"
1784
+ },
1785
+ {
1786
+ "internalType": "uint256",
1787
+ "name": "scaledP2PTotal",
1788
+ "type": "uint256"
1789
+ }
1790
+ ],
1791
+ "internalType": "struct Types.MarketSideDelta",
1792
+ "name": "supply",
1793
+ "type": "tuple"
1794
+ },
1795
+ {
1796
+ "components": [
1797
+ {
1798
+ "internalType": "uint256",
1799
+ "name": "scaledDelta",
1800
+ "type": "uint256"
1801
+ },
1802
+ {
1803
+ "internalType": "uint256",
1804
+ "name": "scaledP2PTotal",
1805
+ "type": "uint256"
1806
+ }
1807
+ ],
1808
+ "internalType": "struct Types.MarketSideDelta",
1809
+ "name": "borrow",
1810
+ "type": "tuple"
1811
+ }
1812
+ ],
1813
+ "internalType": "struct Types.Deltas",
1814
+ "name": "deltas",
1815
+ "type": "tuple"
1816
+ },
1817
+ {
1818
+ "internalType": "address",
1819
+ "name": "underlying",
1820
+ "type": "address"
1821
+ },
1822
+ {
1823
+ "components": [
1824
+ {
1825
+ "internalType": "bool",
1826
+ "name": "isP2PDisabled",
1827
+ "type": "bool"
1828
+ },
1829
+ {
1830
+ "internalType": "bool",
1831
+ "name": "isSupplyPaused",
1832
+ "type": "bool"
1833
+ },
1834
+ {
1835
+ "internalType": "bool",
1836
+ "name": "isSupplyCollateralPaused",
1837
+ "type": "bool"
1838
+ },
1839
+ {
1840
+ "internalType": "bool",
1841
+ "name": "isBorrowPaused",
1842
+ "type": "bool"
1843
+ },
1844
+ {
1845
+ "internalType": "bool",
1846
+ "name": "isWithdrawPaused",
1847
+ "type": "bool"
1848
+ },
1849
+ {
1850
+ "internalType": "bool",
1851
+ "name": "isWithdrawCollateralPaused",
1852
+ "type": "bool"
1853
+ },
1854
+ {
1855
+ "internalType": "bool",
1856
+ "name": "isRepayPaused",
1857
+ "type": "bool"
1858
+ },
1859
+ {
1860
+ "internalType": "bool",
1861
+ "name": "isLiquidateCollateralPaused",
1862
+ "type": "bool"
1863
+ },
1864
+ {
1865
+ "internalType": "bool",
1866
+ "name": "isLiquidateBorrowPaused",
1867
+ "type": "bool"
1868
+ },
1869
+ {
1870
+ "internalType": "bool",
1871
+ "name": "isDeprecated",
1872
+ "type": "bool"
1873
+ }
1874
+ ],
1875
+ "internalType": "struct Types.PauseStatuses",
1876
+ "name": "pauseStatuses",
1877
+ "type": "tuple"
1878
+ },
1879
+ {
1880
+ "internalType": "bool",
1881
+ "name": "isCollateral",
1882
+ "type": "bool"
1883
+ },
1884
+ {
1885
+ "internalType": "address",
1886
+ "name": "variableDebtToken",
1887
+ "type": "address"
1888
+ },
1889
+ {
1890
+ "internalType": "uint32",
1891
+ "name": "lastUpdateTimestamp",
1892
+ "type": "uint32"
1893
+ },
1894
+ {
1895
+ "internalType": "uint16",
1896
+ "name": "reserveFactor",
1897
+ "type": "uint16"
1898
+ },
1899
+ {
1900
+ "internalType": "uint16",
1901
+ "name": "p2pIndexCursor",
1902
+ "type": "uint16"
1903
+ },
1904
+ {
1905
+ "internalType": "address",
1906
+ "name": "aToken",
1907
+ "type": "address"
1908
+ },
1909
+ {
1910
+ "internalType": "address",
1911
+ "name": "stableDebtToken",
1912
+ "type": "address"
1913
+ },
1914
+ {
1915
+ "internalType": "uint256",
1916
+ "name": "idleSupply",
1917
+ "type": "uint256"
1918
+ }
1919
+ ],
1920
+ "internalType": "struct Types.Market",
1921
+ "name": "",
1922
+ "type": "tuple"
1923
+ }
1924
+ ],
1925
+ "stateMutability": "view",
1926
+ "type": "function"
1927
+ },
1928
+ {
1929
+ "inputs": [],
1930
+ "name": "marketsCreated",
1931
+ "outputs": [
1932
+ {
1933
+ "internalType": "address[]",
1934
+ "name": "",
1935
+ "type": "address[]"
1936
+ }
1937
+ ],
1938
+ "stateMutability": "view",
1939
+ "type": "function"
1940
+ },
1941
+ {
1942
+ "inputs": [],
1943
+ "name": "owner",
1944
+ "outputs": [
1945
+ {
1946
+ "internalType": "address",
1947
+ "name": "",
1948
+ "type": "address"
1949
+ }
1950
+ ],
1951
+ "stateMutability": "view",
1952
+ "type": "function"
1953
+ },
1954
+ {
1955
+ "inputs": [],
1956
+ "name": "pendingOwner",
1957
+ "outputs": [
1958
+ {
1959
+ "internalType": "address",
1960
+ "name": "",
1961
+ "type": "address"
1962
+ }
1963
+ ],
1964
+ "stateMutability": "view",
1965
+ "type": "function"
1966
+ },
1967
+ {
1968
+ "inputs": [],
1969
+ "name": "pool",
1970
+ "outputs": [
1971
+ {
1972
+ "internalType": "address",
1973
+ "name": "",
1974
+ "type": "address"
1975
+ }
1976
+ ],
1977
+ "stateMutability": "view",
1978
+ "type": "function"
1979
+ },
1980
+ {
1981
+ "inputs": [],
1982
+ "name": "positionsManager",
1983
+ "outputs": [
1984
+ {
1985
+ "internalType": "address",
1986
+ "name": "",
1987
+ "type": "address"
1988
+ }
1989
+ ],
1990
+ "stateMutability": "view",
1991
+ "type": "function"
1992
+ },
1993
+ {
1994
+ "inputs": [],
1995
+ "name": "renounceOwnership",
1996
+ "outputs": [],
1997
+ "stateMutability": "nonpayable",
1998
+ "type": "function"
1999
+ },
2000
+ {
2001
+ "inputs": [
2002
+ {
2003
+ "internalType": "address",
2004
+ "name": "underlying",
2005
+ "type": "address"
2006
+ },
2007
+ {
2008
+ "internalType": "uint256",
2009
+ "name": "amount",
2010
+ "type": "uint256"
2011
+ },
2012
+ {
2013
+ "internalType": "address",
2014
+ "name": "onBehalf",
2015
+ "type": "address"
2016
+ }
2017
+ ],
2018
+ "name": "repay",
2019
+ "outputs": [
2020
+ {
2021
+ "internalType": "uint256",
2022
+ "name": "",
2023
+ "type": "uint256"
2024
+ }
2025
+ ],
2026
+ "stateMutability": "nonpayable",
2027
+ "type": "function"
2028
+ },
2029
+ {
2030
+ "inputs": [
2031
+ {
2032
+ "internalType": "address",
2033
+ "name": "underlying",
2034
+ "type": "address"
2035
+ },
2036
+ {
2037
+ "internalType": "uint256",
2038
+ "name": "amount",
2039
+ "type": "uint256"
2040
+ },
2041
+ {
2042
+ "internalType": "address",
2043
+ "name": "onBehalf",
2044
+ "type": "address"
2045
+ },
2046
+ {
2047
+ "internalType": "uint256",
2048
+ "name": "deadline",
2049
+ "type": "uint256"
2050
+ },
2051
+ {
2052
+ "components": [
2053
+ {
2054
+ "internalType": "uint8",
2055
+ "name": "v",
2056
+ "type": "uint8"
2057
+ },
2058
+ {
2059
+ "internalType": "bytes32",
2060
+ "name": "r",
2061
+ "type": "bytes32"
2062
+ },
2063
+ {
2064
+ "internalType": "bytes32",
2065
+ "name": "s",
2066
+ "type": "bytes32"
2067
+ }
2068
+ ],
2069
+ "internalType": "struct Types.Signature",
2070
+ "name": "signature",
2071
+ "type": "tuple"
2072
+ }
2073
+ ],
2074
+ "name": "repayWithPermit",
2075
+ "outputs": [
2076
+ {
2077
+ "internalType": "uint256",
2078
+ "name": "",
2079
+ "type": "uint256"
2080
+ }
2081
+ ],
2082
+ "stateMutability": "nonpayable",
2083
+ "type": "function"
2084
+ },
2085
+ {
2086
+ "inputs": [],
2087
+ "name": "rewardsManager",
2088
+ "outputs": [
2089
+ {
2090
+ "internalType": "address",
2091
+ "name": "",
2092
+ "type": "address"
2093
+ }
2094
+ ],
2095
+ "stateMutability": "view",
2096
+ "type": "function"
2097
+ },
2098
+ {
2099
+ "inputs": [
2100
+ {
2101
+ "internalType": "address",
2102
+ "name": "underlying",
2103
+ "type": "address"
2104
+ },
2105
+ {
2106
+ "internalType": "address",
2107
+ "name": "user",
2108
+ "type": "address"
2109
+ }
2110
+ ],
2111
+ "name": "scaledCollateralBalance",
2112
+ "outputs": [
2113
+ {
2114
+ "internalType": "uint256",
2115
+ "name": "",
2116
+ "type": "uint256"
2117
+ }
2118
+ ],
2119
+ "stateMutability": "view",
2120
+ "type": "function"
2121
+ },
2122
+ {
2123
+ "inputs": [
2124
+ {
2125
+ "internalType": "address",
2126
+ "name": "underlying",
2127
+ "type": "address"
2128
+ },
2129
+ {
2130
+ "internalType": "address",
2131
+ "name": "user",
2132
+ "type": "address"
2133
+ }
2134
+ ],
2135
+ "name": "scaledP2PBorrowBalance",
2136
+ "outputs": [
2137
+ {
2138
+ "internalType": "uint256",
2139
+ "name": "",
2140
+ "type": "uint256"
2141
+ }
2142
+ ],
2143
+ "stateMutability": "view",
2144
+ "type": "function"
2145
+ },
2146
+ {
2147
+ "inputs": [
2148
+ {
2149
+ "internalType": "address",
2150
+ "name": "underlying",
2151
+ "type": "address"
2152
+ },
2153
+ {
2154
+ "internalType": "address",
2155
+ "name": "user",
2156
+ "type": "address"
2157
+ }
2158
+ ],
2159
+ "name": "scaledP2PSupplyBalance",
2160
+ "outputs": [
2161
+ {
2162
+ "internalType": "uint256",
2163
+ "name": "",
2164
+ "type": "uint256"
2165
+ }
2166
+ ],
2167
+ "stateMutability": "view",
2168
+ "type": "function"
2169
+ },
2170
+ {
2171
+ "inputs": [
2172
+ {
2173
+ "internalType": "address",
2174
+ "name": "underlying",
2175
+ "type": "address"
2176
+ },
2177
+ {
2178
+ "internalType": "address",
2179
+ "name": "user",
2180
+ "type": "address"
2181
+ }
2182
+ ],
2183
+ "name": "scaledPoolBorrowBalance",
2184
+ "outputs": [
2185
+ {
2186
+ "internalType": "uint256",
2187
+ "name": "",
2188
+ "type": "uint256"
2189
+ }
2190
+ ],
2191
+ "stateMutability": "view",
2192
+ "type": "function"
2193
+ },
2194
+ {
2195
+ "inputs": [
2196
+ {
2197
+ "internalType": "address",
2198
+ "name": "underlying",
2199
+ "type": "address"
2200
+ },
2201
+ {
2202
+ "internalType": "address",
2203
+ "name": "user",
2204
+ "type": "address"
2205
+ }
2206
+ ],
2207
+ "name": "scaledPoolSupplyBalance",
2208
+ "outputs": [
2209
+ {
2210
+ "internalType": "uint256",
2211
+ "name": "",
2212
+ "type": "uint256"
2213
+ }
2214
+ ],
2215
+ "stateMutability": "view",
2216
+ "type": "function"
2217
+ },
2218
+ {
2219
+ "inputs": [
2220
+ {
2221
+ "internalType": "address",
2222
+ "name": "underlying",
2223
+ "type": "address"
2224
+ },
2225
+ {
2226
+ "internalType": "bool",
2227
+ "name": "isCollateral",
2228
+ "type": "bool"
2229
+ }
2230
+ ],
2231
+ "name": "setAssetIsCollateral",
2232
+ "outputs": [],
2233
+ "stateMutability": "nonpayable",
2234
+ "type": "function"
2235
+ },
2236
+ {
2237
+ "inputs": [
2238
+ {
2239
+ "internalType": "address",
2240
+ "name": "underlying",
2241
+ "type": "address"
2242
+ },
2243
+ {
2244
+ "internalType": "bool",
2245
+ "name": "isCollateral",
2246
+ "type": "bool"
2247
+ }
2248
+ ],
2249
+ "name": "setAssetIsCollateralOnPool",
2250
+ "outputs": [],
2251
+ "stateMutability": "nonpayable",
2252
+ "type": "function"
2253
+ },
2254
+ {
2255
+ "inputs": [
2256
+ {
2257
+ "components": [
2258
+ {
2259
+ "internalType": "uint128",
2260
+ "name": "repay",
2261
+ "type": "uint128"
2262
+ },
2263
+ {
2264
+ "internalType": "uint128",
2265
+ "name": "withdraw",
2266
+ "type": "uint128"
2267
+ }
2268
+ ],
2269
+ "internalType": "struct Types.Iterations",
2270
+ "name": "defaultIterations",
2271
+ "type": "tuple"
2272
+ }
2273
+ ],
2274
+ "name": "setDefaultIterations",
2275
+ "outputs": [],
2276
+ "stateMutability": "nonpayable",
2277
+ "type": "function"
2278
+ },
2279
+ {
2280
+ "inputs": [
2281
+ {
2282
+ "internalType": "address",
2283
+ "name": "underlying",
2284
+ "type": "address"
2285
+ },
2286
+ {
2287
+ "internalType": "bool",
2288
+ "name": "isPaused",
2289
+ "type": "bool"
2290
+ }
2291
+ ],
2292
+ "name": "setIsBorrowPaused",
2293
+ "outputs": [],
2294
+ "stateMutability": "nonpayable",
2295
+ "type": "function"
2296
+ },
2297
+ {
2298
+ "inputs": [
2299
+ {
2300
+ "internalType": "bool",
2301
+ "name": "isPaused",
2302
+ "type": "bool"
2303
+ }
2304
+ ],
2305
+ "name": "setIsClaimRewardsPaused",
2306
+ "outputs": [],
2307
+ "stateMutability": "nonpayable",
2308
+ "type": "function"
2309
+ },
2310
+ {
2311
+ "inputs": [
2312
+ {
2313
+ "internalType": "address",
2314
+ "name": "underlying",
2315
+ "type": "address"
2316
+ },
2317
+ {
2318
+ "internalType": "bool",
2319
+ "name": "isDeprecated",
2320
+ "type": "bool"
2321
+ }
2322
+ ],
2323
+ "name": "setIsDeprecated",
2324
+ "outputs": [],
2325
+ "stateMutability": "nonpayable",
2326
+ "type": "function"
2327
+ },
2328
+ {
2329
+ "inputs": [
2330
+ {
2331
+ "internalType": "address",
2332
+ "name": "underlying",
2333
+ "type": "address"
2334
+ },
2335
+ {
2336
+ "internalType": "bool",
2337
+ "name": "isPaused",
2338
+ "type": "bool"
2339
+ }
2340
+ ],
2341
+ "name": "setIsLiquidateBorrowPaused",
2342
+ "outputs": [],
2343
+ "stateMutability": "nonpayable",
2344
+ "type": "function"
2345
+ },
2346
+ {
2347
+ "inputs": [
2348
+ {
2349
+ "internalType": "address",
2350
+ "name": "underlying",
2351
+ "type": "address"
2352
+ },
2353
+ {
2354
+ "internalType": "bool",
2355
+ "name": "isPaused",
2356
+ "type": "bool"
2357
+ }
2358
+ ],
2359
+ "name": "setIsLiquidateCollateralPaused",
2360
+ "outputs": [],
2361
+ "stateMutability": "nonpayable",
2362
+ "type": "function"
2363
+ },
2364
+ {
2365
+ "inputs": [
2366
+ {
2367
+ "internalType": "address",
2368
+ "name": "underlying",
2369
+ "type": "address"
2370
+ },
2371
+ {
2372
+ "internalType": "bool",
2373
+ "name": "isP2PDisabled",
2374
+ "type": "bool"
2375
+ }
2376
+ ],
2377
+ "name": "setIsP2PDisabled",
2378
+ "outputs": [],
2379
+ "stateMutability": "nonpayable",
2380
+ "type": "function"
2381
+ },
2382
+ {
2383
+ "inputs": [
2384
+ {
2385
+ "internalType": "address",
2386
+ "name": "underlying",
2387
+ "type": "address"
2388
+ },
2389
+ {
2390
+ "internalType": "bool",
2391
+ "name": "isPaused",
2392
+ "type": "bool"
2393
+ }
2394
+ ],
2395
+ "name": "setIsPaused",
2396
+ "outputs": [],
2397
+ "stateMutability": "nonpayable",
2398
+ "type": "function"
2399
+ },
2400
+ {
2401
+ "inputs": [
2402
+ {
2403
+ "internalType": "bool",
2404
+ "name": "isPaused",
2405
+ "type": "bool"
2406
+ }
2407
+ ],
2408
+ "name": "setIsPausedForAllMarkets",
2409
+ "outputs": [],
2410
+ "stateMutability": "nonpayable",
2411
+ "type": "function"
2412
+ },
2413
+ {
2414
+ "inputs": [
2415
+ {
2416
+ "internalType": "address",
2417
+ "name": "underlying",
2418
+ "type": "address"
2419
+ },
2420
+ {
2421
+ "internalType": "bool",
2422
+ "name": "isPaused",
2423
+ "type": "bool"
2424
+ }
2425
+ ],
2426
+ "name": "setIsRepayPaused",
2427
+ "outputs": [],
2428
+ "stateMutability": "nonpayable",
2429
+ "type": "function"
2430
+ },
2431
+ {
2432
+ "inputs": [
2433
+ {
2434
+ "internalType": "address",
2435
+ "name": "underlying",
2436
+ "type": "address"
2437
+ },
2438
+ {
2439
+ "internalType": "bool",
2440
+ "name": "isPaused",
2441
+ "type": "bool"
2442
+ }
2443
+ ],
2444
+ "name": "setIsSupplyCollateralPaused",
2445
+ "outputs": [],
2446
+ "stateMutability": "nonpayable",
2447
+ "type": "function"
2448
+ },
2449
+ {
2450
+ "inputs": [
2451
+ {
2452
+ "internalType": "address",
2453
+ "name": "underlying",
2454
+ "type": "address"
2455
+ },
2456
+ {
2457
+ "internalType": "bool",
2458
+ "name": "isPaused",
2459
+ "type": "bool"
2460
+ }
2461
+ ],
2462
+ "name": "setIsSupplyPaused",
2463
+ "outputs": [],
2464
+ "stateMutability": "nonpayable",
2465
+ "type": "function"
2466
+ },
2467
+ {
2468
+ "inputs": [
2469
+ {
2470
+ "internalType": "address",
2471
+ "name": "underlying",
2472
+ "type": "address"
2473
+ },
2474
+ {
2475
+ "internalType": "bool",
2476
+ "name": "isPaused",
2477
+ "type": "bool"
2478
+ }
2479
+ ],
2480
+ "name": "setIsWithdrawCollateralPaused",
2481
+ "outputs": [],
2482
+ "stateMutability": "nonpayable",
2483
+ "type": "function"
2484
+ },
2485
+ {
2486
+ "inputs": [
2487
+ {
2488
+ "internalType": "address",
2489
+ "name": "underlying",
2490
+ "type": "address"
2491
+ },
2492
+ {
2493
+ "internalType": "bool",
2494
+ "name": "isPaused",
2495
+ "type": "bool"
2496
+ }
2497
+ ],
2498
+ "name": "setIsWithdrawPaused",
2499
+ "outputs": [],
2500
+ "stateMutability": "nonpayable",
2501
+ "type": "function"
2502
+ },
2503
+ {
2504
+ "inputs": [
2505
+ {
2506
+ "internalType": "address",
2507
+ "name": "underlying",
2508
+ "type": "address"
2509
+ },
2510
+ {
2511
+ "internalType": "uint16",
2512
+ "name": "p2pIndexCursor",
2513
+ "type": "uint16"
2514
+ }
2515
+ ],
2516
+ "name": "setP2PIndexCursor",
2517
+ "outputs": [],
2518
+ "stateMutability": "nonpayable",
2519
+ "type": "function"
2520
+ },
2521
+ {
2522
+ "inputs": [
2523
+ {
2524
+ "internalType": "address",
2525
+ "name": "positionsManager",
2526
+ "type": "address"
2527
+ }
2528
+ ],
2529
+ "name": "setPositionsManager",
2530
+ "outputs": [],
2531
+ "stateMutability": "nonpayable",
2532
+ "type": "function"
2533
+ },
2534
+ {
2535
+ "inputs": [
2536
+ {
2537
+ "internalType": "address",
2538
+ "name": "underlying",
2539
+ "type": "address"
2540
+ },
2541
+ {
2542
+ "internalType": "uint16",
2543
+ "name": "newReserveFactor",
2544
+ "type": "uint16"
2545
+ }
2546
+ ],
2547
+ "name": "setReserveFactor",
2548
+ "outputs": [],
2549
+ "stateMutability": "nonpayable",
2550
+ "type": "function"
2551
+ },
2552
+ {
2553
+ "inputs": [
2554
+ {
2555
+ "internalType": "address",
2556
+ "name": "rewardsManager",
2557
+ "type": "address"
2558
+ }
2559
+ ],
2560
+ "name": "setRewardsManager",
2561
+ "outputs": [],
2562
+ "stateMutability": "nonpayable",
2563
+ "type": "function"
2564
+ },
2565
+ {
2566
+ "inputs": [
2567
+ {
2568
+ "internalType": "address",
2569
+ "name": "treasuryVault",
2570
+ "type": "address"
2571
+ }
2572
+ ],
2573
+ "name": "setTreasuryVault",
2574
+ "outputs": [],
2575
+ "stateMutability": "nonpayable",
2576
+ "type": "function"
2577
+ },
2578
+ {
2579
+ "inputs": [
2580
+ {
2581
+ "internalType": "address",
2582
+ "name": "underlying",
2583
+ "type": "address"
2584
+ },
2585
+ {
2586
+ "internalType": "uint256",
2587
+ "name": "amount",
2588
+ "type": "uint256"
2589
+ },
2590
+ {
2591
+ "internalType": "address",
2592
+ "name": "onBehalf",
2593
+ "type": "address"
2594
+ },
2595
+ {
2596
+ "internalType": "uint256",
2597
+ "name": "maxIterations",
2598
+ "type": "uint256"
2599
+ }
2600
+ ],
2601
+ "name": "supply",
2602
+ "outputs": [
2603
+ {
2604
+ "internalType": "uint256",
2605
+ "name": "",
2606
+ "type": "uint256"
2607
+ }
2608
+ ],
2609
+ "stateMutability": "nonpayable",
2610
+ "type": "function"
2611
+ },
2612
+ {
2613
+ "inputs": [
2614
+ {
2615
+ "internalType": "address",
2616
+ "name": "underlying",
2617
+ "type": "address"
2618
+ },
2619
+ {
2620
+ "internalType": "address",
2621
+ "name": "user",
2622
+ "type": "address"
2623
+ }
2624
+ ],
2625
+ "name": "supplyBalance",
2626
+ "outputs": [
2627
+ {
2628
+ "internalType": "uint256",
2629
+ "name": "",
2630
+ "type": "uint256"
2631
+ }
2632
+ ],
2633
+ "stateMutability": "view",
2634
+ "type": "function"
2635
+ },
2636
+ {
2637
+ "inputs": [
2638
+ {
2639
+ "internalType": "address",
2640
+ "name": "underlying",
2641
+ "type": "address"
2642
+ },
2643
+ {
2644
+ "internalType": "uint256",
2645
+ "name": "amount",
2646
+ "type": "uint256"
2647
+ },
2648
+ {
2649
+ "internalType": "address",
2650
+ "name": "onBehalf",
2651
+ "type": "address"
2652
+ }
2653
+ ],
2654
+ "name": "supplyCollateral",
2655
+ "outputs": [
2656
+ {
2657
+ "internalType": "uint256",
2658
+ "name": "",
2659
+ "type": "uint256"
2660
+ }
2661
+ ],
2662
+ "stateMutability": "nonpayable",
2663
+ "type": "function"
2664
+ },
2665
+ {
2666
+ "inputs": [
2667
+ {
2668
+ "internalType": "address",
2669
+ "name": "underlying",
2670
+ "type": "address"
2671
+ },
2672
+ {
2673
+ "internalType": "uint256",
2674
+ "name": "amount",
2675
+ "type": "uint256"
2676
+ },
2677
+ {
2678
+ "internalType": "address",
2679
+ "name": "onBehalf",
2680
+ "type": "address"
2681
+ },
2682
+ {
2683
+ "internalType": "uint256",
2684
+ "name": "deadline",
2685
+ "type": "uint256"
2686
+ },
2687
+ {
2688
+ "components": [
2689
+ {
2690
+ "internalType": "uint8",
2691
+ "name": "v",
2692
+ "type": "uint8"
2693
+ },
2694
+ {
2695
+ "internalType": "bytes32",
2696
+ "name": "r",
2697
+ "type": "bytes32"
2698
+ },
2699
+ {
2700
+ "internalType": "bytes32",
2701
+ "name": "s",
2702
+ "type": "bytes32"
2703
+ }
2704
+ ],
2705
+ "internalType": "struct Types.Signature",
2706
+ "name": "signature",
2707
+ "type": "tuple"
2708
+ }
2709
+ ],
2710
+ "name": "supplyCollateralWithPermit",
2711
+ "outputs": [
2712
+ {
2713
+ "internalType": "uint256",
2714
+ "name": "",
2715
+ "type": "uint256"
2716
+ }
2717
+ ],
2718
+ "stateMutability": "nonpayable",
2719
+ "type": "function"
2720
+ },
2721
+ {
2722
+ "inputs": [
2723
+ {
2724
+ "internalType": "address",
2725
+ "name": "underlying",
2726
+ "type": "address"
2727
+ },
2728
+ {
2729
+ "internalType": "uint256",
2730
+ "name": "amount",
2731
+ "type": "uint256"
2732
+ },
2733
+ {
2734
+ "internalType": "address",
2735
+ "name": "onBehalf",
2736
+ "type": "address"
2737
+ },
2738
+ {
2739
+ "internalType": "uint256",
2740
+ "name": "maxIterations",
2741
+ "type": "uint256"
2742
+ },
2743
+ {
2744
+ "internalType": "uint256",
2745
+ "name": "deadline",
2746
+ "type": "uint256"
2747
+ },
2748
+ {
2749
+ "components": [
2750
+ {
2751
+ "internalType": "uint8",
2752
+ "name": "v",
2753
+ "type": "uint8"
2754
+ },
2755
+ {
2756
+ "internalType": "bytes32",
2757
+ "name": "r",
2758
+ "type": "bytes32"
2759
+ },
2760
+ {
2761
+ "internalType": "bytes32",
2762
+ "name": "s",
2763
+ "type": "bytes32"
2764
+ }
2765
+ ],
2766
+ "internalType": "struct Types.Signature",
2767
+ "name": "signature",
2768
+ "type": "tuple"
2769
+ }
2770
+ ],
2771
+ "name": "supplyWithPermit",
2772
+ "outputs": [
2773
+ {
2774
+ "internalType": "uint256",
2775
+ "name": "",
2776
+ "type": "uint256"
2777
+ }
2778
+ ],
2779
+ "stateMutability": "nonpayable",
2780
+ "type": "function"
2781
+ },
2782
+ {
2783
+ "inputs": [
2784
+ {
2785
+ "internalType": "address",
2786
+ "name": "newOwner",
2787
+ "type": "address"
2788
+ }
2789
+ ],
2790
+ "name": "transferOwnership",
2791
+ "outputs": [],
2792
+ "stateMutability": "nonpayable",
2793
+ "type": "function"
2794
+ },
2795
+ {
2796
+ "inputs": [],
2797
+ "name": "treasuryVault",
2798
+ "outputs": [
2799
+ {
2800
+ "internalType": "address",
2801
+ "name": "",
2802
+ "type": "address"
2803
+ }
2804
+ ],
2805
+ "stateMutability": "view",
2806
+ "type": "function"
2807
+ },
2808
+ {
2809
+ "inputs": [
2810
+ {
2811
+ "internalType": "address",
2812
+ "name": "underlying",
2813
+ "type": "address"
2814
+ }
2815
+ ],
2816
+ "name": "updatedIndexes",
2817
+ "outputs": [
2818
+ {
2819
+ "components": [
2820
+ {
2821
+ "components": [
2822
+ {
2823
+ "internalType": "uint256",
2824
+ "name": "poolIndex",
2825
+ "type": "uint256"
2826
+ },
2827
+ {
2828
+ "internalType": "uint256",
2829
+ "name": "p2pIndex",
2830
+ "type": "uint256"
2831
+ }
2832
+ ],
2833
+ "internalType": "struct Types.MarketSideIndexes256",
2834
+ "name": "supply",
2835
+ "type": "tuple"
2836
+ },
2837
+ {
2838
+ "components": [
2839
+ {
2840
+ "internalType": "uint256",
2841
+ "name": "poolIndex",
2842
+ "type": "uint256"
2843
+ },
2844
+ {
2845
+ "internalType": "uint256",
2846
+ "name": "p2pIndex",
2847
+ "type": "uint256"
2848
+ }
2849
+ ],
2850
+ "internalType": "struct Types.MarketSideIndexes256",
2851
+ "name": "borrow",
2852
+ "type": "tuple"
2853
+ }
2854
+ ],
2855
+ "internalType": "struct Types.Indexes256",
2856
+ "name": "indexes",
2857
+ "type": "tuple"
2858
+ }
2859
+ ],
2860
+ "stateMutability": "view",
2861
+ "type": "function"
2862
+ },
2863
+ {
2864
+ "inputs": [
2865
+ {
2866
+ "internalType": "address",
2867
+ "name": "user",
2868
+ "type": "address"
2869
+ }
2870
+ ],
2871
+ "name": "userBorrows",
2872
+ "outputs": [
2873
+ {
2874
+ "internalType": "address[]",
2875
+ "name": "",
2876
+ "type": "address[]"
2877
+ }
2878
+ ],
2879
+ "stateMutability": "view",
2880
+ "type": "function"
2881
+ },
2882
+ {
2883
+ "inputs": [
2884
+ {
2885
+ "internalType": "address",
2886
+ "name": "user",
2887
+ "type": "address"
2888
+ }
2889
+ ],
2890
+ "name": "userCollaterals",
2891
+ "outputs": [
2892
+ {
2893
+ "internalType": "address[]",
2894
+ "name": "",
2895
+ "type": "address[]"
2896
+ }
2897
+ ],
2898
+ "stateMutability": "view",
2899
+ "type": "function"
2900
+ },
2901
+ {
2902
+ "inputs": [
2903
+ {
2904
+ "internalType": "address",
2905
+ "name": "user",
2906
+ "type": "address"
2907
+ }
2908
+ ],
2909
+ "name": "userNonce",
2910
+ "outputs": [
2911
+ {
2912
+ "internalType": "uint256",
2913
+ "name": "",
2914
+ "type": "uint256"
2915
+ }
2916
+ ],
2917
+ "stateMutability": "view",
2918
+ "type": "function"
2919
+ },
2920
+ {
2921
+ "inputs": [
2922
+ {
2923
+ "internalType": "address",
2924
+ "name": "underlying",
2925
+ "type": "address"
2926
+ },
2927
+ {
2928
+ "internalType": "uint256",
2929
+ "name": "amount",
2930
+ "type": "uint256"
2931
+ },
2932
+ {
2933
+ "internalType": "address",
2934
+ "name": "onBehalf",
2935
+ "type": "address"
2936
+ },
2937
+ {
2938
+ "internalType": "address",
2939
+ "name": "receiver",
2940
+ "type": "address"
2941
+ },
2942
+ {
2943
+ "internalType": "uint256",
2944
+ "name": "maxIterations",
2945
+ "type": "uint256"
2946
+ }
2947
+ ],
2948
+ "name": "withdraw",
2949
+ "outputs": [
2950
+ {
2951
+ "internalType": "uint256",
2952
+ "name": "",
2953
+ "type": "uint256"
2954
+ }
2955
+ ],
2956
+ "stateMutability": "nonpayable",
2957
+ "type": "function"
2958
+ },
2959
+ {
2960
+ "inputs": [
2961
+ {
2962
+ "internalType": "address",
2963
+ "name": "underlying",
2964
+ "type": "address"
2965
+ },
2966
+ {
2967
+ "internalType": "uint256",
2968
+ "name": "amount",
2969
+ "type": "uint256"
2970
+ },
2971
+ {
2972
+ "internalType": "address",
2973
+ "name": "onBehalf",
2974
+ "type": "address"
2975
+ },
2976
+ {
2977
+ "internalType": "address",
2978
+ "name": "receiver",
2979
+ "type": "address"
2980
+ }
2981
+ ],
2982
+ "name": "withdrawCollateral",
2983
+ "outputs": [
2984
+ {
2985
+ "internalType": "uint256",
2986
+ "name": "",
2987
+ "type": "uint256"
2988
+ }
2989
+ ],
2990
+ "stateMutability": "nonpayable",
2991
+ "type": "function"
2992
+ }
2993
+ ]
2994
+ ''')