defi-state-querier 0.0.6__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 (61) 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/abis/lending/radiant_v2/__init__.py +0 -0
  10. defi_services/abis/lending/radiant_v2/radiant_v2_incentive_abi.py +1016 -0
  11. defi_services/abis/lending/wepiggy/__init__.py +0 -0
  12. defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +1047 -0
  13. defi_services/constants/chain_constant.py +1 -0
  14. defi_services/constants/entities/lending_constant.py +26 -0
  15. defi_services/constants/entities/lending_services.py +85 -0
  16. defi_services/constants/query_constant.py +1 -0
  17. defi_services/constants/token_constant.py +2 -0
  18. defi_services/jobs/processors/__init__.py +0 -0
  19. defi_services/jobs/processors/solana_state_processor.py +101 -0
  20. defi_services/jobs/{state_processor.py → processors/state_processor.py} +9 -4
  21. defi_services/jobs/processors/substrate_state_processor.py +97 -0
  22. defi_services/jobs/queriers/__init__.py +0 -0
  23. defi_services/jobs/queriers/solana_state_querier.py +83 -0
  24. defi_services/jobs/{state_querier.py → queriers/state_querier.py} +3 -2
  25. defi_services/jobs/queriers/substrate_state_querier.py +84 -0
  26. defi_services/services/lending/aave_v2_services.py +8 -7
  27. defi_services/services/lending/aave_v3_services.py +12 -9
  28. defi_services/services/lending/compound_service.py +29 -10
  29. defi_services/services/lending/cream_services.py +5 -4
  30. defi_services/services/lending/flux_services.py +34 -27
  31. defi_services/services/lending/geist_services.py +4 -3
  32. defi_services/services/lending/granary_v1_services.py +6 -7
  33. defi_services/services/lending/iron_bank_service.py +20 -13
  34. defi_services/services/lending/lending_info/aave_v2_services.py +2 -2
  35. defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +53 -0
  36. defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +51 -0
  37. defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +44 -0
  38. defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +41 -0
  39. defi_services/services/lending/liqee_service.py +5 -26
  40. defi_services/services/lending/morpho_aave_v2_services.py +89 -0
  41. defi_services/services/lending/morpho_aave_v3_services.py +159 -0
  42. defi_services/services/lending/morpho_compound_services.py +233 -0
  43. defi_services/services/lending/onyx_service.py +32 -13
  44. defi_services/services/lending/radiant_v2_services.py +30 -3
  45. defi_services/services/lending/strike_service.py +29 -10
  46. defi_services/services/lending/trava_services.py +8 -7
  47. defi_services/services/lending/uwu_services.py +8 -7
  48. defi_services/services/lending/valas_services.py +6 -5
  49. defi_services/services/lending/venus_services.py +28 -8
  50. defi_services/services/lending/wepiggy_services.py +519 -0
  51. defi_services/services/nft_services.py +1 -1
  52. defi_services/services/solana_token_services.py +46 -0
  53. defi_services/services/substrate_token_services.py +70 -0
  54. defi_services/services/token_services.py +1 -3
  55. defi_services/utils/init_services.py +3 -3
  56. {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/METADATA +3 -3
  57. {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/RECORD +60 -32
  58. defi_services/constants/entities/lending.py +0 -97
  59. {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/LICENSE +0 -0
  60. {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/WHEEL +0 -0
  61. {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2301 @@
1
+ import json
2
+
3
+ MORPHO_AAVE_V2_COMPTROLLER = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [],
7
+ "name": "UnauthorisedLiquidate",
8
+ "type": "error"
9
+ },
10
+ {
11
+ "inputs": [],
12
+ "name": "UnauthorisedWithdraw",
13
+ "type": "error"
14
+ },
15
+ {
16
+ "inputs": [],
17
+ "name": "UserNotMemberOfMarket",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "AddressIsZero",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [],
27
+ "name": "AmountIsZero",
28
+ "type": "error"
29
+ },
30
+ {
31
+ "inputs": [],
32
+ "name": "BorrowingNotEnabled",
33
+ "type": "error"
34
+ },
35
+ {
36
+ "inputs": [],
37
+ "name": "UnauthorisedBorrow",
38
+ "type": "error"
39
+ },
40
+ {
41
+ "inputs": [],
42
+ "name": "ClaimRewardsPaused",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "ExceedsMaxBasisPoints",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [],
52
+ "name": "MarketAlreadyCreated",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "MarketIsNotListedOnAave",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "MarketNotCreated",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "MarketPaused",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [],
72
+ "name": "MaxNumberOfMarkets",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [],
77
+ "name": "MaxSortedUsersCannotBeZero",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [],
82
+ "name": "ZeroAddress",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "anonymous": false,
87
+ "inputs": [
88
+ {
89
+ "indexed": true,
90
+ "internalType": "address",
91
+ "name": "_borrower",
92
+ "type": "address"
93
+ },
94
+ {
95
+ "indexed": true,
96
+ "internalType": "address",
97
+ "name": "_poolToken",
98
+ "type": "address"
99
+ },
100
+ {
101
+ "indexed": false,
102
+ "internalType": "uint256",
103
+ "name": "_amount",
104
+ "type": "uint256"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "_balanceOnPool",
110
+ "type": "uint256"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "uint256",
115
+ "name": "_balanceInP2P",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "Borrowed",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "anonymous": false,
124
+ "inputs": [
125
+ {
126
+ "indexed": true,
127
+ "internalType": "address",
128
+ "name": "_poolToken",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "indexed": false,
133
+ "internalType": "uint256",
134
+ "name": "_p2pSupplyAmount",
135
+ "type": "uint256"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint256",
140
+ "name": "_p2pBorrowAmount",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "name": "P2PAmountsUpdated",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": true,
152
+ "internalType": "address",
153
+ "name": "_poolToken",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "uint256",
159
+ "name": "_p2pBorrowDelta",
160
+ "type": "uint256"
161
+ }
162
+ ],
163
+ "name": "P2PBorrowDeltaUpdated",
164
+ "type": "event"
165
+ },
166
+ {
167
+ "anonymous": false,
168
+ "inputs": [
169
+ {
170
+ "indexed": true,
171
+ "internalType": "address",
172
+ "name": "_poolToken",
173
+ "type": "address"
174
+ },
175
+ {
176
+ "indexed": false,
177
+ "internalType": "uint256",
178
+ "name": "_p2pSupplyDelta",
179
+ "type": "uint256"
180
+ }
181
+ ],
182
+ "name": "P2PSupplyDeltaUpdated",
183
+ "type": "event"
184
+ },
185
+ {
186
+ "anonymous": false,
187
+ "inputs": [
188
+ {
189
+ "indexed": true,
190
+ "internalType": "address",
191
+ "name": "_from",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "indexed": true,
196
+ "internalType": "address",
197
+ "name": "_onBehalf",
198
+ "type": "address"
199
+ },
200
+ {
201
+ "indexed": true,
202
+ "internalType": "address",
203
+ "name": "_poolToken",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "indexed": false,
208
+ "internalType": "uint256",
209
+ "name": "_amount",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "indexed": false,
214
+ "internalType": "uint256",
215
+ "name": "_balanceOnPool",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "indexed": false,
220
+ "internalType": "uint256",
221
+ "name": "_balanceInP2P",
222
+ "type": "uint256"
223
+ }
224
+ ],
225
+ "name": "Supplied",
226
+ "type": "event"
227
+ },
228
+ {
229
+ "anonymous": false,
230
+ "inputs": [
231
+ {
232
+ "indexed": true,
233
+ "internalType": "address",
234
+ "name": "_user",
235
+ "type": "address"
236
+ },
237
+ {
238
+ "indexed": true,
239
+ "internalType": "address",
240
+ "name": "_poolToken",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "indexed": false,
245
+ "internalType": "uint256",
246
+ "name": "_balanceOnPool",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "internalType": "uint256",
252
+ "name": "_balanceInP2P",
253
+ "type": "uint256"
254
+ }
255
+ ],
256
+ "name": "BorrowerPositionUpdated",
257
+ "type": "event"
258
+ },
259
+ {
260
+ "anonymous": false,
261
+ "inputs": [
262
+ {
263
+ "indexed": true,
264
+ "internalType": "address",
265
+ "name": "_user",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "indexed": true,
270
+ "internalType": "address",
271
+ "name": "_poolToken",
272
+ "type": "address"
273
+ },
274
+ {
275
+ "indexed": false,
276
+ "internalType": "uint256",
277
+ "name": "_balanceOnPool",
278
+ "type": "uint256"
279
+ },
280
+ {
281
+ "indexed": false,
282
+ "internalType": "uint256",
283
+ "name": "_balanceInP2P",
284
+ "type": "uint256"
285
+ }
286
+ ],
287
+ "name": "SupplierPositionUpdated",
288
+ "type": "event"
289
+ },
290
+ {
291
+ "anonymous": false,
292
+ "inputs": [
293
+ {
294
+ "indexed": true,
295
+ "internalType": "address",
296
+ "name": "_poolToken",
297
+ "type": "address"
298
+ },
299
+ {
300
+ "indexed": false,
301
+ "internalType": "uint256",
302
+ "name": "_p2pSupplyIndex",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "indexed": false,
307
+ "internalType": "uint256",
308
+ "name": "_p2pBorrowIndex",
309
+ "type": "uint256"
310
+ },
311
+ {
312
+ "indexed": false,
313
+ "internalType": "uint256",
314
+ "name": "_poolSupplyIndex",
315
+ "type": "uint256"
316
+ },
317
+ {
318
+ "indexed": false,
319
+ "internalType": "uint256",
320
+ "name": "_poolBorrowIndex",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "name": "P2PIndexesUpdated",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "anonymous": false,
329
+ "inputs": [
330
+ {
331
+ "indexed": true,
332
+ "internalType": "address",
333
+ "name": "_poolToken",
334
+ "type": "address"
335
+ },
336
+ {
337
+ "indexed": false,
338
+ "internalType": "uint256",
339
+ "name": "_amount",
340
+ "type": "uint256"
341
+ }
342
+ ],
343
+ "name": "P2PDeltasIncreased",
344
+ "type": "event"
345
+ },
346
+ {
347
+ "anonymous": false,
348
+ "inputs": [
349
+ {
350
+ "indexed": false,
351
+ "internalType": "address",
352
+ "name": "_liquidator",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "indexed": true,
357
+ "internalType": "address",
358
+ "name": "_liquidated",
359
+ "type": "address"
360
+ },
361
+ {
362
+ "indexed": true,
363
+ "internalType": "address",
364
+ "name": "_poolTokenBorrowed",
365
+ "type": "address"
366
+ },
367
+ {
368
+ "indexed": false,
369
+ "internalType": "uint256",
370
+ "name": "_amountRepaid",
371
+ "type": "uint256"
372
+ },
373
+ {
374
+ "indexed": true,
375
+ "internalType": "address",
376
+ "name": "_poolTokenCollateral",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "indexed": false,
381
+ "internalType": "uint256",
382
+ "name": "_amountSeized",
383
+ "type": "uint256"
384
+ }
385
+ ],
386
+ "name": "Liquidated",
387
+ "type": "event"
388
+ },
389
+ {
390
+ "anonymous": false,
391
+ "inputs": [
392
+ {
393
+ "indexed": true,
394
+ "internalType": "address",
395
+ "name": "_supplier",
396
+ "type": "address"
397
+ },
398
+ {
399
+ "indexed": true,
400
+ "internalType": "address",
401
+ "name": "_receiver",
402
+ "type": "address"
403
+ },
404
+ {
405
+ "indexed": true,
406
+ "internalType": "address",
407
+ "name": "_poolToken",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "indexed": false,
412
+ "internalType": "uint256",
413
+ "name": "_amount",
414
+ "type": "uint256"
415
+ },
416
+ {
417
+ "indexed": false,
418
+ "internalType": "uint256",
419
+ "name": "_balanceOnPool",
420
+ "type": "uint256"
421
+ },
422
+ {
423
+ "indexed": false,
424
+ "internalType": "uint256",
425
+ "name": "_balanceInP2P",
426
+ "type": "uint256"
427
+ }
428
+ ],
429
+ "name": "Withdrawn",
430
+ "type": "event"
431
+ },
432
+ {
433
+ "anonymous": false,
434
+ "inputs": [
435
+ {
436
+ "indexed": true,
437
+ "internalType": "address",
438
+ "name": "_repayer",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "indexed": true,
443
+ "internalType": "address",
444
+ "name": "_onBehalf",
445
+ "type": "address"
446
+ },
447
+ {
448
+ "indexed": true,
449
+ "internalType": "address",
450
+ "name": "_poolToken",
451
+ "type": "address"
452
+ },
453
+ {
454
+ "indexed": false,
455
+ "internalType": "uint256",
456
+ "name": "_amount",
457
+ "type": "uint256"
458
+ },
459
+ {
460
+ "indexed": false,
461
+ "internalType": "uint256",
462
+ "name": "_balanceOnPool",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "indexed": false,
467
+ "internalType": "uint256",
468
+ "name": "_balanceInP2P",
469
+ "type": "uint256"
470
+ }
471
+ ],
472
+ "name": "Repaid",
473
+ "type": "event"
474
+ },
475
+ {
476
+ "anonymous": false,
477
+ "inputs": [
478
+ {
479
+ "indexed": true,
480
+ "internalType": "address",
481
+ "name": "_aaveIncentivesController",
482
+ "type": "address"
483
+ }
484
+ ],
485
+ "name": "AaveIncentivesControllerSet",
486
+ "type": "event"
487
+ },
488
+ {
489
+ "anonymous": false,
490
+ "inputs": [
491
+ {
492
+ "indexed": false,
493
+ "internalType": "bool",
494
+ "name": "_newStatus",
495
+ "type": "bool"
496
+ }
497
+ ],
498
+ "name": "ClaimRewardsPauseStatusSet",
499
+ "type": "event"
500
+ },
501
+ {
502
+ "anonymous": false,
503
+ "inputs": [
504
+ {
505
+ "components": [
506
+ {
507
+ "internalType": "uint64",
508
+ "name": "supply",
509
+ "type": "uint64"
510
+ },
511
+ {
512
+ "internalType": "uint64",
513
+ "name": "borrow",
514
+ "type": "uint64"
515
+ },
516
+ {
517
+ "internalType": "uint64",
518
+ "name": "withdraw",
519
+ "type": "uint64"
520
+ },
521
+ {
522
+ "internalType": "uint64",
523
+ "name": "repay",
524
+ "type": "uint64"
525
+ }
526
+ ],
527
+ "indexed": false,
528
+ "internalType": "struct Types.MaxGasForMatching",
529
+ "name": "_defaultMaxGasForMatching",
530
+ "type": "tuple"
531
+ }
532
+ ],
533
+ "name": "DefaultMaxGasForMatchingSet",
534
+ "type": "event"
535
+ },
536
+ {
537
+ "anonymous": false,
538
+ "inputs": [
539
+ {
540
+ "indexed": true,
541
+ "internalType": "address",
542
+ "name": "_entryPositionsManager",
543
+ "type": "address"
544
+ }
545
+ ],
546
+ "name": "EntryPositionsManagerSet",
547
+ "type": "event"
548
+ },
549
+ {
550
+ "anonymous": false,
551
+ "inputs": [
552
+ {
553
+ "indexed": true,
554
+ "internalType": "address",
555
+ "name": "_exitPositionsManager",
556
+ "type": "address"
557
+ }
558
+ ],
559
+ "name": "ExitPositionsManagerSet",
560
+ "type": "event"
561
+ },
562
+ {
563
+ "anonymous": false,
564
+ "inputs": [
565
+ {
566
+ "indexed": true,
567
+ "internalType": "address",
568
+ "name": "_newIncentivesVaultAddress",
569
+ "type": "address"
570
+ }
571
+ ],
572
+ "name": "IncentivesVaultSet",
573
+ "type": "event"
574
+ },
575
+ {
576
+ "anonymous": false,
577
+ "inputs": [
578
+ {
579
+ "indexed": true,
580
+ "internalType": "address",
581
+ "name": "_interestRatesManager",
582
+ "type": "address"
583
+ }
584
+ ],
585
+ "name": "InterestRatesSet",
586
+ "type": "event"
587
+ },
588
+ {
589
+ "anonymous": false,
590
+ "inputs": [
591
+ {
592
+ "indexed": true,
593
+ "internalType": "address",
594
+ "name": "_poolToken",
595
+ "type": "address"
596
+ },
597
+ {
598
+ "indexed": false,
599
+ "internalType": "bool",
600
+ "name": "_isPaused",
601
+ "type": "bool"
602
+ }
603
+ ],
604
+ "name": "IsBorrowPausedSet",
605
+ "type": "event"
606
+ },
607
+ {
608
+ "anonymous": false,
609
+ "inputs": [
610
+ {
611
+ "indexed": true,
612
+ "internalType": "address",
613
+ "name": "_poolToken",
614
+ "type": "address"
615
+ },
616
+ {
617
+ "indexed": false,
618
+ "internalType": "bool",
619
+ "name": "_isDeprecated",
620
+ "type": "bool"
621
+ }
622
+ ],
623
+ "name": "IsDeprecatedSet",
624
+ "type": "event"
625
+ },
626
+ {
627
+ "anonymous": false,
628
+ "inputs": [
629
+ {
630
+ "indexed": true,
631
+ "internalType": "address",
632
+ "name": "_poolToken",
633
+ "type": "address"
634
+ },
635
+ {
636
+ "indexed": false,
637
+ "internalType": "bool",
638
+ "name": "_isPaused",
639
+ "type": "bool"
640
+ }
641
+ ],
642
+ "name": "IsLiquidateBorrowPausedSet",
643
+ "type": "event"
644
+ },
645
+ {
646
+ "anonymous": false,
647
+ "inputs": [
648
+ {
649
+ "indexed": true,
650
+ "internalType": "address",
651
+ "name": "_poolToken",
652
+ "type": "address"
653
+ },
654
+ {
655
+ "indexed": false,
656
+ "internalType": "bool",
657
+ "name": "_isPaused",
658
+ "type": "bool"
659
+ }
660
+ ],
661
+ "name": "IsLiquidateCollateralPausedSet",
662
+ "type": "event"
663
+ },
664
+ {
665
+ "anonymous": false,
666
+ "inputs": [
667
+ {
668
+ "indexed": true,
669
+ "internalType": "address",
670
+ "name": "_poolToken",
671
+ "type": "address"
672
+ },
673
+ {
674
+ "indexed": false,
675
+ "internalType": "bool",
676
+ "name": "_isPaused",
677
+ "type": "bool"
678
+ }
679
+ ],
680
+ "name": "IsRepayPausedSet",
681
+ "type": "event"
682
+ },
683
+ {
684
+ "anonymous": false,
685
+ "inputs": [
686
+ {
687
+ "indexed": true,
688
+ "internalType": "address",
689
+ "name": "_poolToken",
690
+ "type": "address"
691
+ },
692
+ {
693
+ "indexed": false,
694
+ "internalType": "bool",
695
+ "name": "_isPaused",
696
+ "type": "bool"
697
+ }
698
+ ],
699
+ "name": "IsSupplyPausedSet",
700
+ "type": "event"
701
+ },
702
+ {
703
+ "anonymous": false,
704
+ "inputs": [
705
+ {
706
+ "indexed": true,
707
+ "internalType": "address",
708
+ "name": "_poolToken",
709
+ "type": "address"
710
+ },
711
+ {
712
+ "indexed": false,
713
+ "internalType": "bool",
714
+ "name": "_isPaused",
715
+ "type": "bool"
716
+ }
717
+ ],
718
+ "name": "IsWithdrawPausedSet",
719
+ "type": "event"
720
+ },
721
+ {
722
+ "anonymous": false,
723
+ "inputs": [
724
+ {
725
+ "indexed": true,
726
+ "internalType": "address",
727
+ "name": "_poolToken",
728
+ "type": "address"
729
+ },
730
+ {
731
+ "indexed": false,
732
+ "internalType": "uint16",
733
+ "name": "_reserveFactor",
734
+ "type": "uint16"
735
+ },
736
+ {
737
+ "indexed": false,
738
+ "internalType": "uint16",
739
+ "name": "_p2pIndexCursor",
740
+ "type": "uint16"
741
+ }
742
+ ],
743
+ "name": "MarketCreated",
744
+ "type": "event"
745
+ },
746
+ {
747
+ "anonymous": false,
748
+ "inputs": [
749
+ {
750
+ "indexed": false,
751
+ "internalType": "uint256",
752
+ "name": "_newValue",
753
+ "type": "uint256"
754
+ }
755
+ ],
756
+ "name": "MaxSortedUsersSet",
757
+ "type": "event"
758
+ },
759
+ {
760
+ "anonymous": false,
761
+ "inputs": [
762
+ {
763
+ "indexed": true,
764
+ "internalType": "address",
765
+ "name": "previousOwner",
766
+ "type": "address"
767
+ },
768
+ {
769
+ "indexed": true,
770
+ "internalType": "address",
771
+ "name": "newOwner",
772
+ "type": "address"
773
+ }
774
+ ],
775
+ "name": "OwnershipTransferred",
776
+ "type": "event"
777
+ },
778
+ {
779
+ "anonymous": false,
780
+ "inputs": [
781
+ {
782
+ "indexed": true,
783
+ "internalType": "address",
784
+ "name": "_poolToken",
785
+ "type": "address"
786
+ },
787
+ {
788
+ "indexed": false,
789
+ "internalType": "uint16",
790
+ "name": "_newValue",
791
+ "type": "uint16"
792
+ }
793
+ ],
794
+ "name": "P2PIndexCursorSet",
795
+ "type": "event"
796
+ },
797
+ {
798
+ "anonymous": false,
799
+ "inputs": [
800
+ {
801
+ "indexed": true,
802
+ "internalType": "address",
803
+ "name": "_poolToken",
804
+ "type": "address"
805
+ },
806
+ {
807
+ "indexed": false,
808
+ "internalType": "bool",
809
+ "name": "_isP2PDisabled",
810
+ "type": "bool"
811
+ }
812
+ ],
813
+ "name": "P2PStatusSet",
814
+ "type": "event"
815
+ },
816
+ {
817
+ "anonymous": false,
818
+ "inputs": [
819
+ {
820
+ "indexed": true,
821
+ "internalType": "address",
822
+ "name": "_poolToken",
823
+ "type": "address"
824
+ },
825
+ {
826
+ "indexed": false,
827
+ "internalType": "bool",
828
+ "name": "_newStatus",
829
+ "type": "bool"
830
+ }
831
+ ],
832
+ "name": "PartialPauseStatusSet",
833
+ "type": "event"
834
+ },
835
+ {
836
+ "anonymous": false,
837
+ "inputs": [
838
+ {
839
+ "indexed": true,
840
+ "internalType": "address",
841
+ "name": "_poolToken",
842
+ "type": "address"
843
+ },
844
+ {
845
+ "indexed": false,
846
+ "internalType": "bool",
847
+ "name": "_newStatus",
848
+ "type": "bool"
849
+ }
850
+ ],
851
+ "name": "PauseStatusSet",
852
+ "type": "event"
853
+ },
854
+ {
855
+ "anonymous": false,
856
+ "inputs": [
857
+ {
858
+ "indexed": true,
859
+ "internalType": "address",
860
+ "name": "_poolToken",
861
+ "type": "address"
862
+ },
863
+ {
864
+ "indexed": false,
865
+ "internalType": "uint16",
866
+ "name": "_newValue",
867
+ "type": "uint16"
868
+ }
869
+ ],
870
+ "name": "ReserveFactorSet",
871
+ "type": "event"
872
+ },
873
+ {
874
+ "anonymous": false,
875
+ "inputs": [
876
+ {
877
+ "indexed": true,
878
+ "internalType": "address",
879
+ "name": "_poolToken",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "indexed": false,
884
+ "internalType": "uint256",
885
+ "name": "_amountClaimed",
886
+ "type": "uint256"
887
+ }
888
+ ],
889
+ "name": "ReserveFeeClaimed",
890
+ "type": "event"
891
+ },
892
+ {
893
+ "anonymous": false,
894
+ "inputs": [
895
+ {
896
+ "indexed": true,
897
+ "internalType": "address",
898
+ "name": "_user",
899
+ "type": "address"
900
+ },
901
+ {
902
+ "indexed": false,
903
+ "internalType": "uint256",
904
+ "name": "_amountClaimed",
905
+ "type": "uint256"
906
+ },
907
+ {
908
+ "indexed": true,
909
+ "internalType": "bool",
910
+ "name": "_traded",
911
+ "type": "bool"
912
+ }
913
+ ],
914
+ "name": "RewardsClaimed",
915
+ "type": "event"
916
+ },
917
+ {
918
+ "anonymous": false,
919
+ "inputs": [
920
+ {
921
+ "indexed": true,
922
+ "internalType": "address",
923
+ "name": "_newRewardsManagerAddress",
924
+ "type": "address"
925
+ }
926
+ ],
927
+ "name": "RewardsManagerSet",
928
+ "type": "event"
929
+ },
930
+ {
931
+ "anonymous": false,
932
+ "inputs": [
933
+ {
934
+ "indexed": true,
935
+ "internalType": "address",
936
+ "name": "_newTreasuryVaultAddress",
937
+ "type": "address"
938
+ }
939
+ ],
940
+ "name": "TreasuryVaultSet",
941
+ "type": "event"
942
+ },
943
+ {
944
+ "inputs": [],
945
+ "name": "BORROWING_MASK",
946
+ "outputs": [
947
+ {
948
+ "internalType": "bytes32",
949
+ "name": "",
950
+ "type": "bytes32"
951
+ }
952
+ ],
953
+ "stateMutability": "view",
954
+ "type": "function"
955
+ },
956
+ {
957
+ "inputs": [],
958
+ "name": "DEFAULT_LIQUIDATION_CLOSE_FACTOR",
959
+ "outputs": [
960
+ {
961
+ "internalType": "uint256",
962
+ "name": "",
963
+ "type": "uint256"
964
+ }
965
+ ],
966
+ "stateMutability": "view",
967
+ "type": "function"
968
+ },
969
+ {
970
+ "inputs": [],
971
+ "name": "HEALTH_FACTOR_LIQUIDATION_THRESHOLD",
972
+ "outputs": [
973
+ {
974
+ "internalType": "uint256",
975
+ "name": "",
976
+ "type": "uint256"
977
+ }
978
+ ],
979
+ "stateMutability": "view",
980
+ "type": "function"
981
+ },
982
+ {
983
+ "inputs": [],
984
+ "name": "MAX_BASIS_POINTS",
985
+ "outputs": [
986
+ {
987
+ "internalType": "uint16",
988
+ "name": "",
989
+ "type": "uint16"
990
+ }
991
+ ],
992
+ "stateMutability": "view",
993
+ "type": "function"
994
+ },
995
+ {
996
+ "inputs": [],
997
+ "name": "MAX_NB_OF_MARKETS",
998
+ "outputs": [
999
+ {
1000
+ "internalType": "uint256",
1001
+ "name": "",
1002
+ "type": "uint256"
1003
+ }
1004
+ ],
1005
+ "stateMutability": "view",
1006
+ "type": "function"
1007
+ },
1008
+ {
1009
+ "inputs": [],
1010
+ "name": "NO_REFERRAL_CODE",
1011
+ "outputs": [
1012
+ {
1013
+ "internalType": "uint8",
1014
+ "name": "",
1015
+ "type": "uint8"
1016
+ }
1017
+ ],
1018
+ "stateMutability": "view",
1019
+ "type": "function"
1020
+ },
1021
+ {
1022
+ "inputs": [],
1023
+ "name": "ONE",
1024
+ "outputs": [
1025
+ {
1026
+ "internalType": "bytes32",
1027
+ "name": "",
1028
+ "type": "bytes32"
1029
+ }
1030
+ ],
1031
+ "stateMutability": "view",
1032
+ "type": "function"
1033
+ },
1034
+ {
1035
+ "inputs": [],
1036
+ "name": "ST_ETH",
1037
+ "outputs": [
1038
+ {
1039
+ "internalType": "address",
1040
+ "name": "",
1041
+ "type": "address"
1042
+ }
1043
+ ],
1044
+ "stateMutability": "view",
1045
+ "type": "function"
1046
+ },
1047
+ {
1048
+ "inputs": [],
1049
+ "name": "ST_ETH_BASE_REBASE_INDEX",
1050
+ "outputs": [
1051
+ {
1052
+ "internalType": "uint256",
1053
+ "name": "",
1054
+ "type": "uint256"
1055
+ }
1056
+ ],
1057
+ "stateMutability": "view",
1058
+ "type": "function"
1059
+ },
1060
+ {
1061
+ "inputs": [],
1062
+ "name": "VARIABLE_INTEREST_MODE",
1063
+ "outputs": [
1064
+ {
1065
+ "internalType": "uint8",
1066
+ "name": "",
1067
+ "type": "uint8"
1068
+ }
1069
+ ],
1070
+ "stateMutability": "view",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [],
1075
+ "name": "aaveIncentivesController",
1076
+ "outputs": [
1077
+ {
1078
+ "internalType": "contract IAaveIncentivesController",
1079
+ "name": "",
1080
+ "type": "address"
1081
+ }
1082
+ ],
1083
+ "stateMutability": "view",
1084
+ "type": "function"
1085
+ },
1086
+ {
1087
+ "inputs": [],
1088
+ "name": "addressesProvider",
1089
+ "outputs": [
1090
+ {
1091
+ "internalType": "contract ILendingPoolAddressesProvider",
1092
+ "name": "",
1093
+ "type": "address"
1094
+ }
1095
+ ],
1096
+ "stateMutability": "view",
1097
+ "type": "function"
1098
+ },
1099
+ {
1100
+ "inputs": [
1101
+ {
1102
+ "internalType": "address",
1103
+ "name": "_poolToken",
1104
+ "type": "address"
1105
+ },
1106
+ {
1107
+ "internalType": "uint256",
1108
+ "name": "_amount",
1109
+ "type": "uint256"
1110
+ }
1111
+ ],
1112
+ "name": "borrow",
1113
+ "outputs": [],
1114
+ "stateMutability": "nonpayable",
1115
+ "type": "function"
1116
+ },
1117
+ {
1118
+ "inputs": [
1119
+ {
1120
+ "internalType": "address",
1121
+ "name": "_poolToken",
1122
+ "type": "address"
1123
+ },
1124
+ {
1125
+ "internalType": "uint256",
1126
+ "name": "_amount",
1127
+ "type": "uint256"
1128
+ },
1129
+ {
1130
+ "internalType": "uint256",
1131
+ "name": "_maxGasForMatching",
1132
+ "type": "uint256"
1133
+ }
1134
+ ],
1135
+ "name": "borrow",
1136
+ "outputs": [],
1137
+ "stateMutability": "nonpayable",
1138
+ "type": "function"
1139
+ },
1140
+ {
1141
+ "inputs": [
1142
+ {
1143
+ "internalType": "address",
1144
+ "name": "",
1145
+ "type": "address"
1146
+ },
1147
+ {
1148
+ "internalType": "address",
1149
+ "name": "",
1150
+ "type": "address"
1151
+ }
1152
+ ],
1153
+ "name": "borrowBalanceInOf",
1154
+ "outputs": [
1155
+ {
1156
+ "internalType": "uint256",
1157
+ "name": "inP2P",
1158
+ "type": "uint256"
1159
+ },
1160
+ {
1161
+ "internalType": "uint256",
1162
+ "name": "onPool",
1163
+ "type": "uint256"
1164
+ }
1165
+ ],
1166
+ "stateMutability": "view",
1167
+ "type": "function"
1168
+ },
1169
+ {
1170
+ "inputs": [
1171
+ {
1172
+ "internalType": "address",
1173
+ "name": "",
1174
+ "type": "address"
1175
+ }
1176
+ ],
1177
+ "name": "borrowMask",
1178
+ "outputs": [
1179
+ {
1180
+ "internalType": "bytes32",
1181
+ "name": "",
1182
+ "type": "bytes32"
1183
+ }
1184
+ ],
1185
+ "stateMutability": "view",
1186
+ "type": "function"
1187
+ },
1188
+ {
1189
+ "inputs": [
1190
+ {
1191
+ "internalType": "address[]",
1192
+ "name": "_assets",
1193
+ "type": "address[]"
1194
+ },
1195
+ {
1196
+ "internalType": "bool",
1197
+ "name": "_tradeForMorphoToken",
1198
+ "type": "bool"
1199
+ }
1200
+ ],
1201
+ "name": "claimRewards",
1202
+ "outputs": [
1203
+ {
1204
+ "internalType": "uint256",
1205
+ "name": "claimedAmount",
1206
+ "type": "uint256"
1207
+ }
1208
+ ],
1209
+ "stateMutability": "nonpayable",
1210
+ "type": "function"
1211
+ },
1212
+ {
1213
+ "inputs": [
1214
+ {
1215
+ "internalType": "address[]",
1216
+ "name": "_poolTokens",
1217
+ "type": "address[]"
1218
+ },
1219
+ {
1220
+ "internalType": "uint256[]",
1221
+ "name": "_amounts",
1222
+ "type": "uint256[]"
1223
+ }
1224
+ ],
1225
+ "name": "claimToTreasury",
1226
+ "outputs": [],
1227
+ "stateMutability": "nonpayable",
1228
+ "type": "function"
1229
+ },
1230
+ {
1231
+ "inputs": [
1232
+ {
1233
+ "internalType": "address",
1234
+ "name": "_underlyingToken",
1235
+ "type": "address"
1236
+ },
1237
+ {
1238
+ "internalType": "uint16",
1239
+ "name": "_reserveFactor",
1240
+ "type": "uint16"
1241
+ },
1242
+ {
1243
+ "internalType": "uint16",
1244
+ "name": "_p2pIndexCursor",
1245
+ "type": "uint16"
1246
+ }
1247
+ ],
1248
+ "name": "createMarket",
1249
+ "outputs": [],
1250
+ "stateMutability": "nonpayable",
1251
+ "type": "function"
1252
+ },
1253
+ {
1254
+ "inputs": [],
1255
+ "name": "defaultMaxGasForMatching",
1256
+ "outputs": [
1257
+ {
1258
+ "internalType": "uint64",
1259
+ "name": "supply",
1260
+ "type": "uint64"
1261
+ },
1262
+ {
1263
+ "internalType": "uint64",
1264
+ "name": "borrow",
1265
+ "type": "uint64"
1266
+ },
1267
+ {
1268
+ "internalType": "uint64",
1269
+ "name": "withdraw",
1270
+ "type": "uint64"
1271
+ },
1272
+ {
1273
+ "internalType": "uint64",
1274
+ "name": "repay",
1275
+ "type": "uint64"
1276
+ }
1277
+ ],
1278
+ "stateMutability": "view",
1279
+ "type": "function"
1280
+ },
1281
+ {
1282
+ "inputs": [
1283
+ {
1284
+ "internalType": "address",
1285
+ "name": "",
1286
+ "type": "address"
1287
+ }
1288
+ ],
1289
+ "name": "deltas",
1290
+ "outputs": [
1291
+ {
1292
+ "internalType": "uint256",
1293
+ "name": "p2pSupplyDelta",
1294
+ "type": "uint256"
1295
+ },
1296
+ {
1297
+ "internalType": "uint256",
1298
+ "name": "p2pBorrowDelta",
1299
+ "type": "uint256"
1300
+ },
1301
+ {
1302
+ "internalType": "uint256",
1303
+ "name": "p2pSupplyAmount",
1304
+ "type": "uint256"
1305
+ },
1306
+ {
1307
+ "internalType": "uint256",
1308
+ "name": "p2pBorrowAmount",
1309
+ "type": "uint256"
1310
+ }
1311
+ ],
1312
+ "stateMutability": "view",
1313
+ "type": "function"
1314
+ },
1315
+ {
1316
+ "inputs": [],
1317
+ "name": "entryPositionsManager",
1318
+ "outputs": [
1319
+ {
1320
+ "internalType": "contract IEntryPositionsManager",
1321
+ "name": "",
1322
+ "type": "address"
1323
+ }
1324
+ ],
1325
+ "stateMutability": "view",
1326
+ "type": "function"
1327
+ },
1328
+ {
1329
+ "inputs": [],
1330
+ "name": "exitPositionsManager",
1331
+ "outputs": [
1332
+ {
1333
+ "internalType": "contract IExitPositionsManager",
1334
+ "name": "",
1335
+ "type": "address"
1336
+ }
1337
+ ],
1338
+ "stateMutability": "view",
1339
+ "type": "function"
1340
+ },
1341
+ {
1342
+ "inputs": [
1343
+ {
1344
+ "internalType": "address",
1345
+ "name": "_poolToken",
1346
+ "type": "address"
1347
+ },
1348
+ {
1349
+ "internalType": "enum Types.PositionType",
1350
+ "name": "_positionType",
1351
+ "type": "uint8"
1352
+ }
1353
+ ],
1354
+ "name": "getHead",
1355
+ "outputs": [
1356
+ {
1357
+ "internalType": "address",
1358
+ "name": "head",
1359
+ "type": "address"
1360
+ }
1361
+ ],
1362
+ "stateMutability": "view",
1363
+ "type": "function"
1364
+ },
1365
+ {
1366
+ "inputs": [],
1367
+ "name": "getMarketsCreated",
1368
+ "outputs": [
1369
+ {
1370
+ "internalType": "address[]",
1371
+ "name": "",
1372
+ "type": "address[]"
1373
+ }
1374
+ ],
1375
+ "stateMutability": "view",
1376
+ "type": "function"
1377
+ },
1378
+ {
1379
+ "inputs": [
1380
+ {
1381
+ "internalType": "address",
1382
+ "name": "_poolToken",
1383
+ "type": "address"
1384
+ },
1385
+ {
1386
+ "internalType": "enum Types.PositionType",
1387
+ "name": "_positionType",
1388
+ "type": "uint8"
1389
+ },
1390
+ {
1391
+ "internalType": "address",
1392
+ "name": "_user",
1393
+ "type": "address"
1394
+ }
1395
+ ],
1396
+ "name": "getNext",
1397
+ "outputs": [
1398
+ {
1399
+ "internalType": "address",
1400
+ "name": "next",
1401
+ "type": "address"
1402
+ }
1403
+ ],
1404
+ "stateMutability": "view",
1405
+ "type": "function"
1406
+ },
1407
+ {
1408
+ "inputs": [],
1409
+ "name": "incentivesVault",
1410
+ "outputs": [
1411
+ {
1412
+ "internalType": "contract IIncentivesVault",
1413
+ "name": "",
1414
+ "type": "address"
1415
+ }
1416
+ ],
1417
+ "stateMutability": "view",
1418
+ "type": "function"
1419
+ },
1420
+ {
1421
+ "inputs": [
1422
+ {
1423
+ "internalType": "contract IEntryPositionsManager",
1424
+ "name": "_entryPositionsManager",
1425
+ "type": "address"
1426
+ },
1427
+ {
1428
+ "internalType": "contract IExitPositionsManager",
1429
+ "name": "_exitPositionsManager",
1430
+ "type": "address"
1431
+ },
1432
+ {
1433
+ "internalType": "contract IInterestRatesManager",
1434
+ "name": "_interestRatesManager",
1435
+ "type": "address"
1436
+ },
1437
+ {
1438
+ "internalType": "contract ILendingPoolAddressesProvider",
1439
+ "name": "_lendingPoolAddressesProvider",
1440
+ "type": "address"
1441
+ },
1442
+ {
1443
+ "components": [
1444
+ {
1445
+ "internalType": "uint64",
1446
+ "name": "supply",
1447
+ "type": "uint64"
1448
+ },
1449
+ {
1450
+ "internalType": "uint64",
1451
+ "name": "borrow",
1452
+ "type": "uint64"
1453
+ },
1454
+ {
1455
+ "internalType": "uint64",
1456
+ "name": "withdraw",
1457
+ "type": "uint64"
1458
+ },
1459
+ {
1460
+ "internalType": "uint64",
1461
+ "name": "repay",
1462
+ "type": "uint64"
1463
+ }
1464
+ ],
1465
+ "internalType": "struct Types.MaxGasForMatching",
1466
+ "name": "_defaultMaxGasForMatching",
1467
+ "type": "tuple"
1468
+ },
1469
+ {
1470
+ "internalType": "uint256",
1471
+ "name": "_maxSortedUsers",
1472
+ "type": "uint256"
1473
+ }
1474
+ ],
1475
+ "name": "initialize",
1476
+ "outputs": [],
1477
+ "stateMutability": "nonpayable",
1478
+ "type": "function"
1479
+ },
1480
+ {
1481
+ "inputs": [],
1482
+ "name": "interestRatesManager",
1483
+ "outputs": [
1484
+ {
1485
+ "internalType": "contract IInterestRatesManager",
1486
+ "name": "",
1487
+ "type": "address"
1488
+ }
1489
+ ],
1490
+ "stateMutability": "view",
1491
+ "type": "function"
1492
+ },
1493
+ {
1494
+ "inputs": [],
1495
+ "name": "isClaimRewardsPaused",
1496
+ "outputs": [
1497
+ {
1498
+ "internalType": "bool",
1499
+ "name": "",
1500
+ "type": "bool"
1501
+ }
1502
+ ],
1503
+ "stateMutability": "view",
1504
+ "type": "function"
1505
+ },
1506
+ {
1507
+ "inputs": [
1508
+ {
1509
+ "internalType": "address",
1510
+ "name": "_poolTokenBorrowed",
1511
+ "type": "address"
1512
+ },
1513
+ {
1514
+ "internalType": "address",
1515
+ "name": "_poolTokenCollateral",
1516
+ "type": "address"
1517
+ },
1518
+ {
1519
+ "internalType": "address",
1520
+ "name": "_borrower",
1521
+ "type": "address"
1522
+ },
1523
+ {
1524
+ "internalType": "uint256",
1525
+ "name": "_amount",
1526
+ "type": "uint256"
1527
+ }
1528
+ ],
1529
+ "name": "liquidate",
1530
+ "outputs": [],
1531
+ "stateMutability": "nonpayable",
1532
+ "type": "function"
1533
+ },
1534
+ {
1535
+ "inputs": [
1536
+ {
1537
+ "internalType": "address",
1538
+ "name": "",
1539
+ "type": "address"
1540
+ }
1541
+ ],
1542
+ "name": "market",
1543
+ "outputs": [
1544
+ {
1545
+ "internalType": "address",
1546
+ "name": "underlyingToken",
1547
+ "type": "address"
1548
+ },
1549
+ {
1550
+ "internalType": "uint16",
1551
+ "name": "reserveFactor",
1552
+ "type": "uint16"
1553
+ },
1554
+ {
1555
+ "internalType": "uint16",
1556
+ "name": "p2pIndexCursor",
1557
+ "type": "uint16"
1558
+ },
1559
+ {
1560
+ "internalType": "bool",
1561
+ "name": "isCreated",
1562
+ "type": "bool"
1563
+ },
1564
+ {
1565
+ "internalType": "bool",
1566
+ "name": "isPaused",
1567
+ "type": "bool"
1568
+ },
1569
+ {
1570
+ "internalType": "bool",
1571
+ "name": "isPartiallyPaused",
1572
+ "type": "bool"
1573
+ },
1574
+ {
1575
+ "internalType": "bool",
1576
+ "name": "isP2PDisabled",
1577
+ "type": "bool"
1578
+ }
1579
+ ],
1580
+ "stateMutability": "view",
1581
+ "type": "function"
1582
+ },
1583
+ {
1584
+ "inputs": [
1585
+ {
1586
+ "internalType": "address",
1587
+ "name": "",
1588
+ "type": "address"
1589
+ }
1590
+ ],
1591
+ "name": "marketPauseStatus",
1592
+ "outputs": [
1593
+ {
1594
+ "internalType": "bool",
1595
+ "name": "isSupplyPaused",
1596
+ "type": "bool"
1597
+ },
1598
+ {
1599
+ "internalType": "bool",
1600
+ "name": "isBorrowPaused",
1601
+ "type": "bool"
1602
+ },
1603
+ {
1604
+ "internalType": "bool",
1605
+ "name": "isWithdrawPaused",
1606
+ "type": "bool"
1607
+ },
1608
+ {
1609
+ "internalType": "bool",
1610
+ "name": "isRepayPaused",
1611
+ "type": "bool"
1612
+ },
1613
+ {
1614
+ "internalType": "bool",
1615
+ "name": "isLiquidateCollateralPaused",
1616
+ "type": "bool"
1617
+ },
1618
+ {
1619
+ "internalType": "bool",
1620
+ "name": "isLiquidateBorrowPaused",
1621
+ "type": "bool"
1622
+ },
1623
+ {
1624
+ "internalType": "bool",
1625
+ "name": "isDeprecated",
1626
+ "type": "bool"
1627
+ }
1628
+ ],
1629
+ "stateMutability": "view",
1630
+ "type": "function"
1631
+ },
1632
+ {
1633
+ "inputs": [],
1634
+ "name": "maxSortedUsers",
1635
+ "outputs": [
1636
+ {
1637
+ "internalType": "uint256",
1638
+ "name": "",
1639
+ "type": "uint256"
1640
+ }
1641
+ ],
1642
+ "stateMutability": "view",
1643
+ "type": "function"
1644
+ },
1645
+ {
1646
+ "inputs": [],
1647
+ "name": "owner",
1648
+ "outputs": [
1649
+ {
1650
+ "internalType": "address",
1651
+ "name": "",
1652
+ "type": "address"
1653
+ }
1654
+ ],
1655
+ "stateMutability": "view",
1656
+ "type": "function"
1657
+ },
1658
+ {
1659
+ "inputs": [
1660
+ {
1661
+ "internalType": "address",
1662
+ "name": "",
1663
+ "type": "address"
1664
+ }
1665
+ ],
1666
+ "name": "p2pBorrowIndex",
1667
+ "outputs": [
1668
+ {
1669
+ "internalType": "uint256",
1670
+ "name": "",
1671
+ "type": "uint256"
1672
+ }
1673
+ ],
1674
+ "stateMutability": "view",
1675
+ "type": "function"
1676
+ },
1677
+ {
1678
+ "inputs": [
1679
+ {
1680
+ "internalType": "address",
1681
+ "name": "",
1682
+ "type": "address"
1683
+ }
1684
+ ],
1685
+ "name": "p2pSupplyIndex",
1686
+ "outputs": [
1687
+ {
1688
+ "internalType": "uint256",
1689
+ "name": "",
1690
+ "type": "uint256"
1691
+ }
1692
+ ],
1693
+ "stateMutability": "view",
1694
+ "type": "function"
1695
+ },
1696
+ {
1697
+ "inputs": [],
1698
+ "name": "pool",
1699
+ "outputs": [
1700
+ {
1701
+ "internalType": "contract ILendingPool",
1702
+ "name": "",
1703
+ "type": "address"
1704
+ }
1705
+ ],
1706
+ "stateMutability": "view",
1707
+ "type": "function"
1708
+ },
1709
+ {
1710
+ "inputs": [
1711
+ {
1712
+ "internalType": "address",
1713
+ "name": "",
1714
+ "type": "address"
1715
+ }
1716
+ ],
1717
+ "name": "poolIndexes",
1718
+ "outputs": [
1719
+ {
1720
+ "internalType": "uint32",
1721
+ "name": "lastUpdateTimestamp",
1722
+ "type": "uint32"
1723
+ },
1724
+ {
1725
+ "internalType": "uint112",
1726
+ "name": "poolSupplyIndex",
1727
+ "type": "uint112"
1728
+ },
1729
+ {
1730
+ "internalType": "uint112",
1731
+ "name": "poolBorrowIndex",
1732
+ "type": "uint112"
1733
+ }
1734
+ ],
1735
+ "stateMutability": "view",
1736
+ "type": "function"
1737
+ },
1738
+ {
1739
+ "inputs": [],
1740
+ "name": "renounceOwnership",
1741
+ "outputs": [],
1742
+ "stateMutability": "nonpayable",
1743
+ "type": "function"
1744
+ },
1745
+ {
1746
+ "inputs": [
1747
+ {
1748
+ "internalType": "address",
1749
+ "name": "_poolToken",
1750
+ "type": "address"
1751
+ },
1752
+ {
1753
+ "internalType": "address",
1754
+ "name": "_onBehalf",
1755
+ "type": "address"
1756
+ },
1757
+ {
1758
+ "internalType": "uint256",
1759
+ "name": "_amount",
1760
+ "type": "uint256"
1761
+ }
1762
+ ],
1763
+ "name": "repay",
1764
+ "outputs": [],
1765
+ "stateMutability": "nonpayable",
1766
+ "type": "function"
1767
+ },
1768
+ {
1769
+ "inputs": [],
1770
+ "name": "rewardsManager",
1771
+ "outputs": [
1772
+ {
1773
+ "internalType": "contract IRewardsManager",
1774
+ "name": "",
1775
+ "type": "address"
1776
+ }
1777
+ ],
1778
+ "stateMutability": "view",
1779
+ "type": "function"
1780
+ },
1781
+ {
1782
+ "inputs": [
1783
+ {
1784
+ "internalType": "address",
1785
+ "name": "_aaveIncentivesController",
1786
+ "type": "address"
1787
+ }
1788
+ ],
1789
+ "name": "setAaveIncentivesController",
1790
+ "outputs": [],
1791
+ "stateMutability": "nonpayable",
1792
+ "type": "function"
1793
+ },
1794
+ {
1795
+ "inputs": [
1796
+ {
1797
+ "internalType": "address",
1798
+ "name": "_poolToken",
1799
+ "type": "address"
1800
+ },
1801
+ {
1802
+ "internalType": "bool",
1803
+ "name": "_newStatus",
1804
+ "type": "bool"
1805
+ }
1806
+ ],
1807
+ "name": "setAssetAsCollateral",
1808
+ "outputs": [],
1809
+ "stateMutability": "nonpayable",
1810
+ "type": "function"
1811
+ },
1812
+ {
1813
+ "inputs": [
1814
+ {
1815
+ "components": [
1816
+ {
1817
+ "internalType": "uint64",
1818
+ "name": "supply",
1819
+ "type": "uint64"
1820
+ },
1821
+ {
1822
+ "internalType": "uint64",
1823
+ "name": "borrow",
1824
+ "type": "uint64"
1825
+ },
1826
+ {
1827
+ "internalType": "uint64",
1828
+ "name": "withdraw",
1829
+ "type": "uint64"
1830
+ },
1831
+ {
1832
+ "internalType": "uint64",
1833
+ "name": "repay",
1834
+ "type": "uint64"
1835
+ }
1836
+ ],
1837
+ "internalType": "struct Types.MaxGasForMatching",
1838
+ "name": "_defaultMaxGasForMatching",
1839
+ "type": "tuple"
1840
+ }
1841
+ ],
1842
+ "name": "setDefaultMaxGasForMatching",
1843
+ "outputs": [],
1844
+ "stateMutability": "nonpayable",
1845
+ "type": "function"
1846
+ },
1847
+ {
1848
+ "inputs": [
1849
+ {
1850
+ "internalType": "contract IEntryPositionsManager",
1851
+ "name": "_entryPositionsManager",
1852
+ "type": "address"
1853
+ }
1854
+ ],
1855
+ "name": "setEntryPositionsManager",
1856
+ "outputs": [],
1857
+ "stateMutability": "nonpayable",
1858
+ "type": "function"
1859
+ },
1860
+ {
1861
+ "inputs": [
1862
+ {
1863
+ "internalType": "contract IExitPositionsManager",
1864
+ "name": "_exitPositionsManager",
1865
+ "type": "address"
1866
+ }
1867
+ ],
1868
+ "name": "setExitPositionsManager",
1869
+ "outputs": [],
1870
+ "stateMutability": "nonpayable",
1871
+ "type": "function"
1872
+ },
1873
+ {
1874
+ "inputs": [
1875
+ {
1876
+ "internalType": "contract IIncentivesVault",
1877
+ "name": "_incentivesVault",
1878
+ "type": "address"
1879
+ }
1880
+ ],
1881
+ "name": "setIncentivesVault",
1882
+ "outputs": [],
1883
+ "stateMutability": "nonpayable",
1884
+ "type": "function"
1885
+ },
1886
+ {
1887
+ "inputs": [
1888
+ {
1889
+ "internalType": "contract IInterestRatesManager",
1890
+ "name": "_interestRatesManager",
1891
+ "type": "address"
1892
+ }
1893
+ ],
1894
+ "name": "setInterestRatesManager",
1895
+ "outputs": [],
1896
+ "stateMutability": "nonpayable",
1897
+ "type": "function"
1898
+ },
1899
+ {
1900
+ "inputs": [
1901
+ {
1902
+ "internalType": "address",
1903
+ "name": "_poolToken",
1904
+ "type": "address"
1905
+ },
1906
+ {
1907
+ "internalType": "bool",
1908
+ "name": "_isPaused",
1909
+ "type": "bool"
1910
+ }
1911
+ ],
1912
+ "name": "setIsBorrowPaused",
1913
+ "outputs": [],
1914
+ "stateMutability": "nonpayable",
1915
+ "type": "function"
1916
+ },
1917
+ {
1918
+ "inputs": [
1919
+ {
1920
+ "internalType": "bool",
1921
+ "name": "_isPaused",
1922
+ "type": "bool"
1923
+ }
1924
+ ],
1925
+ "name": "setIsClaimRewardsPaused",
1926
+ "outputs": [],
1927
+ "stateMutability": "nonpayable",
1928
+ "type": "function"
1929
+ },
1930
+ {
1931
+ "inputs": [
1932
+ {
1933
+ "internalType": "address",
1934
+ "name": "_poolToken",
1935
+ "type": "address"
1936
+ },
1937
+ {
1938
+ "internalType": "bool",
1939
+ "name": "_isDeprecated",
1940
+ "type": "bool"
1941
+ }
1942
+ ],
1943
+ "name": "setIsDeprecated",
1944
+ "outputs": [],
1945
+ "stateMutability": "nonpayable",
1946
+ "type": "function"
1947
+ },
1948
+ {
1949
+ "inputs": [
1950
+ {
1951
+ "internalType": "address",
1952
+ "name": "_poolToken",
1953
+ "type": "address"
1954
+ },
1955
+ {
1956
+ "internalType": "bool",
1957
+ "name": "_isPaused",
1958
+ "type": "bool"
1959
+ }
1960
+ ],
1961
+ "name": "setIsLiquidateBorrowPaused",
1962
+ "outputs": [],
1963
+ "stateMutability": "nonpayable",
1964
+ "type": "function"
1965
+ },
1966
+ {
1967
+ "inputs": [
1968
+ {
1969
+ "internalType": "address",
1970
+ "name": "_poolToken",
1971
+ "type": "address"
1972
+ },
1973
+ {
1974
+ "internalType": "bool",
1975
+ "name": "_isPaused",
1976
+ "type": "bool"
1977
+ }
1978
+ ],
1979
+ "name": "setIsLiquidateCollateralPaused",
1980
+ "outputs": [],
1981
+ "stateMutability": "nonpayable",
1982
+ "type": "function"
1983
+ },
1984
+ {
1985
+ "inputs": [
1986
+ {
1987
+ "internalType": "address",
1988
+ "name": "_poolToken",
1989
+ "type": "address"
1990
+ },
1991
+ {
1992
+ "internalType": "bool",
1993
+ "name": "_isP2PDisabled",
1994
+ "type": "bool"
1995
+ }
1996
+ ],
1997
+ "name": "setIsP2PDisabled",
1998
+ "outputs": [],
1999
+ "stateMutability": "nonpayable",
2000
+ "type": "function"
2001
+ },
2002
+ {
2003
+ "inputs": [
2004
+ {
2005
+ "internalType": "bool",
2006
+ "name": "_isPaused",
2007
+ "type": "bool"
2008
+ }
2009
+ ],
2010
+ "name": "setIsPausedForAllMarkets",
2011
+ "outputs": [],
2012
+ "stateMutability": "nonpayable",
2013
+ "type": "function"
2014
+ },
2015
+ {
2016
+ "inputs": [
2017
+ {
2018
+ "internalType": "address",
2019
+ "name": "_poolToken",
2020
+ "type": "address"
2021
+ },
2022
+ {
2023
+ "internalType": "bool",
2024
+ "name": "_isPaused",
2025
+ "type": "bool"
2026
+ }
2027
+ ],
2028
+ "name": "setIsRepayPaused",
2029
+ "outputs": [],
2030
+ "stateMutability": "nonpayable",
2031
+ "type": "function"
2032
+ },
2033
+ {
2034
+ "inputs": [
2035
+ {
2036
+ "internalType": "address",
2037
+ "name": "_poolToken",
2038
+ "type": "address"
2039
+ },
2040
+ {
2041
+ "internalType": "bool",
2042
+ "name": "_isPaused",
2043
+ "type": "bool"
2044
+ }
2045
+ ],
2046
+ "name": "setIsSupplyPaused",
2047
+ "outputs": [],
2048
+ "stateMutability": "nonpayable",
2049
+ "type": "function"
2050
+ },
2051
+ {
2052
+ "inputs": [
2053
+ {
2054
+ "internalType": "address",
2055
+ "name": "_poolToken",
2056
+ "type": "address"
2057
+ },
2058
+ {
2059
+ "internalType": "bool",
2060
+ "name": "_isPaused",
2061
+ "type": "bool"
2062
+ }
2063
+ ],
2064
+ "name": "setIsWithdrawPaused",
2065
+ "outputs": [],
2066
+ "stateMutability": "nonpayable",
2067
+ "type": "function"
2068
+ },
2069
+ {
2070
+ "inputs": [
2071
+ {
2072
+ "internalType": "uint256",
2073
+ "name": "_newMaxSortedUsers",
2074
+ "type": "uint256"
2075
+ }
2076
+ ],
2077
+ "name": "setMaxSortedUsers",
2078
+ "outputs": [],
2079
+ "stateMutability": "nonpayable",
2080
+ "type": "function"
2081
+ },
2082
+ {
2083
+ "inputs": [
2084
+ {
2085
+ "internalType": "address",
2086
+ "name": "_poolToken",
2087
+ "type": "address"
2088
+ },
2089
+ {
2090
+ "internalType": "uint16",
2091
+ "name": "_p2pIndexCursor",
2092
+ "type": "uint16"
2093
+ }
2094
+ ],
2095
+ "name": "setP2PIndexCursor",
2096
+ "outputs": [],
2097
+ "stateMutability": "nonpayable",
2098
+ "type": "function"
2099
+ },
2100
+ {
2101
+ "inputs": [
2102
+ {
2103
+ "internalType": "address",
2104
+ "name": "_poolToken",
2105
+ "type": "address"
2106
+ },
2107
+ {
2108
+ "internalType": "uint16",
2109
+ "name": "_newReserveFactor",
2110
+ "type": "uint16"
2111
+ }
2112
+ ],
2113
+ "name": "setReserveFactor",
2114
+ "outputs": [],
2115
+ "stateMutability": "nonpayable",
2116
+ "type": "function"
2117
+ },
2118
+ {
2119
+ "inputs": [
2120
+ {
2121
+ "internalType": "contract IRewardsManager",
2122
+ "name": "_rewardsManager",
2123
+ "type": "address"
2124
+ }
2125
+ ],
2126
+ "name": "setRewardsManager",
2127
+ "outputs": [],
2128
+ "stateMutability": "nonpayable",
2129
+ "type": "function"
2130
+ },
2131
+ {
2132
+ "inputs": [
2133
+ {
2134
+ "internalType": "address",
2135
+ "name": "_treasuryVault",
2136
+ "type": "address"
2137
+ }
2138
+ ],
2139
+ "name": "setTreasuryVault",
2140
+ "outputs": [],
2141
+ "stateMutability": "nonpayable",
2142
+ "type": "function"
2143
+ },
2144
+ {
2145
+ "inputs": [
2146
+ {
2147
+ "internalType": "address",
2148
+ "name": "_poolToken",
2149
+ "type": "address"
2150
+ },
2151
+ {
2152
+ "internalType": "address",
2153
+ "name": "_onBehalf",
2154
+ "type": "address"
2155
+ },
2156
+ {
2157
+ "internalType": "uint256",
2158
+ "name": "_amount",
2159
+ "type": "uint256"
2160
+ }
2161
+ ],
2162
+ "name": "supply",
2163
+ "outputs": [],
2164
+ "stateMutability": "nonpayable",
2165
+ "type": "function"
2166
+ },
2167
+ {
2168
+ "inputs": [
2169
+ {
2170
+ "internalType": "address",
2171
+ "name": "_poolToken",
2172
+ "type": "address"
2173
+ },
2174
+ {
2175
+ "internalType": "address",
2176
+ "name": "_onBehalf",
2177
+ "type": "address"
2178
+ },
2179
+ {
2180
+ "internalType": "uint256",
2181
+ "name": "_amount",
2182
+ "type": "uint256"
2183
+ },
2184
+ {
2185
+ "internalType": "uint256",
2186
+ "name": "_maxGasForMatching",
2187
+ "type": "uint256"
2188
+ }
2189
+ ],
2190
+ "name": "supply",
2191
+ "outputs": [],
2192
+ "stateMutability": "nonpayable",
2193
+ "type": "function"
2194
+ },
2195
+ {
2196
+ "inputs": [
2197
+ {
2198
+ "internalType": "address",
2199
+ "name": "",
2200
+ "type": "address"
2201
+ },
2202
+ {
2203
+ "internalType": "address",
2204
+ "name": "",
2205
+ "type": "address"
2206
+ }
2207
+ ],
2208
+ "name": "supplyBalanceInOf",
2209
+ "outputs": [
2210
+ {
2211
+ "internalType": "uint256",
2212
+ "name": "inP2P",
2213
+ "type": "uint256"
2214
+ },
2215
+ {
2216
+ "internalType": "uint256",
2217
+ "name": "onPool",
2218
+ "type": "uint256"
2219
+ }
2220
+ ],
2221
+ "stateMutability": "view",
2222
+ "type": "function"
2223
+ },
2224
+ {
2225
+ "inputs": [
2226
+ {
2227
+ "internalType": "address",
2228
+ "name": "newOwner",
2229
+ "type": "address"
2230
+ }
2231
+ ],
2232
+ "name": "transferOwnership",
2233
+ "outputs": [],
2234
+ "stateMutability": "nonpayable",
2235
+ "type": "function"
2236
+ },
2237
+ {
2238
+ "inputs": [],
2239
+ "name": "treasuryVault",
2240
+ "outputs": [
2241
+ {
2242
+ "internalType": "address",
2243
+ "name": "",
2244
+ "type": "address"
2245
+ }
2246
+ ],
2247
+ "stateMutability": "view",
2248
+ "type": "function"
2249
+ },
2250
+ {
2251
+ "inputs": [
2252
+ {
2253
+ "internalType": "address",
2254
+ "name": "_poolToken",
2255
+ "type": "address"
2256
+ }
2257
+ ],
2258
+ "name": "updateIndexes",
2259
+ "outputs": [],
2260
+ "stateMutability": "nonpayable",
2261
+ "type": "function"
2262
+ },
2263
+ {
2264
+ "inputs": [
2265
+ {
2266
+ "internalType": "address",
2267
+ "name": "",
2268
+ "type": "address"
2269
+ }
2270
+ ],
2271
+ "name": "userMarkets",
2272
+ "outputs": [
2273
+ {
2274
+ "internalType": "bytes32",
2275
+ "name": "",
2276
+ "type": "bytes32"
2277
+ }
2278
+ ],
2279
+ "stateMutability": "view",
2280
+ "type": "function"
2281
+ },
2282
+ {
2283
+ "inputs": [
2284
+ {
2285
+ "internalType": "address",
2286
+ "name": "_poolToken",
2287
+ "type": "address"
2288
+ },
2289
+ {
2290
+ "internalType": "uint256",
2291
+ "name": "_amount",
2292
+ "type": "uint256"
2293
+ }
2294
+ ],
2295
+ "name": "withdraw",
2296
+ "outputs": [],
2297
+ "stateMutability": "nonpayable",
2298
+ "type": "function"
2299
+ }
2300
+ ]
2301
+ ''')