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