defi-state-querier 0.5.26__py3-none-any.whl → 0.5.28__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. defi_services/__init__.py +1 -1
  2. defi_services/constants/chain_constant.py +1 -8
  3. defi_services/constants/entities/dex_info_constant.py +2 -2
  4. defi_services/constants/entities/dex_services.py +1 -13
  5. defi_services/constants/entities/lending_constant.py +5 -11
  6. defi_services/constants/entities/lending_services.py +4 -31
  7. defi_services/constants/entities/vault_constant.py +2 -2
  8. defi_services/constants/entities/vault_services.py +1 -7
  9. defi_services/constants/network_constants.py +361 -20
  10. defi_services/constants/token_constant.py +1 -3
  11. defi_services/jobs/processors/cosmos_state_processor.py +2 -3
  12. defi_services/jobs/processors/ton_state_processor.py +4 -5
  13. defi_services/jobs/queriers/call_state_querier.py +0 -2
  14. defi_services/jobs/queriers/state_querier.py +0 -3
  15. defi_services/services/dex/dex_info/uniswap_info.py +1 -29
  16. defi_services/services/dex/uniswap_v3_service.py +2 -6
  17. defi_services/services/lending/aave_v2_services.py +29 -44
  18. defi_services/services/lending/aave_v3_services.py +20 -41
  19. defi_services/services/lending/compound_v3_services.py +3 -7
  20. defi_services/services/lending/granary_services.py +4 -6
  21. defi_services/services/lending/justlend_service.py +3 -4
  22. defi_services/services/lending/lending_info/arbitrum/aave_v3_arbitrum.py +1 -1
  23. defi_services/services/lending/lending_info/arbitrum/compound_v3_arbitrum.py +6 -96
  24. defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py +140 -1
  25. defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py +5 -180
  26. defi_services/services/lending/lending_info/polygon/compound_v3_polygon.py +5 -35
  27. defi_services/services/lending/morpho_aave_v2_services.py +3 -3
  28. defi_services/services/lending/morpho_aave_v3_services.py +2 -2
  29. defi_services/services/lending/radiant_v2_services.py +10 -52
  30. defi_services/services/lending/trava_services.py +2 -2
  31. defi_services/services/lending/uwu_services.py +3 -3
  32. defi_services/services/lending/valas_services.py +2 -2
  33. defi_services/services/lending/venus_services.py +3 -9
  34. defi_services/services/multicall/multicall_v2.py +317 -0
  35. {defi_state_querier-0.5.26.dist-info → defi_state_querier-0.5.28.dist-info}/METADATA +3 -2
  36. {defi_state_querier-0.5.26.dist-info → defi_state_querier-0.5.28.dist-info}/RECORD +46 -83
  37. {defi_state_querier-0.5.26.dist-info → defi_state_querier-0.5.28.dist-info}/WHEEL +1 -1
  38. defi_services/abis/lending/ionic/__init__.py +0 -0
  39. defi_services/abis/lending/ionic/ionic_ctoken_abi.py +0 -1108
  40. defi_services/abis/lending/moonwell/__init__.py +0 -0
  41. defi_services/abis/lending/moonwell/moonwell_comptroller_abi.py +0 -1500
  42. defi_services/abis/lending/moonwell/moonwell_ctoken_abi.py +0 -1431
  43. defi_services/abis/lending/radiant_v2/radiant_reward_converter.py +0 -817
  44. defi_services/abis/token/trc20_abi.py +0 -304
  45. defi_services/abis/vault/tcv_abi.py +0 -1523
  46. defi_services/jobs/tcv.py +0 -144
  47. defi_services/services/lending/ionic_service.py +0 -167
  48. defi_services/services/lending/lending_info/arbitrum/venus_arbitrum.py +0 -10
  49. defi_services/services/lending/lending_info/base/__init__.py +0 -0
  50. defi_services/services/lending/lending_info/base/aave_v3_base.py +0 -61
  51. defi_services/services/lending/lending_info/base/compound_v3_base.py +0 -116
  52. defi_services/services/lending/lending_info/base/granary_base.py +0 -62
  53. defi_services/services/lending/lending_info/base/ionic_base.py +0 -173
  54. defi_services/services/lending/lending_info/base/moonwell_base.py +0 -89
  55. defi_services/services/lending/lending_info/base/radiant_v2_base.py +0 -57
  56. defi_services/services/lending/lending_info/base/sonne_base.py +0 -53
  57. defi_services/services/lending/lending_info/base/zerolend_base.py +0 -109
  58. defi_services/services/lending/lending_info/bsc/aave_v3_bsc.py +0 -68
  59. defi_services/services/lending/lending_info/ethereum/old_aave_v3_eth.py +0 -150
  60. defi_services/services/lending/lending_info/ethereum/radiant_eth.py +0 -69
  61. defi_services/services/lending/lending_info/ethereum/venus_eth.py +0 -10
  62. defi_services/services/lending/lending_info/ethereum/zerolend_eth.py +0 -96
  63. defi_services/services/lending/lending_info/optimism/compound_v3_optimism.py +0 -116
  64. defi_services/services/lending/lending_info/optimism/moonwell_optimism.py +0 -9
  65. defi_services/services/lending/lending_info/zksync/__init__.py +0 -0
  66. defi_services/services/lending/lending_info/zksync/aave_v3_zksync.py +0 -47
  67. defi_services/services/lending/lending_info/zksync/venus_zksync.py +0 -10
  68. defi_services/services/lending/lending_info/zksync/zerolend_zksync.py +0 -138
  69. defi_services/services/lending/moonwell_service.py +0 -120
  70. defi_services/services/lending/sonne_service.py +0 -64
  71. defi_services/services/lending/zerolend_services.py +0 -36
  72. defi_services/services/vault/tcv_vault_services.py +0 -108
  73. defi_services/services/vault/vault_info/arbitrum/__init__.py +0 -0
  74. defi_services/services/vault/vault_info/arbitrum/tcv_arb.py +0 -58
  75. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/__init__.py +0 -0
  76. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/aave_v2_event_abi.py +0 -0
  77. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/aave_v2_incentives_abi.py +0 -0
  78. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/lending_pool_abi.py +0 -0
  79. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/oracle_abi.py +0 -0
  80. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/staked_incentives_abi.py +0 -0
  81. /defi_services/abis/lending/{aave_v2_and_forks → aave_v2_and_forlks}/uwu_incentives_abi.py +0 -0
  82. {defi_state_querier-0.5.26.dist-info → defi_state_querier-0.5.28.dist-info/licenses}/LICENSE +0 -0
  83. {defi_state_querier-0.5.26.dist-info → defi_state_querier-0.5.28.dist-info}/top_level.txt +0 -0
@@ -1,1431 +0,0 @@
1
- MOONWELL_CTOKEN_ABI = [
2
- {
3
- "inputs": [],
4
- "stateMutability": "nonpayable",
5
- "type": "constructor"
6
- },
7
- {
8
- "anonymous": False,
9
- "inputs": [
10
- {
11
- "indexed": False,
12
- "internalType": "uint256",
13
- "name": "cashPrior",
14
- "type": "uint256"
15
- },
16
- {
17
- "indexed": False,
18
- "internalType": "uint256",
19
- "name": "interestAccumulated",
20
- "type": "uint256"
21
- },
22
- {
23
- "indexed": False,
24
- "internalType": "uint256",
25
- "name": "borrowIndex",
26
- "type": "uint256"
27
- },
28
- {
29
- "indexed": False,
30
- "internalType": "uint256",
31
- "name": "totalBorrows",
32
- "type": "uint256"
33
- }
34
- ],
35
- "name": "AccrueInterest",
36
- "type": "event"
37
- },
38
- {
39
- "anonymous": False,
40
- "inputs": [
41
- {
42
- "indexed": True,
43
- "internalType": "address",
44
- "name": "owner",
45
- "type": "address"
46
- },
47
- {
48
- "indexed": True,
49
- "internalType": "address",
50
- "name": "spender",
51
- "type": "address"
52
- },
53
- {
54
- "indexed": False,
55
- "internalType": "uint256",
56
- "name": "amount",
57
- "type": "uint256"
58
- }
59
- ],
60
- "name": "Approval",
61
- "type": "event"
62
- },
63
- {
64
- "anonymous": False,
65
- "inputs": [
66
- {
67
- "indexed": False,
68
- "internalType": "address",
69
- "name": "borrower",
70
- "type": "address"
71
- },
72
- {
73
- "indexed": False,
74
- "internalType": "uint256",
75
- "name": "borrowAmount",
76
- "type": "uint256"
77
- },
78
- {
79
- "indexed": False,
80
- "internalType": "uint256",
81
- "name": "accountBorrows",
82
- "type": "uint256"
83
- },
84
- {
85
- "indexed": False,
86
- "internalType": "uint256",
87
- "name": "totalBorrows",
88
- "type": "uint256"
89
- }
90
- ],
91
- "name": "Borrow",
92
- "type": "event"
93
- },
94
- {
95
- "anonymous": False,
96
- "inputs": [
97
- {
98
- "indexed": False,
99
- "internalType": "uint256",
100
- "name": "error",
101
- "type": "uint256"
102
- },
103
- {
104
- "indexed": False,
105
- "internalType": "uint256",
106
- "name": "info",
107
- "type": "uint256"
108
- },
109
- {
110
- "indexed": False,
111
- "internalType": "uint256",
112
- "name": "detail",
113
- "type": "uint256"
114
- }
115
- ],
116
- "name": "Failure",
117
- "type": "event"
118
- },
119
- {
120
- "anonymous": False,
121
- "inputs": [
122
- {
123
- "indexed": False,
124
- "internalType": "address",
125
- "name": "liquidator",
126
- "type": "address"
127
- },
128
- {
129
- "indexed": False,
130
- "internalType": "address",
131
- "name": "borrower",
132
- "type": "address"
133
- },
134
- {
135
- "indexed": False,
136
- "internalType": "uint256",
137
- "name": "repayAmount",
138
- "type": "uint256"
139
- },
140
- {
141
- "indexed": False,
142
- "internalType": "address",
143
- "name": "mTokenCollateral",
144
- "type": "address"
145
- },
146
- {
147
- "indexed": False,
148
- "internalType": "uint256",
149
- "name": "seizeTokens",
150
- "type": "uint256"
151
- }
152
- ],
153
- "name": "LiquidateBorrow",
154
- "type": "event"
155
- },
156
- {
157
- "anonymous": False,
158
- "inputs": [
159
- {
160
- "indexed": False,
161
- "internalType": "address",
162
- "name": "minter",
163
- "type": "address"
164
- },
165
- {
166
- "indexed": False,
167
- "internalType": "uint256",
168
- "name": "mintAmount",
169
- "type": "uint256"
170
- },
171
- {
172
- "indexed": False,
173
- "internalType": "uint256",
174
- "name": "mintTokens",
175
- "type": "uint256"
176
- }
177
- ],
178
- "name": "Mint",
179
- "type": "event"
180
- },
181
- {
182
- "anonymous": False,
183
- "inputs": [
184
- {
185
- "indexed": False,
186
- "internalType": "address",
187
- "name": "oldAdmin",
188
- "type": "address"
189
- },
190
- {
191
- "indexed": False,
192
- "internalType": "address",
193
- "name": "newAdmin",
194
- "type": "address"
195
- }
196
- ],
197
- "name": "NewAdmin",
198
- "type": "event"
199
- },
200
- {
201
- "anonymous": False,
202
- "inputs": [
203
- {
204
- "indexed": False,
205
- "internalType": "contract ComptrollerInterface",
206
- "name": "oldComptroller",
207
- "type": "address"
208
- },
209
- {
210
- "indexed": False,
211
- "internalType": "contract ComptrollerInterface",
212
- "name": "newComptroller",
213
- "type": "address"
214
- }
215
- ],
216
- "name": "NewComptroller",
217
- "type": "event"
218
- },
219
- {
220
- "anonymous": False,
221
- "inputs": [
222
- {
223
- "indexed": False,
224
- "internalType": "contract InterestRateModel",
225
- "name": "oldInterestRateModel",
226
- "type": "address"
227
- },
228
- {
229
- "indexed": False,
230
- "internalType": "contract InterestRateModel",
231
- "name": "newInterestRateModel",
232
- "type": "address"
233
- }
234
- ],
235
- "name": "NewMarketInterestRateModel",
236
- "type": "event"
237
- },
238
- {
239
- "anonymous": False,
240
- "inputs": [
241
- {
242
- "indexed": False,
243
- "internalType": "address",
244
- "name": "oldPendingAdmin",
245
- "type": "address"
246
- },
247
- {
248
- "indexed": False,
249
- "internalType": "address",
250
- "name": "newPendingAdmin",
251
- "type": "address"
252
- }
253
- ],
254
- "name": "NewPendingAdmin",
255
- "type": "event"
256
- },
257
- {
258
- "anonymous": False,
259
- "inputs": [
260
- {
261
- "indexed": False,
262
- "internalType": "uint256",
263
- "name": "oldProtocolSeizeShareMantissa",
264
- "type": "uint256"
265
- },
266
- {
267
- "indexed": False,
268
- "internalType": "uint256",
269
- "name": "newProtocolSeizeShareMantissa",
270
- "type": "uint256"
271
- }
272
- ],
273
- "name": "NewProtocolSeizeShare",
274
- "type": "event"
275
- },
276
- {
277
- "anonymous": False,
278
- "inputs": [
279
- {
280
- "indexed": False,
281
- "internalType": "uint256",
282
- "name": "oldReserveFactorMantissa",
283
- "type": "uint256"
284
- },
285
- {
286
- "indexed": False,
287
- "internalType": "uint256",
288
- "name": "newReserveFactorMantissa",
289
- "type": "uint256"
290
- }
291
- ],
292
- "name": "NewReserveFactor",
293
- "type": "event"
294
- },
295
- {
296
- "anonymous": False,
297
- "inputs": [
298
- {
299
- "indexed": False,
300
- "internalType": "address",
301
- "name": "redeemer",
302
- "type": "address"
303
- },
304
- {
305
- "indexed": False,
306
- "internalType": "uint256",
307
- "name": "redeemAmount",
308
- "type": "uint256"
309
- },
310
- {
311
- "indexed": False,
312
- "internalType": "uint256",
313
- "name": "redeemTokens",
314
- "type": "uint256"
315
- }
316
- ],
317
- "name": "Redeem",
318
- "type": "event"
319
- },
320
- {
321
- "anonymous": False,
322
- "inputs": [
323
- {
324
- "indexed": False,
325
- "internalType": "address",
326
- "name": "payer",
327
- "type": "address"
328
- },
329
- {
330
- "indexed": False,
331
- "internalType": "address",
332
- "name": "borrower",
333
- "type": "address"
334
- },
335
- {
336
- "indexed": False,
337
- "internalType": "uint256",
338
- "name": "repayAmount",
339
- "type": "uint256"
340
- },
341
- {
342
- "indexed": False,
343
- "internalType": "uint256",
344
- "name": "accountBorrows",
345
- "type": "uint256"
346
- },
347
- {
348
- "indexed": False,
349
- "internalType": "uint256",
350
- "name": "totalBorrows",
351
- "type": "uint256"
352
- }
353
- ],
354
- "name": "RepayBorrow",
355
- "type": "event"
356
- },
357
- {
358
- "anonymous": False,
359
- "inputs": [
360
- {
361
- "indexed": False,
362
- "internalType": "address",
363
- "name": "benefactor",
364
- "type": "address"
365
- },
366
- {
367
- "indexed": False,
368
- "internalType": "uint256",
369
- "name": "addAmount",
370
- "type": "uint256"
371
- },
372
- {
373
- "indexed": False,
374
- "internalType": "uint256",
375
- "name": "newTotalReserves",
376
- "type": "uint256"
377
- }
378
- ],
379
- "name": "ReservesAdded",
380
- "type": "event"
381
- },
382
- {
383
- "anonymous": False,
384
- "inputs": [
385
- {
386
- "indexed": False,
387
- "internalType": "address",
388
- "name": "admin",
389
- "type": "address"
390
- },
391
- {
392
- "indexed": False,
393
- "internalType": "uint256",
394
- "name": "reduceAmount",
395
- "type": "uint256"
396
- },
397
- {
398
- "indexed": False,
399
- "internalType": "uint256",
400
- "name": "newTotalReserves",
401
- "type": "uint256"
402
- }
403
- ],
404
- "name": "ReservesReduced",
405
- "type": "event"
406
- },
407
- {
408
- "anonymous": False,
409
- "inputs": [
410
- {
411
- "indexed": True,
412
- "internalType": "address",
413
- "name": "from",
414
- "type": "address"
415
- },
416
- {
417
- "indexed": True,
418
- "internalType": "address",
419
- "name": "to",
420
- "type": "address"
421
- },
422
- {
423
- "indexed": False,
424
- "internalType": "uint256",
425
- "name": "amount",
426
- "type": "uint256"
427
- }
428
- ],
429
- "name": "Transfer",
430
- "type": "event"
431
- },
432
- {
433
- "inputs": [],
434
- "name": "_acceptAdmin",
435
- "outputs": [
436
- {
437
- "internalType": "uint256",
438
- "name": "",
439
- "type": "uint256"
440
- }
441
- ],
442
- "stateMutability": "nonpayable",
443
- "type": "function"
444
- },
445
- {
446
- "inputs": [
447
- {
448
- "internalType": "uint256",
449
- "name": "addAmount",
450
- "type": "uint256"
451
- }
452
- ],
453
- "name": "_addReserves",
454
- "outputs": [
455
- {
456
- "internalType": "uint256",
457
- "name": "",
458
- "type": "uint256"
459
- }
460
- ],
461
- "stateMutability": "nonpayable",
462
- "type": "function"
463
- },
464
- {
465
- "inputs": [
466
- {
467
- "internalType": "bytes",
468
- "name": "data",
469
- "type": "bytes"
470
- }
471
- ],
472
- "name": "_becomeImplementation",
473
- "outputs": [],
474
- "stateMutability": "nonpayable",
475
- "type": "function"
476
- },
477
- {
478
- "inputs": [
479
- {
480
- "internalType": "uint256",
481
- "name": "reduceAmount",
482
- "type": "uint256"
483
- }
484
- ],
485
- "name": "_reduceReserves",
486
- "outputs": [
487
- {
488
- "internalType": "uint256",
489
- "name": "",
490
- "type": "uint256"
491
- }
492
- ],
493
- "stateMutability": "nonpayable",
494
- "type": "function"
495
- },
496
- {
497
- "inputs": [],
498
- "name": "_resignImplementation",
499
- "outputs": [],
500
- "stateMutability": "nonpayable",
501
- "type": "function"
502
- },
503
- {
504
- "inputs": [
505
- {
506
- "internalType": "contract ComptrollerInterface",
507
- "name": "newComptroller",
508
- "type": "address"
509
- }
510
- ],
511
- "name": "_setComptroller",
512
- "outputs": [
513
- {
514
- "internalType": "uint256",
515
- "name": "",
516
- "type": "uint256"
517
- }
518
- ],
519
- "stateMutability": "nonpayable",
520
- "type": "function"
521
- },
522
- {
523
- "inputs": [
524
- {
525
- "internalType": "contract InterestRateModel",
526
- "name": "newInterestRateModel",
527
- "type": "address"
528
- }
529
- ],
530
- "name": "_setInterestRateModel",
531
- "outputs": [
532
- {
533
- "internalType": "uint256",
534
- "name": "",
535
- "type": "uint256"
536
- }
537
- ],
538
- "stateMutability": "nonpayable",
539
- "type": "function"
540
- },
541
- {
542
- "inputs": [
543
- {
544
- "internalType": "address payable",
545
- "name": "newPendingAdmin",
546
- "type": "address"
547
- }
548
- ],
549
- "name": "_setPendingAdmin",
550
- "outputs": [
551
- {
552
- "internalType": "uint256",
553
- "name": "",
554
- "type": "uint256"
555
- }
556
- ],
557
- "stateMutability": "nonpayable",
558
- "type": "function"
559
- },
560
- {
561
- "inputs": [
562
- {
563
- "internalType": "uint256",
564
- "name": "newProtocolSeizeShareMantissa",
565
- "type": "uint256"
566
- }
567
- ],
568
- "name": "_setProtocolSeizeShare",
569
- "outputs": [
570
- {
571
- "internalType": "uint256",
572
- "name": "",
573
- "type": "uint256"
574
- }
575
- ],
576
- "stateMutability": "nonpayable",
577
- "type": "function"
578
- },
579
- {
580
- "inputs": [
581
- {
582
- "internalType": "uint256",
583
- "name": "newReserveFactorMantissa",
584
- "type": "uint256"
585
- }
586
- ],
587
- "name": "_setReserveFactor",
588
- "outputs": [
589
- {
590
- "internalType": "uint256",
591
- "name": "",
592
- "type": "uint256"
593
- }
594
- ],
595
- "stateMutability": "nonpayable",
596
- "type": "function"
597
- },
598
- {
599
- "inputs": [],
600
- "name": "accrualBlockTimestamp",
601
- "outputs": [
602
- {
603
- "internalType": "uint256",
604
- "name": "",
605
- "type": "uint256"
606
- }
607
- ],
608
- "stateMutability": "view",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [],
613
- "name": "accrueInterest",
614
- "outputs": [
615
- {
616
- "internalType": "uint256",
617
- "name": "",
618
- "type": "uint256"
619
- }
620
- ],
621
- "stateMutability": "nonpayable",
622
- "type": "function"
623
- },
624
- {
625
- "inputs": [],
626
- "name": "admin",
627
- "outputs": [
628
- {
629
- "internalType": "address payable",
630
- "name": "",
631
- "type": "address"
632
- }
633
- ],
634
- "stateMutability": "view",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [
639
- {
640
- "internalType": "address",
641
- "name": "owner",
642
- "type": "address"
643
- },
644
- {
645
- "internalType": "address",
646
- "name": "spender",
647
- "type": "address"
648
- }
649
- ],
650
- "name": "allowance",
651
- "outputs": [
652
- {
653
- "internalType": "uint256",
654
- "name": "",
655
- "type": "uint256"
656
- }
657
- ],
658
- "stateMutability": "view",
659
- "type": "function"
660
- },
661
- {
662
- "inputs": [
663
- {
664
- "internalType": "address",
665
- "name": "spender",
666
- "type": "address"
667
- },
668
- {
669
- "internalType": "uint256",
670
- "name": "amount",
671
- "type": "uint256"
672
- }
673
- ],
674
- "name": "approve",
675
- "outputs": [
676
- {
677
- "internalType": "bool",
678
- "name": "",
679
- "type": "bool"
680
- }
681
- ],
682
- "stateMutability": "nonpayable",
683
- "type": "function"
684
- },
685
- {
686
- "inputs": [
687
- {
688
- "internalType": "address",
689
- "name": "owner",
690
- "type": "address"
691
- }
692
- ],
693
- "name": "balanceOf",
694
- "outputs": [
695
- {
696
- "internalType": "uint256",
697
- "name": "",
698
- "type": "uint256"
699
- }
700
- ],
701
- "stateMutability": "view",
702
- "type": "function"
703
- },
704
- {
705
- "inputs": [
706
- {
707
- "internalType": "address",
708
- "name": "owner",
709
- "type": "address"
710
- }
711
- ],
712
- "name": "balanceOfUnderlying",
713
- "outputs": [
714
- {
715
- "internalType": "uint256",
716
- "name": "",
717
- "type": "uint256"
718
- }
719
- ],
720
- "stateMutability": "nonpayable",
721
- "type": "function"
722
- },
723
- {
724
- "inputs": [
725
- {
726
- "internalType": "uint256",
727
- "name": "borrowAmount",
728
- "type": "uint256"
729
- }
730
- ],
731
- "name": "borrow",
732
- "outputs": [
733
- {
734
- "internalType": "uint256",
735
- "name": "",
736
- "type": "uint256"
737
- }
738
- ],
739
- "stateMutability": "nonpayable",
740
- "type": "function"
741
- },
742
- {
743
- "inputs": [
744
- {
745
- "internalType": "address",
746
- "name": "account",
747
- "type": "address"
748
- }
749
- ],
750
- "name": "borrowBalanceCurrent",
751
- "outputs": [
752
- {
753
- "internalType": "uint256",
754
- "name": "",
755
- "type": "uint256"
756
- }
757
- ],
758
- "stateMutability": "nonpayable",
759
- "type": "function"
760
- },
761
- {
762
- "inputs": [
763
- {
764
- "internalType": "address",
765
- "name": "account",
766
- "type": "address"
767
- }
768
- ],
769
- "name": "borrowBalanceStored",
770
- "outputs": [
771
- {
772
- "internalType": "uint256",
773
- "name": "",
774
- "type": "uint256"
775
- }
776
- ],
777
- "stateMutability": "view",
778
- "type": "function"
779
- },
780
- {
781
- "inputs": [],
782
- "name": "borrowIndex",
783
- "outputs": [
784
- {
785
- "internalType": "uint256",
786
- "name": "",
787
- "type": "uint256"
788
- }
789
- ],
790
- "stateMutability": "view",
791
- "type": "function"
792
- },
793
- {
794
- "inputs": [],
795
- "name": "borrowRatePerTimestamp",
796
- "outputs": [
797
- {
798
- "internalType": "uint256",
799
- "name": "",
800
- "type": "uint256"
801
- }
802
- ],
803
- "stateMutability": "view",
804
- "type": "function"
805
- },
806
- {
807
- "inputs": [],
808
- "name": "comptroller",
809
- "outputs": [
810
- {
811
- "internalType": "contract ComptrollerInterface",
812
- "name": "",
813
- "type": "address"
814
- }
815
- ],
816
- "stateMutability": "view",
817
- "type": "function"
818
- },
819
- {
820
- "inputs": [],
821
- "name": "decimals",
822
- "outputs": [
823
- {
824
- "internalType": "uint8",
825
- "name": "",
826
- "type": "uint8"
827
- }
828
- ],
829
- "stateMutability": "view",
830
- "type": "function"
831
- },
832
- {
833
- "inputs": [],
834
- "name": "exchangeRateCurrent",
835
- "outputs": [
836
- {
837
- "internalType": "uint256",
838
- "name": "",
839
- "type": "uint256"
840
- }
841
- ],
842
- "stateMutability": "nonpayable",
843
- "type": "function"
844
- },
845
- {
846
- "inputs": [],
847
- "name": "exchangeRateStored",
848
- "outputs": [
849
- {
850
- "internalType": "uint256",
851
- "name": "",
852
- "type": "uint256"
853
- }
854
- ],
855
- "stateMutability": "view",
856
- "type": "function"
857
- },
858
- {
859
- "inputs": [
860
- {
861
- "internalType": "address",
862
- "name": "account",
863
- "type": "address"
864
- }
865
- ],
866
- "name": "getAccountSnapshot",
867
- "outputs": [
868
- {
869
- "internalType": "uint256",
870
- "name": "",
871
- "type": "uint256"
872
- },
873
- {
874
- "internalType": "uint256",
875
- "name": "",
876
- "type": "uint256"
877
- },
878
- {
879
- "internalType": "uint256",
880
- "name": "",
881
- "type": "uint256"
882
- },
883
- {
884
- "internalType": "uint256",
885
- "name": "",
886
- "type": "uint256"
887
- }
888
- ],
889
- "stateMutability": "view",
890
- "type": "function"
891
- },
892
- {
893
- "inputs": [],
894
- "name": "getCash",
895
- "outputs": [
896
- {
897
- "internalType": "uint256",
898
- "name": "",
899
- "type": "uint256"
900
- }
901
- ],
902
- "stateMutability": "view",
903
- "type": "function"
904
- },
905
- {
906
- "inputs": [],
907
- "name": "implementation",
908
- "outputs": [
909
- {
910
- "internalType": "address",
911
- "name": "",
912
- "type": "address"
913
- }
914
- ],
915
- "stateMutability": "view",
916
- "type": "function"
917
- },
918
- {
919
- "inputs": [
920
- {
921
- "internalType": "address",
922
- "name": "underlying_",
923
- "type": "address"
924
- },
925
- {
926
- "internalType": "contract ComptrollerInterface",
927
- "name": "comptroller_",
928
- "type": "address"
929
- },
930
- {
931
- "internalType": "contract InterestRateModel",
932
- "name": "interestRateModel_",
933
- "type": "address"
934
- },
935
- {
936
- "internalType": "uint256",
937
- "name": "initialExchangeRateMantissa_",
938
- "type": "uint256"
939
- },
940
- {
941
- "internalType": "string",
942
- "name": "name_",
943
- "type": "string"
944
- },
945
- {
946
- "internalType": "string",
947
- "name": "symbol_",
948
- "type": "string"
949
- },
950
- {
951
- "internalType": "uint8",
952
- "name": "decimals_",
953
- "type": "uint8"
954
- }
955
- ],
956
- "name": "initialize",
957
- "outputs": [],
958
- "stateMutability": "nonpayable",
959
- "type": "function"
960
- },
961
- {
962
- "inputs": [
963
- {
964
- "internalType": "contract ComptrollerInterface",
965
- "name": "comptroller_",
966
- "type": "address"
967
- },
968
- {
969
- "internalType": "contract InterestRateModel",
970
- "name": "interestRateModel_",
971
- "type": "address"
972
- },
973
- {
974
- "internalType": "uint256",
975
- "name": "initialExchangeRateMantissa_",
976
- "type": "uint256"
977
- },
978
- {
979
- "internalType": "string",
980
- "name": "name_",
981
- "type": "string"
982
- },
983
- {
984
- "internalType": "string",
985
- "name": "symbol_",
986
- "type": "string"
987
- },
988
- {
989
- "internalType": "uint8",
990
- "name": "decimals_",
991
- "type": "uint8"
992
- }
993
- ],
994
- "name": "initialize",
995
- "outputs": [],
996
- "stateMutability": "nonpayable",
997
- "type": "function"
998
- },
999
- {
1000
- "inputs": [],
1001
- "name": "interestRateModel",
1002
- "outputs": [
1003
- {
1004
- "internalType": "contract InterestRateModel",
1005
- "name": "",
1006
- "type": "address"
1007
- }
1008
- ],
1009
- "stateMutability": "view",
1010
- "type": "function"
1011
- },
1012
- {
1013
- "inputs": [],
1014
- "name": "isMToken",
1015
- "outputs": [
1016
- {
1017
- "internalType": "bool",
1018
- "name": "",
1019
- "type": "bool"
1020
- }
1021
- ],
1022
- "stateMutability": "view",
1023
- "type": "function"
1024
- },
1025
- {
1026
- "inputs": [
1027
- {
1028
- "internalType": "address",
1029
- "name": "borrower",
1030
- "type": "address"
1031
- },
1032
- {
1033
- "internalType": "uint256",
1034
- "name": "repayAmount",
1035
- "type": "uint256"
1036
- },
1037
- {
1038
- "internalType": "contract MTokenInterface",
1039
- "name": "mTokenCollateral",
1040
- "type": "address"
1041
- }
1042
- ],
1043
- "name": "liquidateBorrow",
1044
- "outputs": [
1045
- {
1046
- "internalType": "uint256",
1047
- "name": "",
1048
- "type": "uint256"
1049
- }
1050
- ],
1051
- "stateMutability": "nonpayable",
1052
- "type": "function"
1053
- },
1054
- {
1055
- "inputs": [
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "mintAmount",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "name": "mint",
1063
- "outputs": [
1064
- {
1065
- "internalType": "uint256",
1066
- "name": "",
1067
- "type": "uint256"
1068
- }
1069
- ],
1070
- "stateMutability": "nonpayable",
1071
- "type": "function"
1072
- },
1073
- {
1074
- "inputs": [
1075
- {
1076
- "internalType": "uint256",
1077
- "name": "mintAmount",
1078
- "type": "uint256"
1079
- },
1080
- {
1081
- "internalType": "uint256",
1082
- "name": "deadline",
1083
- "type": "uint256"
1084
- },
1085
- {
1086
- "internalType": "uint8",
1087
- "name": "v",
1088
- "type": "uint8"
1089
- },
1090
- {
1091
- "internalType": "bytes32",
1092
- "name": "r",
1093
- "type": "bytes32"
1094
- },
1095
- {
1096
- "internalType": "bytes32",
1097
- "name": "s",
1098
- "type": "bytes32"
1099
- }
1100
- ],
1101
- "name": "mintWithPermit",
1102
- "outputs": [
1103
- {
1104
- "internalType": "uint256",
1105
- "name": "",
1106
- "type": "uint256"
1107
- }
1108
- ],
1109
- "stateMutability": "nonpayable",
1110
- "type": "function"
1111
- },
1112
- {
1113
- "inputs": [],
1114
- "name": "name",
1115
- "outputs": [
1116
- {
1117
- "internalType": "string",
1118
- "name": "",
1119
- "type": "string"
1120
- }
1121
- ],
1122
- "stateMutability": "view",
1123
- "type": "function"
1124
- },
1125
- {
1126
- "inputs": [],
1127
- "name": "pendingAdmin",
1128
- "outputs": [
1129
- {
1130
- "internalType": "address payable",
1131
- "name": "",
1132
- "type": "address"
1133
- }
1134
- ],
1135
- "stateMutability": "view",
1136
- "type": "function"
1137
- },
1138
- {
1139
- "inputs": [],
1140
- "name": "protocolSeizeShareMantissa",
1141
- "outputs": [
1142
- {
1143
- "internalType": "uint256",
1144
- "name": "",
1145
- "type": "uint256"
1146
- }
1147
- ],
1148
- "stateMutability": "view",
1149
- "type": "function"
1150
- },
1151
- {
1152
- "inputs": [
1153
- {
1154
- "internalType": "uint256",
1155
- "name": "redeemTokens",
1156
- "type": "uint256"
1157
- }
1158
- ],
1159
- "name": "redeem",
1160
- "outputs": [
1161
- {
1162
- "internalType": "uint256",
1163
- "name": "",
1164
- "type": "uint256"
1165
- }
1166
- ],
1167
- "stateMutability": "nonpayable",
1168
- "type": "function"
1169
- },
1170
- {
1171
- "inputs": [
1172
- {
1173
- "internalType": "uint256",
1174
- "name": "redeemAmount",
1175
- "type": "uint256"
1176
- }
1177
- ],
1178
- "name": "redeemUnderlying",
1179
- "outputs": [
1180
- {
1181
- "internalType": "uint256",
1182
- "name": "",
1183
- "type": "uint256"
1184
- }
1185
- ],
1186
- "stateMutability": "nonpayable",
1187
- "type": "function"
1188
- },
1189
- {
1190
- "inputs": [
1191
- {
1192
- "internalType": "uint256",
1193
- "name": "repayAmount",
1194
- "type": "uint256"
1195
- }
1196
- ],
1197
- "name": "repayBorrow",
1198
- "outputs": [
1199
- {
1200
- "internalType": "uint256",
1201
- "name": "",
1202
- "type": "uint256"
1203
- }
1204
- ],
1205
- "stateMutability": "nonpayable",
1206
- "type": "function"
1207
- },
1208
- {
1209
- "inputs": [
1210
- {
1211
- "internalType": "address",
1212
- "name": "borrower",
1213
- "type": "address"
1214
- },
1215
- {
1216
- "internalType": "uint256",
1217
- "name": "repayAmount",
1218
- "type": "uint256"
1219
- }
1220
- ],
1221
- "name": "repayBorrowBehalf",
1222
- "outputs": [
1223
- {
1224
- "internalType": "uint256",
1225
- "name": "",
1226
- "type": "uint256"
1227
- }
1228
- ],
1229
- "stateMutability": "nonpayable",
1230
- "type": "function"
1231
- },
1232
- {
1233
- "inputs": [],
1234
- "name": "reserveFactorMantissa",
1235
- "outputs": [
1236
- {
1237
- "internalType": "uint256",
1238
- "name": "",
1239
- "type": "uint256"
1240
- }
1241
- ],
1242
- "stateMutability": "view",
1243
- "type": "function"
1244
- },
1245
- {
1246
- "inputs": [
1247
- {
1248
- "internalType": "address",
1249
- "name": "liquidator",
1250
- "type": "address"
1251
- },
1252
- {
1253
- "internalType": "address",
1254
- "name": "borrower",
1255
- "type": "address"
1256
- },
1257
- {
1258
- "internalType": "uint256",
1259
- "name": "seizeTokens",
1260
- "type": "uint256"
1261
- }
1262
- ],
1263
- "name": "seize",
1264
- "outputs": [
1265
- {
1266
- "internalType": "uint256",
1267
- "name": "",
1268
- "type": "uint256"
1269
- }
1270
- ],
1271
- "stateMutability": "nonpayable",
1272
- "type": "function"
1273
- },
1274
- {
1275
- "inputs": [],
1276
- "name": "supplyRatePerTimestamp",
1277
- "outputs": [
1278
- {
1279
- "internalType": "uint256",
1280
- "name": "",
1281
- "type": "uint256"
1282
- }
1283
- ],
1284
- "stateMutability": "view",
1285
- "type": "function"
1286
- },
1287
- {
1288
- "inputs": [
1289
- {
1290
- "internalType": "contract EIP20NonStandardInterface",
1291
- "name": "token",
1292
- "type": "address"
1293
- }
1294
- ],
1295
- "name": "sweepToken",
1296
- "outputs": [],
1297
- "stateMutability": "nonpayable",
1298
- "type": "function"
1299
- },
1300
- {
1301
- "inputs": [],
1302
- "name": "symbol",
1303
- "outputs": [
1304
- {
1305
- "internalType": "string",
1306
- "name": "",
1307
- "type": "string"
1308
- }
1309
- ],
1310
- "stateMutability": "view",
1311
- "type": "function"
1312
- },
1313
- {
1314
- "inputs": [],
1315
- "name": "totalBorrows",
1316
- "outputs": [
1317
- {
1318
- "internalType": "uint256",
1319
- "name": "",
1320
- "type": "uint256"
1321
- }
1322
- ],
1323
- "stateMutability": "view",
1324
- "type": "function"
1325
- },
1326
- {
1327
- "inputs": [],
1328
- "name": "totalBorrowsCurrent",
1329
- "outputs": [
1330
- {
1331
- "internalType": "uint256",
1332
- "name": "",
1333
- "type": "uint256"
1334
- }
1335
- ],
1336
- "stateMutability": "nonpayable",
1337
- "type": "function"
1338
- },
1339
- {
1340
- "inputs": [],
1341
- "name": "totalReserves",
1342
- "outputs": [
1343
- {
1344
- "internalType": "uint256",
1345
- "name": "",
1346
- "type": "uint256"
1347
- }
1348
- ],
1349
- "stateMutability": "view",
1350
- "type": "function"
1351
- },
1352
- {
1353
- "inputs": [],
1354
- "name": "totalSupply",
1355
- "outputs": [
1356
- {
1357
- "internalType": "uint256",
1358
- "name": "",
1359
- "type": "uint256"
1360
- }
1361
- ],
1362
- "stateMutability": "view",
1363
- "type": "function"
1364
- },
1365
- {
1366
- "inputs": [
1367
- {
1368
- "internalType": "address",
1369
- "name": "dst",
1370
- "type": "address"
1371
- },
1372
- {
1373
- "internalType": "uint256",
1374
- "name": "amount",
1375
- "type": "uint256"
1376
- }
1377
- ],
1378
- "name": "transfer",
1379
- "outputs": [
1380
- {
1381
- "internalType": "bool",
1382
- "name": "",
1383
- "type": "bool"
1384
- }
1385
- ],
1386
- "stateMutability": "nonpayable",
1387
- "type": "function"
1388
- },
1389
- {
1390
- "inputs": [
1391
- {
1392
- "internalType": "address",
1393
- "name": "src",
1394
- "type": "address"
1395
- },
1396
- {
1397
- "internalType": "address",
1398
- "name": "dst",
1399
- "type": "address"
1400
- },
1401
- {
1402
- "internalType": "uint256",
1403
- "name": "amount",
1404
- "type": "uint256"
1405
- }
1406
- ],
1407
- "name": "transferFrom",
1408
- "outputs": [
1409
- {
1410
- "internalType": "bool",
1411
- "name": "",
1412
- "type": "bool"
1413
- }
1414
- ],
1415
- "stateMutability": "nonpayable",
1416
- "type": "function"
1417
- },
1418
- {
1419
- "inputs": [],
1420
- "name": "underlying",
1421
- "outputs": [
1422
- {
1423
- "internalType": "address",
1424
- "name": "",
1425
- "type": "address"
1426
- }
1427
- ],
1428
- "stateMutability": "view",
1429
- "type": "function"
1430
- }
1431
- ]