defi-state-querier 0.5.12__py3-none-any.whl → 0.5.14__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- defi_services/__init__.py +1 -1
- defi_services/constants/entities/lending_services.py +2 -1
- defi_services/jobs/queriers/call_state_querier.py +2 -0
- defi_services/services/lending/lending_info/ethereum/radiant_eth.py +69 -0
- defi_services/services/lending/radiant_v2_services.py +3 -1
- {defi_state_querier-0.5.12.dist-info → defi_state_querier-0.5.14.dist-info}/METADATA +1 -1
- {defi_state_querier-0.5.12.dist-info → defi_state_querier-0.5.14.dist-info}/RECORD +10 -9
- {defi_state_querier-0.5.12.dist-info → defi_state_querier-0.5.14.dist-info}/WHEEL +1 -1
- {defi_state_querier-0.5.12.dist-info → defi_state_querier-0.5.14.dist-info}/LICENSE +0 -0
- {defi_state_querier-0.5.12.dist-info → defi_state_querier-0.5.14.dist-info}/top_level.txt +0 -0
defi_services/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.5.
|
1
|
+
__version__ = "0.5.14"
|
@@ -47,7 +47,8 @@ class LendingServices:
|
|
47
47
|
Lending.morpho_compound: MorphoCompoundStateService,
|
48
48
|
Lending.spark: SparkStateService,
|
49
49
|
Lending.silo: SiloStateService,
|
50
|
-
Lending.compound_v3: CompoundV3StateService
|
50
|
+
Lending.compound_v3: CompoundV3StateService,
|
51
|
+
Lending.radiant_v2: RadiantStateService
|
51
52
|
}
|
52
53
|
fantom = {
|
53
54
|
Lending.trava: TravaStateService,
|
@@ -94,6 +94,8 @@ class CallStateQuerier(StateQuerier):
|
|
94
94
|
results = {}
|
95
95
|
for block_number, batch_calls in w3_multicall.batch_calls_iterator(batch_size=batch_size):
|
96
96
|
multicall_data = decoded_data.get(f'{batch_idx}_{block_number}')
|
97
|
+
if not multicall_data:
|
98
|
+
continue
|
97
99
|
decode_multicall_data = w3_multicall.decode(multicall_data, calls=batch_calls, ignore_error=ignore_error)
|
98
100
|
results.update(decode_multicall_data)
|
99
101
|
batch_idx += 1
|
@@ -0,0 +1,69 @@
|
|
1
|
+
RADIANT_ETH = {
|
2
|
+
"address": "0xa950974f64aa33f27f6c5e017eee93bf7588ed07",
|
3
|
+
"name": "Radiant Lending Pool",
|
4
|
+
"rewardToken": "0x137ddb47ee24eaa998a535ab00378d6bfa84f893",
|
5
|
+
"multiFeeAddress": "0x28e395a54a64284dba39652921cd99924f4e3797",
|
6
|
+
"stakedIncentiveAddress": '0x14b0a611230dc48e9cc048d3ae5279847bf30919',
|
7
|
+
"oracleAddress": "0xbd60293fbe4b285402510562a64e5fcee9c4a8f9",
|
8
|
+
"poolToken": "0x137ddb47ee24eaa998a535ab00378d6bfa84f893",
|
9
|
+
"forked": "aave-v2",
|
10
|
+
"type": "LENDING_POOL",
|
11
|
+
"reservesList": {
|
12
|
+
"0xdac17f958d2ee523a2206206994597c13d831ec7": {
|
13
|
+
"tToken": "0x3c19d9f2df0e25c077a637692da2337d51daf8b7",
|
14
|
+
"dToken": "0x2d4fc0d5421c0d37d325180477ba6e16ae3abaa7",
|
15
|
+
"sdToken": "0xb2b2c56005ba1efd4c031f3e12d699a6a24db19f",
|
16
|
+
"loanToValue": 0.75,
|
17
|
+
"liquidationThreshold": 0.78
|
18
|
+
},
|
19
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
|
20
|
+
"tToken": "0x9e85df2b42b2ae5e666d7263ed81a744a534bf1f",
|
21
|
+
"dToken": "0x490726291f6434646feb2ec96d2cc566b18a122f",
|
22
|
+
"sdToken": "0xf8a345c151f7503c3959343d70f5f110e0d7b099",
|
23
|
+
"loanToValue": 0.8,
|
24
|
+
"liquidationThreshold": 0.83
|
25
|
+
},
|
26
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
|
27
|
+
"tToken": "0xd10c315293872851184f484e9431daf4de6aa992",
|
28
|
+
"dToken": "0xdf1e9234d4f10ef9fed26a7ae0ef43e5e03bfc31",
|
29
|
+
"sdToken": "0xa401f1fa922c7a78224d932037f9b79276d9e1cd",
|
30
|
+
"loanToValue": 0.8,
|
31
|
+
"liquidationThreshold": 0.83
|
32
|
+
},
|
33
|
+
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
|
34
|
+
"tToken": "0xe57538e4075446e42907ea48abfa83b864f518e4",
|
35
|
+
"dToken": "0x0184eb8a4d86ff250cb2f7f3146aecc14ccb73a4",
|
36
|
+
"sdToken": "0x7b656bd0b8bb6b83f698cae3e4567fb751d334aa",
|
37
|
+
"loanToValue": 0.73,
|
38
|
+
"liquidationThreshold": 0.78
|
39
|
+
},
|
40
|
+
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0": {
|
41
|
+
"tToken": "0x83b3896ec36cb20cfb430fcfe8da23d450dd09b5",
|
42
|
+
"dToken": "0xc8cbb48a0eed0e406bb52a5cc939358c0ab644a7",
|
43
|
+
"sdToken": "0x1c2f0512442181746d4671b9e41dadc43cd991b7",
|
44
|
+
"loanToValue": 0.8,
|
45
|
+
"liquidationThreshold": 0.83
|
46
|
+
},
|
47
|
+
"0x83f20f44975d03b1b09e64809b757c47f942beea": {
|
48
|
+
"tToken": "0x473693ecdad05f5002ff5f63880cfa5901fb50e8",
|
49
|
+
"dToken": "0xe491c1a4150e9925e8427bea4cdcbd250b730e5c",
|
50
|
+
"sdToken": "0x499a735be1956b3aeb5c61da2b44ca551d5409be",
|
51
|
+
"loanToValue": 0.77,
|
52
|
+
"liquidationThreshold": 0.8
|
53
|
+
},
|
54
|
+
"0xae78736cd615f374d3085123a210448e74fc6393": {
|
55
|
+
"tToken": "0x03ab03da2c5012855c743bc318c19ef3de5bc906",
|
56
|
+
"dToken": "0x6a0e8b4d16d5271492bb151eb4767f25cfc23f03",
|
57
|
+
"sdToken": "0x1aa74ffdb440af3ffcee21594409fddff1ccd34c",
|
58
|
+
"loanToValue": 0.75,
|
59
|
+
"liquidationThreshold": 0.8
|
60
|
+
},
|
61
|
+
"0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee": {
|
62
|
+
"tToken": "0x1d25bd8abfeb1d6517cc21beca20b5cd2df8247c",
|
63
|
+
"dToken": "0xcde79c767826849e30aae7c241c369fce54db707",
|
64
|
+
"sdToken": "0xa3ba267512f5505fdf6680c1d357eb26bd8870ce",
|
65
|
+
"loanToValue": 0.725,
|
66
|
+
"liquidationThreshold": 0.75
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
@@ -6,6 +6,7 @@ from defi_services.constants.entities.lending_constant import Lending
|
|
6
6
|
from defi_services.jobs.queriers.state_querier import StateQuerier
|
7
7
|
from defi_services.services.lending.lending_info.arbitrum.radiant_arbitrum import RADIANT_ARB
|
8
8
|
from defi_services.services.lending.lending_info.bsc.radiant_bsc import RADIANT_BSC
|
9
|
+
from defi_services.services.lending.lending_info.ethereum.radiant_eth import RADIANT_ETH
|
9
10
|
from defi_services.services.lending.valas_services import ValasStateService
|
10
11
|
from defi_services.utils.apy import apr_to_apy
|
11
12
|
|
@@ -15,7 +16,8 @@ logger = logging.getLogger("Radiant Lending Pool State Service")
|
|
15
16
|
class RadiantInfo:
|
16
17
|
mapping = {
|
17
18
|
Chain.arbitrum: RADIANT_ARB,
|
18
|
-
Chain.bsc: RADIANT_BSC
|
19
|
+
Chain.bsc: RADIANT_BSC,
|
20
|
+
Chain.ethereum: RADIANT_ETH
|
19
21
|
}
|
20
22
|
|
21
23
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
defi_services/__init__.py,sha256=
|
1
|
+
defi_services/__init__.py,sha256=eZCvGSWzmhAuX33aknAmdOv-0F6FE4joo5igjfie5QI,23
|
2
2
|
defi_services/abis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
defi_services/abis/multicall_v3_abi.py,sha256=0aPxjrJJFU17fODjvYFRDn5Y5J1yi_AJKc8v1uohNGY,12352
|
4
4
|
defi_services/abis/dex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -308,7 +308,7 @@ defi_services/constants/entities/dex_constant.py,sha256=oCt8RS-0KjFW5zR5IU1Ys49n
|
|
308
308
|
defi_services/constants/entities/dex_info_constant.py,sha256=6sLHxCmRz_6HW8WRe27FkOS-FGR-zC354iCTcEIjp78,1604
|
309
309
|
defi_services/constants/entities/dex_services.py,sha256=fpfgQgLBUzjWYTWJ9PAglBGN4Lj8333sPuN3KUORItw,2158
|
310
310
|
defi_services/constants/entities/lending_constant.py,sha256=uUb3CnIlZP0lqdVPUt4IdlUXZwNpsMVDTmqMw0NK47g,1009
|
311
|
-
defi_services/constants/entities/lending_services.py,sha256=
|
311
|
+
defi_services/constants/entities/lending_services.py,sha256=EeCRUi-K4O3MlB6m5f9QKMYlTtPb5VtYd7hVSkAh_38,4958
|
312
312
|
defi_services/constants/entities/vault_constant.py,sha256=IGGd4--T-BQcm8mlU8XAJ_hkZglrdAeZff5h-oMcMqg,84
|
313
313
|
defi_services/constants/entities/vault_services.py,sha256=IMmQc15wS1KA7EuQqM_AraQtCthnZ7hoNee0E_DOyw8,567
|
314
314
|
defi_services/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -322,7 +322,7 @@ defi_services/jobs/processors/state_processor.py,sha256=Ze_5isU_l_APB262E-VV_4KZ
|
|
322
322
|
defi_services/jobs/processors/substrate_state_processor.py,sha256=KkiY1NkaxnizNJBTfn4twB-zuQo3fT3akOlbie8VF5g,3940
|
323
323
|
defi_services/jobs/processors/ton_state_processor.py,sha256=YcNZqMlZI-7UDL4Cxxa8TM8F9IHo5jO-vubqXebjDSY,2233
|
324
324
|
defi_services/jobs/queriers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
325
|
-
defi_services/jobs/queriers/call_state_querier.py,sha256=
|
325
|
+
defi_services/jobs/queriers/call_state_querier.py,sha256=1aTPFwX28dY6SDQ7wHDAdwSGxYHMR7sZzaIJl8bJqZw,4880
|
326
326
|
defi_services/jobs/queriers/solana_state_querier.py,sha256=TQELYo6GUoF8s-LfetqYbclNaH8bakQqC7y2ifACIb8,3239
|
327
327
|
defi_services/jobs/queriers/state_querier.py,sha256=q7cAW395urZjcWTpqw8m_nDunLyyTuAXJ3DRx_1HOxo,7384
|
328
328
|
defi_services/jobs/queriers/substrate_state_querier.py,sha256=_T0Dk06sP_uBKaxgj2J_EBtJDoq-hi8jU7Np4iuO0LA,3858
|
@@ -372,7 +372,7 @@ defi_services/services/lending/morpho_aave_v2_services.py,sha256=o1Ke6tS3sSbwN4W
|
|
372
372
|
defi_services/services/lending/morpho_aave_v3_services.py,sha256=bW0TSP-VpMPd0nm-a_gaN1LvaRU_iEbmnaKs7DVkJQw,8270
|
373
373
|
defi_services/services/lending/morpho_compound_services.py,sha256=38AXwi-7yxSrRghS3OCRZrOy9cfJnC3k-yNf1Ep27Ds,14912
|
374
374
|
defi_services/services/lending/onyx_service.py,sha256=CqQcenVidyKYIxNlaTliaYmSI8zV7_zxK_wCQE5s-r4,15401
|
375
|
-
defi_services/services/lending/radiant_v2_services.py,sha256=
|
375
|
+
defi_services/services/lending/radiant_v2_services.py,sha256=FrdD518nJT_dO-XYNezYzm2yDEWBbpQlRJe5VZ09ORw,3147
|
376
376
|
defi_services/services/lending/silo_services.py,sha256=yLw90u_IXEqE3NbfhVAhG1y8qQqo26xSbYXXlh4lL3g,16726
|
377
377
|
defi_services/services/lending/spark_services.py,sha256=68_egY0yOT7YIOVbd8rbHJBJEsL0sOr0zSsTSdw0BUY,1042
|
378
378
|
defi_services/services/lending/strike_service.py,sha256=ZQ9B6Xngo64njwqABOO3CH-ESFmUmQWbisCgVXYKjak,13797
|
@@ -418,6 +418,7 @@ defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py,sha25
|
|
418
418
|
defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py,sha256=q9ZpCb0qLi5amKtL7EL27NDxJ6FBkF14iXYEPhMebfo,1879
|
419
419
|
defi_services/services/lending/lending_info/ethereum/old_aave_v3_eth.py,sha256=tXe5QlEvQzQHgAJjug0MNo1m5bIyThiM7OavhQMsmok,7620
|
420
420
|
defi_services/services/lending/lending_info/ethereum/onyx_eth.py,sha256=3KzLJKNENtnNhk5LjLqgxiIxHwv6BCOcEwqNVR87r8w,3369
|
421
|
+
defi_services/services/lending/lending_info/ethereum/radiant_eth.py,sha256=Re35yFu518L6laEmMv2pKjlsC0iOfFNeck7QDC3xtlU,3234
|
421
422
|
defi_services/services/lending/lending_info/ethereum/silo_eth.py,sha256=XQHpo37RS7DJ4Xjc8n0YK6WeGj5xn5ZOPRIlgTiSkH4,16770
|
422
423
|
defi_services/services/lending/lending_info/ethereum/silo_llama_eth.py,sha256=w9iqoaZgMMO7_v6FKYN7vHLGcliBWcQLRKVDA9dYG_g,3696
|
423
424
|
defi_services/services/lending/lending_info/ethereum/spark_eth.py,sha256=si0P5P2Nl4MSBatRMCJ6reJ6-5D_lqV48n7rfcktrcE,2991
|
@@ -469,8 +470,8 @@ defi_services/utils/memory_storage.py,sha256=BOT8laB0iVSCGE-oDlpWJQLbSC6X2blKX4z
|
|
469
470
|
defi_services/utils/sqrt_price_math.py,sha256=9lgUeWFT4wjl3Vq3b7-jZ2bGvvZx7dDBSfVnM3lsZ8o,5575
|
470
471
|
defi_services/utils/thread_proxy.py,sha256=5Z8biAyEReUkh3vfJSvEv7GwMe3CsE5M8CbghkQtePw,2951
|
471
472
|
defi_services/utils/ton_decode_address.py,sha256=EWKwmC7KtbXpdKgiNK-5j-5lX7fCr17I4EWYs9b43eU,443
|
472
|
-
defi_state_querier-0.5.
|
473
|
-
defi_state_querier-0.5.
|
474
|
-
defi_state_querier-0.5.
|
475
|
-
defi_state_querier-0.5.
|
476
|
-
defi_state_querier-0.5.
|
473
|
+
defi_state_querier-0.5.14.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
|
474
|
+
defi_state_querier-0.5.14.dist-info/METADATA,sha256=fib3UEORv3q3_ML8vsZ3eY0Hk0Qvs3E0_pC056zV6tM,4413
|
475
|
+
defi_state_querier-0.5.14.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
476
|
+
defi_state_querier-0.5.14.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
|
477
|
+
defi_state_querier-0.5.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|