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,1108 +0,0 @@
1
- IONIC_CTOKEN_ABI = [
2
- {
3
- "inputs": [],
4
- "name": "CallerIsNotEOA",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [],
9
- "name": "InteractionNotAllowed",
10
- "type": "error"
11
- },
12
- {
13
- "anonymous": False,
14
- "inputs": [
15
- {
16
- "indexed": False,
17
- "internalType": "uint256",
18
- "name": "cashPrior",
19
- "type": "uint256"
20
- },
21
- {
22
- "indexed": False,
23
- "internalType": "uint256",
24
- "name": "interestAccumulated",
25
- "type": "uint256"
26
- },
27
- {
28
- "indexed": False,
29
- "internalType": "uint256",
30
- "name": "borrowIndex",
31
- "type": "uint256"
32
- },
33
- {
34
- "indexed": False,
35
- "internalType": "uint256",
36
- "name": "totalBorrows",
37
- "type": "uint256"
38
- }
39
- ],
40
- "name": "AccrueInterest",
41
- "type": "event"
42
- },
43
- {
44
- "anonymous": False,
45
- "inputs": [
46
- {
47
- "indexed": True,
48
- "internalType": "address",
49
- "name": "owner",
50
- "type": "address"
51
- },
52
- {
53
- "indexed": True,
54
- "internalType": "address",
55
- "name": "spender",
56
- "type": "address"
57
- },
58
- {
59
- "indexed": False,
60
- "internalType": "uint256",
61
- "name": "amount",
62
- "type": "uint256"
63
- }
64
- ],
65
- "name": "Approval",
66
- "type": "event"
67
- },
68
- {
69
- "anonymous": False,
70
- "inputs": [
71
- {
72
- "indexed": False,
73
- "internalType": "address",
74
- "name": "borrower",
75
- "type": "address"
76
- },
77
- {
78
- "indexed": False,
79
- "internalType": "uint256",
80
- "name": "borrowAmount",
81
- "type": "uint256"
82
- },
83
- {
84
- "indexed": False,
85
- "internalType": "uint256",
86
- "name": "accountBorrows",
87
- "type": "uint256"
88
- },
89
- {
90
- "indexed": False,
91
- "internalType": "uint256",
92
- "name": "totalBorrows",
93
- "type": "uint256"
94
- }
95
- ],
96
- "name": "Borrow",
97
- "type": "event"
98
- },
99
- {
100
- "anonymous": False,
101
- "inputs": [
102
- {
103
- "indexed": False,
104
- "internalType": "uint256",
105
- "name": "error",
106
- "type": "uint256"
107
- },
108
- {
109
- "indexed": False,
110
- "internalType": "uint256",
111
- "name": "info",
112
- "type": "uint256"
113
- },
114
- {
115
- "indexed": False,
116
- "internalType": "uint256",
117
- "name": "detail",
118
- "type": "uint256"
119
- }
120
- ],
121
- "name": "Failure",
122
- "type": "event"
123
- },
124
- {
125
- "anonymous": False,
126
- "inputs": [
127
- {
128
- "indexed": False,
129
- "internalType": "address",
130
- "name": "liquidator",
131
- "type": "address"
132
- },
133
- {
134
- "indexed": False,
135
- "internalType": "address",
136
- "name": "borrower",
137
- "type": "address"
138
- },
139
- {
140
- "indexed": False,
141
- "internalType": "uint256",
142
- "name": "repayAmount",
143
- "type": "uint256"
144
- },
145
- {
146
- "indexed": False,
147
- "internalType": "address",
148
- "name": "cTokenCollateral",
149
- "type": "address"
150
- },
151
- {
152
- "indexed": False,
153
- "internalType": "uint256",
154
- "name": "seizeTokens",
155
- "type": "uint256"
156
- }
157
- ],
158
- "name": "LiquidateBorrow",
159
- "type": "event"
160
- },
161
- {
162
- "anonymous": False,
163
- "inputs": [
164
- {
165
- "indexed": False,
166
- "internalType": "address",
167
- "name": "minter",
168
- "type": "address"
169
- },
170
- {
171
- "indexed": False,
172
- "internalType": "uint256",
173
- "name": "mintAmount",
174
- "type": "uint256"
175
- },
176
- {
177
- "indexed": False,
178
- "internalType": "uint256",
179
- "name": "mintTokens",
180
- "type": "uint256"
181
- }
182
- ],
183
- "name": "Mint",
184
- "type": "event"
185
- },
186
- {
187
- "anonymous": False,
188
- "inputs": [
189
- {
190
- "indexed": False,
191
- "internalType": "uint256",
192
- "name": "oldAdminFeeMantissa",
193
- "type": "uint256"
194
- },
195
- {
196
- "indexed": False,
197
- "internalType": "uint256",
198
- "name": "newAdminFeeMantissa",
199
- "type": "uint256"
200
- }
201
- ],
202
- "name": "NewAdminFee",
203
- "type": "event"
204
- },
205
- {
206
- "anonymous": False,
207
- "inputs": [
208
- {
209
- "indexed": False,
210
- "internalType": "uint256",
211
- "name": "oldIonicFeeMantissa",
212
- "type": "uint256"
213
- },
214
- {
215
- "indexed": False,
216
- "internalType": "uint256",
217
- "name": "newIonicFeeMantissa",
218
- "type": "uint256"
219
- }
220
- ],
221
- "name": "NewIonicFee",
222
- "type": "event"
223
- },
224
- {
225
- "anonymous": False,
226
- "inputs": [
227
- {
228
- "indexed": False,
229
- "internalType": "contract InterestRateModel",
230
- "name": "oldInterestRateModel",
231
- "type": "address"
232
- },
233
- {
234
- "indexed": False,
235
- "internalType": "contract InterestRateModel",
236
- "name": "newInterestRateModel",
237
- "type": "address"
238
- }
239
- ],
240
- "name": "NewMarketInterestRateModel",
241
- "type": "event"
242
- },
243
- {
244
- "anonymous": False,
245
- "inputs": [
246
- {
247
- "indexed": False,
248
- "internalType": "uint256",
249
- "name": "oldReserveFactorMantissa",
250
- "type": "uint256"
251
- },
252
- {
253
- "indexed": False,
254
- "internalType": "uint256",
255
- "name": "newReserveFactorMantissa",
256
- "type": "uint256"
257
- }
258
- ],
259
- "name": "NewReserveFactor",
260
- "type": "event"
261
- },
262
- {
263
- "anonymous": False,
264
- "inputs": [
265
- {
266
- "indexed": False,
267
- "internalType": "address",
268
- "name": "redeemer",
269
- "type": "address"
270
- },
271
- {
272
- "indexed": False,
273
- "internalType": "uint256",
274
- "name": "redeemAmount",
275
- "type": "uint256"
276
- },
277
- {
278
- "indexed": False,
279
- "internalType": "uint256",
280
- "name": "redeemTokens",
281
- "type": "uint256"
282
- }
283
- ],
284
- "name": "Redeem",
285
- "type": "event"
286
- },
287
- {
288
- "anonymous": False,
289
- "inputs": [
290
- {
291
- "indexed": False,
292
- "internalType": "address",
293
- "name": "payer",
294
- "type": "address"
295
- },
296
- {
297
- "indexed": False,
298
- "internalType": "address",
299
- "name": "borrower",
300
- "type": "address"
301
- },
302
- {
303
- "indexed": False,
304
- "internalType": "uint256",
305
- "name": "repayAmount",
306
- "type": "uint256"
307
- },
308
- {
309
- "indexed": False,
310
- "internalType": "uint256",
311
- "name": "accountBorrows",
312
- "type": "uint256"
313
- },
314
- {
315
- "indexed": False,
316
- "internalType": "uint256",
317
- "name": "totalBorrows",
318
- "type": "uint256"
319
- }
320
- ],
321
- "name": "RepayBorrow",
322
- "type": "event"
323
- },
324
- {
325
- "anonymous": False,
326
- "inputs": [
327
- {
328
- "indexed": False,
329
- "internalType": "address",
330
- "name": "benefactor",
331
- "type": "address"
332
- },
333
- {
334
- "indexed": False,
335
- "internalType": "uint256",
336
- "name": "addAmount",
337
- "type": "uint256"
338
- },
339
- {
340
- "indexed": False,
341
- "internalType": "uint256",
342
- "name": "newTotalReserves",
343
- "type": "uint256"
344
- }
345
- ],
346
- "name": "ReservesAdded",
347
- "type": "event"
348
- },
349
- {
350
- "anonymous": False,
351
- "inputs": [
352
- {
353
- "indexed": False,
354
- "internalType": "address",
355
- "name": "admin",
356
- "type": "address"
357
- },
358
- {
359
- "indexed": False,
360
- "internalType": "uint256",
361
- "name": "reduceAmount",
362
- "type": "uint256"
363
- },
364
- {
365
- "indexed": False,
366
- "internalType": "uint256",
367
- "name": "newTotalReserves",
368
- "type": "uint256"
369
- }
370
- ],
371
- "name": "ReservesReduced",
372
- "type": "event"
373
- },
374
- {
375
- "anonymous": False,
376
- "inputs": [
377
- {
378
- "indexed": True,
379
- "internalType": "address",
380
- "name": "from",
381
- "type": "address"
382
- },
383
- {
384
- "indexed": True,
385
- "internalType": "address",
386
- "name": "to",
387
- "type": "address"
388
- },
389
- {
390
- "indexed": False,
391
- "internalType": "uint256",
392
- "name": "amount",
393
- "type": "uint256"
394
- }
395
- ],
396
- "name": "Transfer",
397
- "type": "event"
398
- },
399
- {
400
- "inputs": [
401
- {
402
- "internalType": "bytes",
403
- "name": "",
404
- "type": "bytes"
405
- }
406
- ],
407
- "name": "_becomeImplementation",
408
- "outputs": [],
409
- "stateMutability": "nonpayable",
410
- "type": "function"
411
- },
412
- {
413
- "inputs": [],
414
- "name": "_getExtensionFunctions",
415
- "outputs": [
416
- {
417
- "internalType": "bytes4[]",
418
- "name": "functionSelectors",
419
- "type": "bytes4[]"
420
- }
421
- ],
422
- "stateMutability": "pure",
423
- "type": "function"
424
- },
425
- {
426
- "inputs": [
427
- {
428
- "internalType": "uint256",
429
- "name": "withdrawAmount",
430
- "type": "uint256"
431
- }
432
- ],
433
- "name": "_withdrawAdminFees",
434
- "outputs": [
435
- {
436
- "internalType": "uint256",
437
- "name": "",
438
- "type": "uint256"
439
- }
440
- ],
441
- "stateMutability": "nonpayable",
442
- "type": "function"
443
- },
444
- {
445
- "inputs": [
446
- {
447
- "internalType": "uint256",
448
- "name": "withdrawAmount",
449
- "type": "uint256"
450
- }
451
- ],
452
- "name": "_withdrawIonicFees",
453
- "outputs": [
454
- {
455
- "internalType": "uint256",
456
- "name": "",
457
- "type": "uint256"
458
- }
459
- ],
460
- "stateMutability": "nonpayable",
461
- "type": "function"
462
- },
463
- {
464
- "inputs": [],
465
- "name": "accrualBlockNumber",
466
- "outputs": [
467
- {
468
- "internalType": "uint256",
469
- "name": "",
470
- "type": "uint256"
471
- }
472
- ],
473
- "stateMutability": "view",
474
- "type": "function"
475
- },
476
- {
477
- "inputs": [],
478
- "name": "adminFeeMantissa",
479
- "outputs": [
480
- {
481
- "internalType": "uint256",
482
- "name": "",
483
- "type": "uint256"
484
- }
485
- ],
486
- "stateMutability": "view",
487
- "type": "function"
488
- },
489
- {
490
- "inputs": [],
491
- "name": "ap",
492
- "outputs": [
493
- {
494
- "internalType": "contract AddressesProvider",
495
- "name": "",
496
- "type": "address"
497
- }
498
- ],
499
- "stateMutability": "view",
500
- "type": "function"
501
- },
502
- {
503
- "inputs": [
504
- {
505
- "internalType": "address",
506
- "name": "_token",
507
- "type": "address"
508
- },
509
- {
510
- "internalType": "address",
511
- "name": "_spender",
512
- "type": "address"
513
- }
514
- ],
515
- "name": "approve",
516
- "outputs": [],
517
- "stateMutability": "nonpayable",
518
- "type": "function"
519
- },
520
- {
521
- "inputs": [
522
- {
523
- "internalType": "uint256",
524
- "name": "borrowAmount",
525
- "type": "uint256"
526
- }
527
- ],
528
- "name": "borrow",
529
- "outputs": [
530
- {
531
- "internalType": "uint256",
532
- "name": "",
533
- "type": "uint256"
534
- }
535
- ],
536
- "stateMutability": "nonpayable",
537
- "type": "function"
538
- },
539
- {
540
- "inputs": [],
541
- "name": "borrowIndex",
542
- "outputs": [
543
- {
544
- "internalType": "uint256",
545
- "name": "",
546
- "type": "uint256"
547
- }
548
- ],
549
- "stateMutability": "view",
550
- "type": "function"
551
- },
552
- {
553
- "inputs": [],
554
- "name": "claim",
555
- "outputs": [],
556
- "stateMutability": "nonpayable",
557
- "type": "function"
558
- },
559
- {
560
- "inputs": [],
561
- "name": "comptroller",
562
- "outputs": [
563
- {
564
- "internalType": "contract IonicComptroller",
565
- "name": "",
566
- "type": "address"
567
- }
568
- ],
569
- "stateMutability": "view",
570
- "type": "function"
571
- },
572
- {
573
- "inputs": [],
574
- "name": "contractType",
575
- "outputs": [
576
- {
577
- "internalType": "string",
578
- "name": "",
579
- "type": "string"
580
- }
581
- ],
582
- "stateMutability": "pure",
583
- "type": "function"
584
- },
585
- {
586
- "inputs": [],
587
- "name": "decimals",
588
- "outputs": [
589
- {
590
- "internalType": "uint8",
591
- "name": "",
592
- "type": "uint8"
593
- }
594
- ],
595
- "stateMutability": "view",
596
- "type": "function"
597
- },
598
- {
599
- "inputs": [],
600
- "name": "delegateType",
601
- "outputs": [
602
- {
603
- "internalType": "uint8",
604
- "name": "",
605
- "type": "uint8"
606
- }
607
- ],
608
- "stateMutability": "pure",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [],
613
- "name": "feeSeizeShareMantissa",
614
- "outputs": [
615
- {
616
- "internalType": "uint256",
617
- "name": "",
618
- "type": "uint256"
619
- }
620
- ],
621
- "stateMutability": "view",
622
- "type": "function"
623
- },
624
- {
625
- "inputs": [],
626
- "name": "getCash",
627
- "outputs": [
628
- {
629
- "internalType": "uint256",
630
- "name": "",
631
- "type": "uint256"
632
- }
633
- ],
634
- "stateMutability": "view",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [],
639
- "name": "interestRateModel",
640
- "outputs": [
641
- {
642
- "internalType": "contract InterestRateModel",
643
- "name": "",
644
- "type": "address"
645
- }
646
- ],
647
- "stateMutability": "view",
648
- "type": "function"
649
- },
650
- {
651
- "inputs": [],
652
- "name": "ionicAdmin",
653
- "outputs": [
654
- {
655
- "internalType": "address payable",
656
- "name": "",
657
- "type": "address"
658
- }
659
- ],
660
- "stateMutability": "view",
661
- "type": "function"
662
- },
663
- {
664
- "inputs": [],
665
- "name": "ionicFeeMantissa",
666
- "outputs": [
667
- {
668
- "internalType": "uint256",
669
- "name": "",
670
- "type": "uint256"
671
- }
672
- ],
673
- "stateMutability": "view",
674
- "type": "function"
675
- },
676
- {
677
- "inputs": [
678
- {
679
- "internalType": "address",
680
- "name": "borrower",
681
- "type": "address"
682
- },
683
- {
684
- "internalType": "uint256",
685
- "name": "repayAmount",
686
- "type": "uint256"
687
- },
688
- {
689
- "internalType": "address",
690
- "name": "cTokenCollateral",
691
- "type": "address"
692
- }
693
- ],
694
- "name": "liquidateBorrow",
695
- "outputs": [
696
- {
697
- "internalType": "uint256",
698
- "name": "",
699
- "type": "uint256"
700
- }
701
- ],
702
- "stateMutability": "nonpayable",
703
- "type": "function"
704
- },
705
- {
706
- "inputs": [
707
- {
708
- "internalType": "uint256",
709
- "name": "mintAmount",
710
- "type": "uint256"
711
- }
712
- ],
713
- "name": "mint",
714
- "outputs": [
715
- {
716
- "internalType": "uint256",
717
- "name": "",
718
- "type": "uint256"
719
- }
720
- ],
721
- "stateMutability": "nonpayable",
722
- "type": "function"
723
- },
724
- {
725
- "inputs": [],
726
- "name": "name",
727
- "outputs": [
728
- {
729
- "internalType": "string",
730
- "name": "",
731
- "type": "string"
732
- }
733
- ],
734
- "stateMutability": "view",
735
- "type": "function"
736
- },
737
- {
738
- "inputs": [],
739
- "name": "protocolSeizeShareMantissa",
740
- "outputs": [
741
- {
742
- "internalType": "uint256",
743
- "name": "",
744
- "type": "uint256"
745
- }
746
- ],
747
- "stateMutability": "view",
748
- "type": "function"
749
- },
750
- {
751
- "inputs": [
752
- {
753
- "internalType": "uint256",
754
- "name": "redeemTokens",
755
- "type": "uint256"
756
- }
757
- ],
758
- "name": "redeem",
759
- "outputs": [
760
- {
761
- "internalType": "uint256",
762
- "name": "",
763
- "type": "uint256"
764
- }
765
- ],
766
- "stateMutability": "nonpayable",
767
- "type": "function"
768
- },
769
- {
770
- "inputs": [
771
- {
772
- "internalType": "uint256",
773
- "name": "redeemAmount",
774
- "type": "uint256"
775
- }
776
- ],
777
- "name": "redeemUnderlying",
778
- "outputs": [
779
- {
780
- "internalType": "uint256",
781
- "name": "",
782
- "type": "uint256"
783
- }
784
- ],
785
- "stateMutability": "nonpayable",
786
- "type": "function"
787
- },
788
- {
789
- "inputs": [
790
- {
791
- "internalType": "uint256",
792
- "name": "repayAmount",
793
- "type": "uint256"
794
- }
795
- ],
796
- "name": "repayBorrow",
797
- "outputs": [
798
- {
799
- "internalType": "uint256",
800
- "name": "",
801
- "type": "uint256"
802
- }
803
- ],
804
- "stateMutability": "nonpayable",
805
- "type": "function"
806
- },
807
- {
808
- "inputs": [
809
- {
810
- "internalType": "address",
811
- "name": "borrower",
812
- "type": "address"
813
- },
814
- {
815
- "internalType": "uint256",
816
- "name": "repayAmount",
817
- "type": "uint256"
818
- }
819
- ],
820
- "name": "repayBorrowBehalf",
821
- "outputs": [
822
- {
823
- "internalType": "uint256",
824
- "name": "",
825
- "type": "uint256"
826
- }
827
- ],
828
- "stateMutability": "nonpayable",
829
- "type": "function"
830
- },
831
- {
832
- "inputs": [],
833
- "name": "reserveFactorMantissa",
834
- "outputs": [
835
- {
836
- "internalType": "uint256",
837
- "name": "",
838
- "type": "uint256"
839
- }
840
- ],
841
- "stateMutability": "view",
842
- "type": "function"
843
- },
844
- {
845
- "inputs": [
846
- {
847
- "internalType": "address",
848
- "name": "liquidator",
849
- "type": "address"
850
- },
851
- {
852
- "internalType": "address",
853
- "name": "borrower",
854
- "type": "address"
855
- },
856
- {
857
- "internalType": "uint256",
858
- "name": "seizeTokens",
859
- "type": "uint256"
860
- }
861
- ],
862
- "name": "seize",
863
- "outputs": [
864
- {
865
- "internalType": "uint256",
866
- "name": "",
867
- "type": "uint256"
868
- }
869
- ],
870
- "stateMutability": "nonpayable",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [
875
- {
876
- "internalType": "address",
877
- "name": "from",
878
- "type": "address"
879
- },
880
- {
881
- "internalType": "uint256",
882
- "name": "amount",
883
- "type": "uint256"
884
- }
885
- ],
886
- "name": "selfTransferIn",
887
- "outputs": [
888
- {
889
- "internalType": "uint256",
890
- "name": "",
891
- "type": "uint256"
892
- }
893
- ],
894
- "stateMutability": "nonpayable",
895
- "type": "function"
896
- },
897
- {
898
- "inputs": [
899
- {
900
- "internalType": "address",
901
- "name": "to",
902
- "type": "address"
903
- },
904
- {
905
- "internalType": "uint256",
906
- "name": "amount",
907
- "type": "uint256"
908
- }
909
- ],
910
- "name": "selfTransferOut",
911
- "outputs": [],
912
- "stateMutability": "nonpayable",
913
- "type": "function"
914
- },
915
- {
916
- "inputs": [],
917
- "name": "symbol",
918
- "outputs": [
919
- {
920
- "internalType": "string",
921
- "name": "",
922
- "type": "string"
923
- }
924
- ],
925
- "stateMutability": "view",
926
- "type": "function"
927
- },
928
- {
929
- "inputs": [],
930
- "name": "totalAdminFees",
931
- "outputs": [
932
- {
933
- "internalType": "uint256",
934
- "name": "",
935
- "type": "uint256"
936
- }
937
- ],
938
- "stateMutability": "view",
939
- "type": "function"
940
- },
941
- {
942
- "inputs": [],
943
- "name": "totalBorrows",
944
- "outputs": [
945
- {
946
- "internalType": "uint256",
947
- "name": "",
948
- "type": "uint256"
949
- }
950
- ],
951
- "stateMutability": "view",
952
- "type": "function"
953
- },
954
- {
955
- "inputs": [],
956
- "name": "totalIonicFees",
957
- "outputs": [
958
- {
959
- "internalType": "uint256",
960
- "name": "",
961
- "type": "uint256"
962
- }
963
- ],
964
- "stateMutability": "view",
965
- "type": "function"
966
- },
967
- {
968
- "inputs": [],
969
- "name": "totalReserves",
970
- "outputs": [
971
- {
972
- "internalType": "uint256",
973
- "name": "",
974
- "type": "uint256"
975
- }
976
- ],
977
- "stateMutability": "view",
978
- "type": "function"
979
- },
980
- {
981
- "inputs": [],
982
- "name": "totalSupply",
983
- "outputs": [
984
- {
985
- "internalType": "uint256",
986
- "name": "",
987
- "type": "uint256"
988
- }
989
- ],
990
- "stateMutability": "view",
991
- "type": "function"
992
- },
993
- {
994
- "inputs": [],
995
- "name": "underlying",
996
- "outputs": [
997
- {
998
- "internalType": "address",
999
- "name": "",
1000
- "type": "address"
1001
- }
1002
- ],
1003
- "stateMutability": "view",
1004
- "type": "function"
1005
- },
1006
- {
1007
- "constant": False,
1008
- "inputs": [],
1009
- "name": "exchangeRateCurrent",
1010
- "outputs": [
1011
- {
1012
- "internalType": "uint256",
1013
- "name": "",
1014
- "type": "uint256"
1015
- }
1016
- ],
1017
- "payable": False,
1018
- "stateMutability": "nonpayable",
1019
- "type": "function"
1020
- },
1021
- {
1022
- "constant": True,
1023
- "inputs": [],
1024
- "name": "supplyRatePerBlock",
1025
- "outputs": [
1026
- {
1027
- "internalType": "uint256",
1028
- "name": "",
1029
- "type": "uint256"
1030
- }
1031
- ],
1032
- "payable": False,
1033
- "stateMutability": "view",
1034
- "type": "function"
1035
- },
1036
- {
1037
- "constant": True,
1038
- "inputs": [],
1039
- "name": "borrowRatePerBlock",
1040
- "outputs": [
1041
- {
1042
- "internalType": "uint256",
1043
- "name": "",
1044
- "type": "uint256"
1045
- }
1046
- ],
1047
- "payable": False,
1048
- "stateMutability": "view",
1049
- "type": "function"
1050
- },
1051
- {
1052
- "constant": False,
1053
- "inputs": [],
1054
- "name": "totalBorrowsCurrent",
1055
- "outputs": [
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "payable": False,
1063
- "stateMutability": "nonpayable",
1064
- "type": "function"
1065
- },
1066
- {
1067
- "constant": False,
1068
- "inputs": [
1069
- {
1070
- "internalType": "address",
1071
- "name": "owner",
1072
- "type": "address"
1073
- }
1074
- ],
1075
- "name": "balanceOfUnderlying",
1076
- "outputs": [
1077
- {
1078
- "internalType": "uint256",
1079
- "name": "",
1080
- "type": "uint256"
1081
- }
1082
- ],
1083
- "payable": False,
1084
- "stateMutability": "nonpayable",
1085
- "type": "function"
1086
- },
1087
- {
1088
- "constant": False,
1089
- "inputs": [
1090
- {
1091
- "internalType": "address",
1092
- "name": "account",
1093
- "type": "address"
1094
- }
1095
- ],
1096
- "name": "borrowBalanceCurrent",
1097
- "outputs": [
1098
- {
1099
- "internalType": "uint256",
1100
- "name": "",
1101
- "type": "uint256"
1102
- }
1103
- ],
1104
- "payable": False,
1105
- "stateMutability": "nonpayable",
1106
- "type": "function"
1107
- }
1108
- ]