defi-state-querier 0.5.10__py3-none-any.whl → 0.5.12__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.5.10"
1
+ __version__ = "0.5.12"
@@ -1,7 +1,7 @@
1
1
  import logging
2
2
 
3
- from src.defi_services.constants.ton_decimals_constant import TonTokens
4
- from defi_services.constants.network_constants import Chains, NATIVE_TOKEN, NATIVE_TOKENS
3
+ from defi_services.constants.ton_decimals_constant import TonTokens
4
+ from defi_services.constants.network_constants import Chains, NATIVE_TOKENS
5
5
  from defi_services.jobs.queriers.ton_state_querier import TonStateQuerier
6
6
 
7
7
  logger = logging.getLogger("CosmosStateProcessor")
@@ -10,6 +10,7 @@ from defi_services.abis.token.erc20_abi import ERC20_ABI
10
10
  from defi_services.constants.chain_constant import Chain
11
11
  from defi_services.constants.db_constant import DBConst
12
12
  from defi_services.constants.entities.lending_constant import Lending
13
+ from defi_services.constants.network_constants import NATIVE_TOKEN
13
14
  from defi_services.constants.time_constant import TimeConstants
14
15
  from defi_services.jobs.queriers.state_querier import StateQuerier
15
16
  from defi_services.services.lending.lending_info.avalanche.aave_v2_avalanche import AAVE_V2_AVALANCHE
@@ -83,19 +84,20 @@ class AaveV2StateService(ProtocolServices):
83
84
  reserve_key = f"getReserveData_{self.name}_{token_address}_{block_number}".lower()
84
85
  atoken_total_supply_key = f'totalSupply_{value["tToken"]}_{block_number}'.lower()
85
86
  debt_token_total_supply_key = f'totalSupply_{value["dToken"]}_{block_number}'.lower()
86
- sdebt_token_total_supply_key = f'totalSupply_{value["sdToken"]}_{block_number}'.lower()
87
87
  decimals_key = f"decimals_{token_address}_{block_number}".lower()
88
-
89
88
  rpc_calls[reserve_key] = self.get_function_lending_pool_info("getReserveData", [token_address])
90
89
  rpc_calls[atoken_total_supply_key] = self.state_service.get_function_info(
91
90
  value["tToken"], ERC20_ABI, "totalSupply", block_number=block_number)
92
91
  rpc_calls[debt_token_total_supply_key] = self.state_service.get_function_info(
93
92
  value["dToken"], ERC20_ABI, "totalSupply", block_number=block_number)
94
- rpc_calls[sdebt_token_total_supply_key] = self.state_service.get_function_info(
95
- value["sdToken"], ERC20_ABI, "totalSupply", block_number=block_number)
96
93
  rpc_calls[decimals_key] = self.state_service.get_function_info(
97
94
  token_address, ERC20_ABI, "decimals", block_number=block_number)
98
95
 
96
+ if value["sdToken"] != NATIVE_TOKEN:
97
+ sdebt_token_total_supply_key = f'totalSupply_{value["sdToken"]}_{block_number}'.lower()
98
+ rpc_calls[sdebt_token_total_supply_key] = self.state_service.get_function_info(
99
+ value["sdToken"], ERC20_ABI, "totalSupply", block_number=block_number)
100
+
99
101
  return rpc_calls
100
102
 
101
103
  @staticmethod
@@ -173,18 +175,23 @@ class AaveV2StateService(ProtocolServices):
173
175
  decimals_call_id = f"decimals_{token_address}_{block_number}".lower()
174
176
  atoken_total_supply_key = f'totalSupply_{atoken}_{block_number}'.lower()
175
177
  debt_token_total_supply_key = f'totalSupply_{debt_token}_{block_number}'.lower()
176
- sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
177
-
178
- reserve_tokens_info.append({
178
+ data = {
179
179
  'underlying': token_address,
180
180
  'underlying_decimals': decoded_data.get(decimals_call_id),
181
181
  'a_token_supply': decoded_data.get(atoken_total_supply_key),
182
182
  'd_token_supply': decoded_data.get(debt_token_total_supply_key),
183
- 'sd_token_supply': decoded_data.get(sdebt_token_total_supply_key),
184
183
  'supply_apy': reserve_data[3],
185
- 'borrow_apy': reserve_data[4],
186
- 'stable_borrow_apy': reserve_data[5]
187
- })
184
+ 'borrow_apy': reserve_data[4]
185
+ }
186
+ if sdebt_token != NATIVE_TOKEN:
187
+ sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
188
+ data['sd_token_supply'] = decoded_data.get(sdebt_token_total_supply_key)
189
+ data['stable_borrow_apy'] = reserve_data[5]
190
+ else:
191
+ data['sd_token_supply'] = 0
192
+ data['stable_borrow_apy'] = 0
193
+
194
+ reserve_tokens_info.append(data)
188
195
 
189
196
  return reserve_tokens_info
190
197
 
@@ -208,19 +215,19 @@ class AaveV2StateService(ProtocolServices):
208
215
 
209
216
  @classmethod
210
217
  def _calculate_interest_rates(cls, token_info: dict):
211
- total_supply_t = token_info.get('a_token_supply')
212
- total_supply_d = token_info.get('d_token_supply')
213
- total_supply_sd = token_info.get('sd_token_supply')
218
+ total_supply_t = token_info.get('a_token_supply', 0)
219
+ total_supply_d = token_info.get('d_token_supply', 0)
220
+ total_supply_sd = token_info.get('sd_token_supply', 0)
214
221
  total_borrow = total_supply_d + total_supply_sd
215
222
 
216
223
  total_supply = total_supply_t / 10 ** token_info['underlying_decimals']
217
224
  total_borrow = total_borrow / 10 ** token_info['underlying_decimals']
218
225
 
219
- supply_apr = float(token_info['supply_apy']) / 10 ** 27
226
+ supply_apr = float(token_info.get('supply_apy', 0)) / 10 ** 27
220
227
  supply_apy = apr_to_apy(supply_apr)
221
- borrow_apr = float(token_info['borrow_apy']) / 10 ** 27
228
+ borrow_apr = float(token_info.get('borrow_apy', 0)) / 10 ** 27
222
229
  borrow_apy = apr_to_apy(borrow_apr)
223
- stable_borrow_apr = float(token_info['stable_borrow_apy']) / 10 ** 27
230
+ stable_borrow_apr = float(token_info.get('stable_borrow_apy', 0)) / 10 ** 27
224
231
  stable_borrow_apy = apr_to_apy(stable_borrow_apr)
225
232
 
226
233
  return {
@@ -260,21 +267,23 @@ class AaveV2StateService(ProtocolServices):
260
267
  decimals_call_id = f"decimals_{token_address}_{block_number}".lower()
261
268
  atoken_assets_key = f"assets_{atoken}_{block_number}".lower()
262
269
  debt_token_assets_key = f"assets_{debt_token}_{block_number}".lower()
263
- sdebt_token_assets_key = f"assets_{sdebt_token}_{block_number}".lower()
264
270
  atoken_total_supply_key = f'totalSupply_{atoken}_{block_number}'.lower()
265
271
  debt_token_total_supply_key = f'totalSupply_{debt_token}_{block_number}'.lower()
266
- sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
267
-
268
272
  atokens[lower_address] = atoken
269
273
  debt_tokens[lower_address] = debt_token
270
274
  sdebt_tokens[lower_address] = sdebt_token
271
275
  decimals[lower_address] = decoded_data.get(decimals_call_id)
272
276
  asset_data_tokens[atoken] = decoded_data.get(atoken_assets_key)
273
277
  asset_data_tokens[debt_token] = decoded_data.get(debt_token_assets_key)
274
- asset_data_tokens[sdebt_token] = decoded_data.get(sdebt_token_assets_key)
275
278
  total_supply_tokens[atoken] = decoded_data.get(atoken_total_supply_key)
276
279
  total_supply_tokens[debt_token] = decoded_data.get(debt_token_total_supply_key)
277
- total_supply_tokens[sdebt_token] = decoded_data.get(sdebt_token_total_supply_key)
280
+ if sdebt_token != NATIVE_TOKEN:
281
+ sdebt_token_assets_key = f"assets_{sdebt_token}_{block_number}".lower()
282
+ sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
283
+ asset_data_tokens[sdebt_token] = decoded_data.get(sdebt_token_assets_key)
284
+ total_supply_tokens[sdebt_token] = decoded_data.get(sdebt_token_total_supply_key)
285
+ interest_rate[lower_address]['stable_borrow_apy'] = float(reserve_data[5]) / 10 ** 27
286
+
278
287
 
279
288
  asset_price_key = f"getAssetsPrices_{self.name}_{block_number}".lower()
280
289
  if not token_prices and asset_price_key in decoded_data:
@@ -303,17 +312,19 @@ class AaveV2StateService(ProtocolServices):
303
312
  value = reserves_info[token]
304
313
  atoken_balance_of_key = f'balanceOf_{value["tToken"]}_{wallet}_{block_number}'.lower()
305
314
  debt_token_balance_of_key = f'balanceOf_{value["dToken"]}_{wallet}_{block_number}'.lower()
306
- sdebt_token_balance_of_key = f'balanceOf_{value["sdToken"]}_{wallet}_{block_number}'.lower()
307
315
  decimals_key = f"decimals_{token}_{block_number}".lower()
308
316
 
309
317
  rpc_calls[atoken_balance_of_key] = self.state_service.get_function_info(
310
318
  value["tToken"], ERC20_ABI, "balanceOf", [wallet], block_number=block_number)
311
319
  rpc_calls[debt_token_balance_of_key] = self.state_service.get_function_info(
312
320
  value["dToken"], ERC20_ABI, "balanceOf", [wallet], block_number=block_number)
313
- rpc_calls[sdebt_token_balance_of_key] = self.state_service.get_function_info(
314
- value["sdToken"], ERC20_ABI, "balanceOf", [wallet], block_number=block_number)
315
321
  rpc_calls[decimals_key] = self.state_service.get_function_info(
316
322
  token, ERC20_ABI, "decimals", block_number=block_number)
323
+ if value["sdToken"] != NATIVE_TOKEN:
324
+ sdebt_token_balance_of_key = f'balanceOf_{value["sdToken"]}_{wallet}_{block_number}'.lower()
325
+ rpc_calls[sdebt_token_balance_of_key] = self.state_service.get_function_info(
326
+ value["sdToken"], ERC20_ABI, "balanceOf", [wallet], block_number=block_number)
327
+
317
328
  if health_factor:
318
329
  rpc_calls.update(self.get_health_factor_function_info(wallet, reserves_info, block_number))
319
330
 
@@ -375,8 +386,12 @@ class AaveV2StateService(ProtocolServices):
375
386
  get_decimals_id = f"decimals_{token}_{block_number}".lower()
376
387
  deposit_amount[token] = decoded_data.get(get_total_deposit_id)
377
388
  borrow_amount[token] = decoded_data.get(get_total_borrow_id)
378
- stable_borrow_amount[token] = decoded_data.get(get_total_stable_borrow_id)
379
389
  decimals[token] = decoded_data.get(get_decimals_id)
390
+ if value['sdToken'] != NATIVE_TOKEN:
391
+ stable_borrow_amount[token] = decoded_data.get(get_total_stable_borrow_id)
392
+ else:
393
+ stable_borrow_amount[token] = 0
394
+
380
395
  data = self.get_wallet_deposit_borrow_balance(
381
396
  reserves_info, token_prices, decimals, deposit_amount,
382
397
  borrow_amount, stable_borrow_amount
@@ -10,12 +10,13 @@ from defi_services.abis.token.erc20_abi import ERC20_ABI
10
10
  from defi_services.constants.chain_constant import Chain
11
11
  from defi_services.constants.db_constant import DBConst
12
12
  from defi_services.constants.entities.lending_constant import Lending
13
+ from defi_services.constants.network_constants import NATIVE_TOKEN
13
14
  from defi_services.constants.time_constant import TimeConstants
14
15
  from defi_services.jobs.queriers.state_querier import StateQuerier
15
16
  from defi_services.services.lending.aave_v2_services import AaveV2StateService
16
17
  from defi_services.services.lending.lending_info.arbitrum.aave_v3_arbitrum import AAVE_V3_ARB
17
18
  from defi_services.services.lending.lending_info.avalanche.aave_v3_avalanche import AAVE_V3_AVALANCHE
18
- from defi_services.services.lending.lending_info.ethereum.aave_v3_eth import AAVE_V3_ETH
19
+ from defi_services.services.lending.lending_info.ethereum.old_aave_v3_eth import AAVE_V3_ETH
19
20
  from defi_services.services.lending.lending_info.fantom.aave_v3_ftm import AAVE_V3_FTM
20
21
  from defi_services.services.lending.lending_info.optimism.aave_v3_optimism import AAVE_V3_OPTIMISM
21
22
  from defi_services.services.lending.lending_info.polygon.aave_v3_polygon import AAVE_V3_POLYGON
@@ -88,25 +89,33 @@ class AaveV3StateService(AaveV2StateService):
88
89
  for token_address, reserve_info in reserves_info.items():
89
90
  get_reserve_data_call_id = f'getReserveData_{self.name}_{token_address}_{block_number}'.lower()
90
91
  reserve_data = decoded_data.get(get_reserve_data_call_id)
91
-
92
92
  atoken = reserve_data[8].lower()
93
- sdebt_token = reserve_data[9].lower()
94
93
  debt_token = reserve_data[10].lower()
95
94
  decimals_call_id = f"decimals_{token_address}_{block_number}".lower()
96
95
  atoken_total_supply_key = f'totalSupply_{atoken}_{block_number}'.lower()
97
96
  debt_token_total_supply_key = f'totalSupply_{debt_token}_{block_number}'.lower()
98
- sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
97
+ sdebt_token = reserve_data[9].lower()
99
98
 
100
- reserve_tokens_info.append({
99
+
100
+ data = {
101
101
  'underlying': token_address,
102
102
  'underlying_decimals': decoded_data.get(decimals_call_id),
103
103
  'a_token_supply': decoded_data.get(atoken_total_supply_key),
104
104
  'd_token_supply': decoded_data.get(debt_token_total_supply_key),
105
- 'sd_token_supply': decoded_data.get(sdebt_token_total_supply_key),
105
+
106
106
  'supply_apy': reserve_data[2],
107
107
  'borrow_apy': reserve_data[4],
108
- 'stable_borrow_apy': reserve_data[5]
109
- })
108
+
109
+ }
110
+ if sdebt_token != NATIVE_TOKEN:
111
+ sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
112
+ data['sd_token_supply'] = decoded_data.get(sdebt_token_total_supply_key)
113
+ data['stable_borrow_apy'] = reserve_data[5]
114
+ else:
115
+ data['sd_token_supply'] = 0
116
+ data['stable_borrow_apy'] = 0
117
+
118
+ reserve_tokens_info.append(data)
110
119
 
111
120
  return reserve_tokens_info
112
121
 
@@ -121,17 +130,17 @@ class AaveV3StateService(AaveV2StateService):
121
130
  reserve_key = f"getReserveData_{self.name}_{token_address}_{block_number}".lower()
122
131
  atoken_total_supply_key = f'totalSupply_{value["tToken"]}_{block_number}'.lower()
123
132
  debt_token_total_supply_key = f'totalSupply_{value["dToken"]}_{block_number}'.lower()
124
- sdebt_token_total_supply_key = f'totalSupply_{value["sdToken"]}_{block_number}'.lower()
125
133
  decimals_key = f"decimals_{token_address}_{block_number}".lower()
126
134
  for reward_token in reward_tokens:
127
135
  atoken_assets_key = f"getRewardsData_{value['tToken']}_{reward_token}_{block_number}".lower()
128
136
  debt_token_assets_key = f"getRewardsData_{value['dToken']}_{reward_token}_{block_number}".lower()
129
- sdebt_token_assets_key = f"getRewardsData_{value['sdToken']}_{reward_token}_{block_number}".lower()
130
137
  rpc_calls[atoken_assets_key] = self.get_function_incentive_info(
131
138
  "getRewardsData", [value['tToken'], reward_token], block_number)
132
139
  rpc_calls[debt_token_assets_key] = self.get_function_incentive_info(
133
140
  "getRewardsData", [value['dToken'], reward_token], block_number)
134
- rpc_calls[sdebt_token_assets_key] = self.get_function_incentive_info(
141
+ if value['sdToken'] != NATIVE_TOKEN:
142
+ sdebt_token_assets_key = f"getRewardsData_{value['sdToken']}_{reward_token}_{block_number}".lower()
143
+ rpc_calls[sdebt_token_assets_key] = self.get_function_incentive_info(
135
144
  "getRewardsData", [value['sdToken'], reward_token], block_number)
136
145
 
137
146
  rpc_calls[reserve_key] = self.get_function_lending_pool_info("getReserveData", [token_address])
@@ -139,11 +148,14 @@ class AaveV3StateService(AaveV2StateService):
139
148
  value["tToken"], ERC20_ABI, "totalSupply", block_number=block_number)
140
149
  rpc_calls[debt_token_total_supply_key] = self.state_service.get_function_info(
141
150
  value["dToken"], ERC20_ABI, "totalSupply", block_number=block_number)
142
- rpc_calls[sdebt_token_total_supply_key] = self.state_service.get_function_info(
143
- value["sdToken"], ERC20_ABI, "totalSupply", block_number=block_number)
144
151
  rpc_calls[decimals_key] = self.state_service.get_function_info(
145
152
  token_address, ERC20_ABI, "decimals", block_number=block_number)
146
153
 
154
+ if value['sdToken'] != NATIVE_TOKEN:
155
+ sdebt_token_total_supply_key = f'totalSupply_{value["sdToken"]}_{block_number}'.lower()
156
+ rpc_calls[sdebt_token_total_supply_key] = self.state_service.get_function_info(
157
+ value["sdToken"], ERC20_ABI, "totalSupply", block_number=block_number)
158
+
147
159
  return rpc_calls
148
160
 
149
161
  def get_apy_lending_pool_deprecated(
@@ -240,29 +252,32 @@ class AaveV3StateService(AaveV2StateService):
240
252
  sdebt_token = reserve_data[8].lower()
241
253
  debt_token = reserve_data[9].lower()
242
254
  decimals_call_id = f"decimals_{token_address}_{block_number}".lower()
243
-
244
255
  atoken_total_supply_key = f'totalSupply_{atoken}_{block_number}'.lower()
245
256
  debt_token_total_supply_key = f'totalSupply_{debt_token}_{block_number}'.lower()
246
- sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
247
257
  asset_data_tokens[atoken] = {}
248
258
  asset_data_tokens[debt_token] = {}
249
- asset_data_tokens[sdebt_token] = {}
259
+ if sdebt_token != NATIVE_TOKEN:
260
+ asset_data_tokens[sdebt_token] = {}
261
+
250
262
  total_supply_tokens[atoken] = {}
251
263
  for reward_token in reward_tokens:
252
264
  atoken_assets_key = f"getRewardsData_{atoken}_{reward_token}_{block_number}".lower()
253
265
  debt_token_assets_key = f"getRewardsData_{debt_token}_{reward_token}_{block_number}".lower()
254
- sdebt_token_assets_key = f"getRewardsData_{sdebt_tokens}_{reward_token}_{block_number}".lower()
255
266
  asset_data_tokens[atoken][reward_token] = decoded_data.get(atoken_assets_key)
256
267
  asset_data_tokens[debt_token][reward_token] = decoded_data.get(debt_token_assets_key)
257
- asset_data_tokens[sdebt_token][reward_token] = decoded_data.get(sdebt_token_assets_key)
258
268
  total_supply_tokens[atoken][reward_token] = decoded_data.get(atoken_total_supply_key)
269
+ if sdebt_token != NATIVE_TOKEN:
270
+ sdebt_token_assets_key = f"getRewardsData_{sdebt_tokens}_{reward_token}_{block_number}".lower()
271
+ asset_data_tokens[sdebt_token][reward_token] = decoded_data.get(sdebt_token_assets_key)
259
272
 
260
273
  atokens[lower_address] = atoken
261
274
  debt_tokens[lower_address] = debt_token
262
275
  sdebt_tokens[lower_address] = sdebt_token
263
276
  decimals[lower_address] = decoded_data.get(decimals_call_id)
264
277
  total_supply_tokens[debt_token] = decoded_data.get(debt_token_total_supply_key)
265
- total_supply_tokens[sdebt_token] = decoded_data.get(sdebt_token_total_supply_key)
278
+ if sdebt_token != NATIVE_TOKEN:
279
+ sdebt_token_total_supply_key = f'totalSupply_{sdebt_token}_{block_number}'.lower()
280
+ total_supply_tokens[sdebt_token] = decoded_data.get(sdebt_token_total_supply_key)
266
281
 
267
282
  asset_price_key = f"getAssetsPrices_{self.name}_{block_number}".lower()
268
283
  if not token_prices and asset_price_key in decoded_data:
@@ -7,144 +7,5 @@ AAVE_V3_ETH = {
7
7
  "type": "LENDING_POOL",
8
8
  "poolToken": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
9
9
  "forked": "aave-v3",
10
- "reservesList": {
11
- "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
12
- "tToken": "0x4d5f47fa6a74757f35c14fd3a6ef8e3c9bc514e8",
13
- "sdToken": "0x102633152313c81cd80419b6ecf66d14ad68949a",
14
- "dToken": "0xea51d7853eefb32b6ee06b1c12e6dcca88be0ffe",
15
- "liquidationThreshold": 0.83
16
- },
17
- "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0": {
18
- "tToken": "0x0b925ed163218f6662a35e0f0371ac234f9e9371",
19
- "sdToken": "0x39739943199c0fbfe9e5f1b5b160cd73a64cb85d",
20
- "dToken": "0xc96113eed8cab59cd8a66813bcb0ceb29f06d2e4",
21
- "liquidationThreshold": 0.81
22
- },
23
- "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
24
- "tToken": "0x5ee5bf7ae06d1be5997a1a72006fe6c607ec6de8",
25
- "sdToken": "0xa1773f1ccf6db192ad8fe826d15fe1d328b03284",
26
- "dToken": "0x40aabef1aa8f0eec637e0e7d92fbffb2f26a8b7b",
27
- "liquidationThreshold": 0.78
28
- },
29
- "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
30
- "tToken": "0x98c23e9d8f34fefb1b7bd6a91b7ff122f4e16f5c",
31
- "sdToken": "0xb0fe3d292f4bd50de902ba5bdf120ad66e9d7a39",
32
- "dToken": "0x72e95b8931767c79ba4eee721354d6e99a61d004",
33
- "liquidationThreshold": 0.8
34
- },
35
- "0x6b175474e89094c44da98b954eedeac495271d0f": {
36
- "tToken": "0x018008bfb33d285247a21d44e50697654f754e63",
37
- "sdToken": "0x413adac9e2ef8683adf5ddaece8f19613d60d1bb",
38
- "dToken": "0xcf8d0c70c850859266f5c338b38f9d663181c314",
39
- "liquidationThreshold": 0.8
40
- },
41
- "0x514910771af9ca656af840dff83e8264ecf986ca": {
42
- "tToken": "0x5e8c8a7243651db1384c0ddfdbe39761e8e7e51a",
43
- "sdToken": "0x63b1129ca97d2b9f97f45670787ac12a9df1110a",
44
- "dToken": "0x4228f8895c7dda20227f6a5c6751b8ebf19a6ba8",
45
- "liquidationThreshold": 0.68
46
- },
47
- "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9": {
48
- "tToken": "0xa700b4eb416be35b2911fd5dee80678ff64ff6c9",
49
- "sdToken": "0x268497bf083388b1504270d0e717222d3a87d6f2",
50
- "dToken": "0xbae535520abd9f8c85e58929e0006a2c8b372f74",
51
- "liquidationThreshold": 0.73
52
- },
53
- "0xbe9895146f7af43049ca1c1ae358b0541ea49704": {
54
- "tToken": "0x977b6fc5de62598b08c85ac8cf2b745874e8b78c",
55
- "sdToken": "0x82be6012cea6d147b968ebaea5ceecf6a5b4f493",
56
- "dToken": "0x0c91bca95b5fe69164ce583a2ec9429a569798ed",
57
- "liquidationThreshold": 0.77
58
- },
59
- "0xdac17f958d2ee523a2206206994597c13d831ec7": {
60
- "tToken": "0x23878914efe38d27c4d67ab83ed1b93a74d4086a",
61
- "sdToken": "0x822fa72df1f229c3900f5ad6c3fa2c424d691622",
62
- "dToken": "0x6df1c1e379bc5a00a7b4c6e67a203333772f45a8",
63
- "liquidationThreshold": 0.76
64
- },
65
- "0xae78736cd615f374d3085123a210448e74fc6393": {
66
- "tToken": "0xcc9ee9483f662091a1de4795249e24ac0ac2630f",
67
- "sdToken": "0x1d1906f909cae494c7441604dafdddbd0485a925",
68
- "dToken": "0xae8593dd575fe29a9745056aa91c4b746eee62c8",
69
- "liquidationThreshold": 0.77
70
- },
71
- "0x5f98805a4e8be255a32880fdec7f6728c6568ba0": {
72
- "tToken": "0x3fe6a295459fae07df8a0cecc36f37160fe86aa9",
73
- "sdToken": "0x37a6b708fdb1483c231961b9a7f145261e815fc3",
74
- "dToken": "0x33652e48e4b74d18520f11bfe58edd2ed2cec5a2",
75
- "liquidationThreshold": 0.8
76
- },
77
- "0xd533a949740bb3306d119cc777fa900ba034cd52": {
78
- "tToken": "0x7b95ec873268a6bfc6427e7a28e396db9d0ebc65",
79
- "sdToken": "0x90d9cd005e553111eb8c9c31abe9706a186b6048",
80
- "dToken": "0x1b7d3f4b3c032a5ae656e30eea4e8e1ba376068f",
81
- "liquidationThreshold": 0.41
82
- },
83
- "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {
84
- "tToken": "0x8a458a9dc9048e005d22849f470891b840296619",
85
- "sdToken": "0x0496372be7e426d28e89debf01f19f014d5938be",
86
- "dToken": "0x6efc73e54e41b27d2134ff9f98f15550f30df9b1",
87
- "liquidationThreshold": 0.7
88
- },
89
- "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f": {
90
- "tToken": "0xc7b4c17861357b8abb91f25581e7263e08dcb59c",
91
- "sdToken": "0x478e1ec1a2beed94c1407c951e4b9e22d53b2501",
92
- "dToken": "0x8d0de040e8aad872ec3c33a3776de9152d3c34ca",
93
- "liquidationThreshold": 0.65
94
- },
95
- "0xba100000625a3754423978a60c9317c58a424e3d": {
96
- "tToken": "0x2516e7b3f76294e03c42aa4c5b5b4dce9c436fb8",
97
- "sdToken": "0xb368d45aaaa07ee2c6275cb320d140b22de43cdd",
98
- "dToken": "0x3d3efceb4ff0966d34d9545d3a2fa2dcdbf451f2",
99
- "liquidationThreshold": 0.62
100
- },
101
- "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984": {
102
- "tToken": "0xf6d2224916ddfbbab6e6bd0d1b7034f4ae0cab18",
103
- "sdToken": "0x2fec76324a0463c46f32e74a86d1cf94c02158dc",
104
- "dToken": "0xf64178ebd2e2719f2b1233bcb5ef6db4bcc4d09a",
105
- "liquidationThreshold": 0.77
106
- },
107
- "0x5a98fcbea516cf06857215779fd812ca3bef1b32": {
108
- "tToken": "0x9a44fd41566876a39655f74971a3a6ea0a17a454",
109
- "sdToken": "0xa0a5bf5781aeb548db9d4226363b9e89287c5fd2",
110
- "dToken": "0xc30808705c01289a3d306ca9cab081ba9114ec82",
111
- "liquidationThreshold": 0.5
112
- },
113
- "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72": {
114
- "tToken": "0x545bd6c032efdde65a377a6719def2796c8e0f2e",
115
- "sdToken": "0x7617d02e311cde347a0cb45bb7df2926bbaf5347",
116
- "dToken": "0xd180d7fdd4092f07428efe801e17bc03576b3192",
117
- "liquidationThreshold": 0.49
118
- },
119
- "0x111111111117dc0aa78b770fa6a738034120c302": {
120
- "tToken": "0x71aef7b30728b9bb371578f36c5a1f1502a5723e",
121
- "sdToken": "0x4b62bfaff61ab3985798e5202d2d167f567d0bcd",
122
- "dToken": "0xa38fca8c6bf9bda52e76eb78f08caa3be7c5a970",
123
- "liquidationThreshold": 0.67
124
- },
125
- "0x853d955acef822db058eb8505911ed77f175b99e": {
126
- "tToken": "0xd4e245848d6e1220dbe62e155d89fa327e43cb06",
127
- "sdToken": "0x219640546c0dfddcb9ab3bcda89b324e0a376367",
128
- "dToken": "0x88b8358f5bc87c2d7e116cca5b65a9eeb2c5ea3f",
129
- "liquidationThreshold": 0.75
130
- },
131
- "0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f": {
132
- "tToken": "0x00907f9921424583e7ffbfedf84f92b7b2be4977",
133
- "sdToken": "0x3f3df7266da30102344a813f1a3d07f5f041b5ac",
134
- "dToken": "0x786dbff3f1292ae8f92ea68cf93c30b34b1ed04b",
135
- "liquidationThreshold": 0.0
136
- },
137
- "0xd33526068d116ce69f19a9ee46f0bd304f21a51f": {
138
- "tToken": "0xb76cf92076adbf1d9c39294fa8e7a67579fde357",
139
- "sdToken": "0x41e330fd8f7ea31e2e8f02cc0c9392d1403597b4",
140
- "dToken": "0x8988eca19d502fd8b9ccd03fa3bd20a6f599bc2a",
141
- "liquidationThreshold": 0.0
142
- },
143
- "0x83f20f44975d03b1b09e64809b757c47f942beea": {
144
- "tToken": "0x4c612e3b15b96ff9a6faed838f8d07d479a8dd4c",
145
- "sdToken": "0x48bc45f084988bc01933ea93eeffebc0416534f6",
146
- "dToken": "0x8db9d35e117d8b93c6ca9b644b25bad5d9908141",
147
- "liquidationThreshold": 0.8
148
- }
149
- }
10
+ "reservesList": {'0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2': {'tToken': '0x4d5f47fa6a74757f35c14fd3a6ef8e3c9bc514e8', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xea51d7853eefb32b6ee06b1c12e6dcca88be0ffe', 'loanToValue': 0.805, 'liquidationThreshold': 0.83}, '0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0': {'tToken': '0x0b925ed163218f6662a35e0f0371ac234f9e9371', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xc96113eed8cab59cd8a66813bcb0ceb29f06d2e4', 'loanToValue': 0.785, 'liquidationThreshold': 0.81}, '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599': {'tToken': '0x5ee5bf7ae06d1be5997a1a72006fe6c607ec6de8', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x40aabef1aa8f0eec637e0e7d92fbffb2f26a8b7b', 'loanToValue': 0.73, 'liquidationThreshold': 0.78}, '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48': {'tToken': '0x98c23e9d8f34fefb1b7bd6a91b7ff122f4e16f5c', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x72e95b8931767c79ba4eee721354d6e99a61d004', 'loanToValue': 0.75, 'liquidationThreshold': 0.78}, '0x6b175474e89094c44da98b954eedeac495271d0f': {'tToken': '0x018008bfb33d285247a21d44e50697654f754e63', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xcf8d0c70c850859266f5c338b38f9d663181c314', 'loanToValue': 0.63, 'liquidationThreshold': 0.77}, '0x514910771af9ca656af840dff83e8264ecf986ca': {'tToken': '0x5e8c8a7243651db1384c0ddfdbe39761e8e7e51a', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x4228f8895c7dda20227f6a5c6751b8ebf19a6ba8', 'loanToValue': 0.66, 'liquidationThreshold': 0.71}, '0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9': {'tToken': '0xa700b4eb416be35b2911fd5dee80678ff64ff6c9', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xbae535520abd9f8c85e58929e0006a2c8b372f74', 'loanToValue': 0.66, 'liquidationThreshold': 0.73}, '0xbe9895146f7af43049ca1c1ae358b0541ea49704': {'tToken': '0x977b6fc5de62598b08c85ac8cf2b745874e8b78c', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x0c91bca95b5fe69164ce583a2ec9429a569798ed', 'loanToValue': 0.75, 'liquidationThreshold': 0.79}, '0xdac17f958d2ee523a2206206994597c13d831ec7': {'tToken': '0x23878914efe38d27c4d67ab83ed1b93a74d4086a', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x6df1c1e379bc5a00a7b4c6e67a203333772f45a8', 'loanToValue': 0.75, 'liquidationThreshold': 0.78}, '0xae78736cd615f374d3085123a210448e74fc6393': {'tToken': '0xcc9ee9483f662091a1de4795249e24ac0ac2630f', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xae8593dd575fe29a9745056aa91c4b746eee62c8', 'loanToValue': 0.75, 'liquidationThreshold': 0.79}, '0x5f98805a4e8be255a32880fdec7f6728c6568ba0': {'tToken': '0x3fe6a295459fae07df8a0cecc36f37160fe86aa9', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x33652e48e4b74d18520f11bfe58edd2ed2cec5a2', 'loanToValue': 0.0, 'liquidationThreshold': 0.77}, '0xd533a949740bb3306d119cc777fa900ba034cd52': {'tToken': '0x7b95ec873268a6bfc6427e7a28e396db9d0ebc65', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x1b7d3f4b3c032a5ae656e30eea4e8e1ba376068f', 'loanToValue': 0.35, 'liquidationThreshold': 0.41}, '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2': {'tToken': '0x8a458a9dc9048e005d22849f470891b840296619', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x6efc73e54e41b27d2134ff9f98f15550f30df9b1', 'loanToValue': 0.65, 'liquidationThreshold': 0.7}, '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f': {'tToken': '0xc7b4c17861357b8abb91f25581e7263e08dcb59c', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x8d0de040e8aad872ec3c33a3776de9152d3c34ca', 'loanToValue': 0.49, 'liquidationThreshold': 0.65}, '0xba100000625a3754423978a60c9317c58a424e3d': {'tToken': '0x2516e7b3f76294e03c42aa4c5b5b4dce9c436fb8', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x3d3efceb4ff0966d34d9545d3a2fa2dcdbf451f2', 'loanToValue': 0.57, 'liquidationThreshold': 0.59}, '0x1f9840a85d5af5bf1d1762f925bdaddc4201f984': {'tToken': '0xf6d2224916ddfbbab6e6bd0d1b7034f4ae0cab18', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xf64178ebd2e2719f2b1233bcb5ef6db4bcc4d09a', 'loanToValue': 0.65, 'liquidationThreshold': 0.74}, '0x5a98fcbea516cf06857215779fd812ca3bef1b32': {'tToken': '0x9a44fd41566876a39655f74971a3a6ea0a17a454', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xc30808705c01289a3d306ca9cab081ba9114ec82', 'loanToValue': 0.4, 'liquidationThreshold': 0.5}, '0xc18360217d8f7ab5e7c516566761ea12ce7f9d72': {'tToken': '0x545bd6c032efdde65a377a6719def2796c8e0f2e', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xd180d7fdd4092f07428efe801e17bc03576b3192', 'loanToValue': 0.39, 'liquidationThreshold': 0.49}, '0x111111111117dc0aa78b770fa6a738034120c302': {'tToken': '0x71aef7b30728b9bb371578f36c5a1f1502a5723e', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xa38fca8c6bf9bda52e76eb78f08caa3be7c5a970', 'loanToValue': 0.57, 'liquidationThreshold': 0.67}, '0x853d955acef822db058eb8505911ed77f175b99e': {'tToken': '0xd4e245848d6e1220dbe62e155d89fa327e43cb06', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x88b8358f5bc87c2d7e116cca5b65a9eeb2c5ea3f', 'loanToValue': 0.0, 'liquidationThreshold': 0.72}, '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f': {'tToken': '0x00907f9921424583e7ffbfedf84f92b7b2be4977', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x786dbff3f1292ae8f92ea68cf93c30b34b1ed04b', 'loanToValue': 0.0, 'liquidationThreshold': 0.0}, '0xd33526068d116ce69f19a9ee46f0bd304f21a51f': {'tToken': '0xb76cf92076adbf1d9c39294fa8e7a67579fde357', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x8988eca19d502fd8b9ccd03fa3bd20a6f599bc2a', 'loanToValue': 0.0, 'liquidationThreshold': 0.0}, '0x83f20f44975d03b1b09e64809b757c47f942beea': {'tToken': '0x4c612e3b15b96ff9a6faed838f8d07d479a8dd4c', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x8db9d35e117d8b93c6ca9b644b25bad5d9908141', 'loanToValue': 0.75, 'liquidationThreshold': 0.78}, '0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6': {'tToken': '0x1ba9843bd4327c6c77011406de5fa8749f7e3479', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x655568bdd6168325ec7e58bf39b21a856f906dc2', 'loanToValue': 0.0, 'liquidationThreshold': 0.37}, '0xdefa4e8a7bcba345f687a2f1456f5edd9ce97202': {'tToken': '0x5b502e3796385e1e9755d7043b9c945c3accec9c', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x253127ffc04981cea8932f406710661c2f2c3fd2', 'loanToValue': 0.0, 'liquidationThreshold': 0.37}, '0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0': {'tToken': '0x82f9c5ad306bba1ad0de49bb5fa6f01bf61085ef', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x68e9f0ad4e6f8f5db70f6923d4d6d5b225b83b16', 'loanToValue': 0.0, 'liquidationThreshold': 0.42}, '0xf939e0a03fb07f59a73314e73794be0e57ac1b4e': {'tToken': '0xb82fa9f31612989525992fcfbb09ab22eff5c85a', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x028f7886f3e937f8479efad64f31b3fe1119857a', 'loanToValue': 0.0, 'liquidationThreshold': 0.0}, '0x6c3ea9036406852006290770bedfcaba0e23a0e8': {'tToken': '0x0c0d01abf3e6adfca0989ebba9d6e85dd58eab1e', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x57b67e4de077085fd0af2174e9c14871be664546', 'loanToValue': 0.0, 'liquidationThreshold': 0.0}, '0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee': {'tToken': '0xbdfa7b7893081b35fb54027489e2bc7a38275129', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x77ad9bf13a52517ad698d65913e8d381300c8bf3', 'loanToValue': 0.725, 'liquidationThreshold': 0.75}, '0xf1c9acdc66974dfb6decb12aa385b9cd01190e38': {'tToken': '0x927709711794f3de5ddbf1d176bee2d55ba13c21', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x8838eeff2af391863e1bb8b1df563f86743a8470', 'loanToValue': 0.725, 'liquidationThreshold': 0.75}, '0x4c9edd5852cd905f086c759e8383e09bff1e68b3': {'tToken': '0x4f5923fc5fd4a93352581b38b7cd26943012decf', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x015396e1f286289ae23a762088e863b3ec465145', 'loanToValue': 0.72, 'liquidationThreshold': 0.75}, '0xa35b1b31ce002fbf2058d22f30f95d405200a15b': {'tToken': '0x1c0e06a0b1a4c160c17545ff2a951bfca57c0002', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x08a8dc81aea67f84745623ac6c72cda3967aab8b', 'loanToValue': 0.745, 'liquidationThreshold': 0.77}, '0x9d39a5de30e57443bff2a8307a4256c8797a3497': {'tToken': '0x4579a27af00a62c0eb156349f31b345c08386419', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xeffde9bfa8ec77c14c364055a200746d6e12bed6', 'loanToValue': 0.72, 'liquidationThreshold': 0.75}, '0x18084fba666a33d37592fa2633fd49a74dd93a88': {'tToken': '0x10ac93971cdb1f5c778144084242374473c350da', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xac50890a80a2731eb1ea2e9b4f29569ceb06d960', 'loanToValue': 0.73, 'liquidationThreshold': 0.78}, '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf': {'tToken': '0x5c647ce0ae10658ec44fa4e11a51c96e94efd1dd', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0xeb284a70557efe3591b9e6d9d720040e02c54a4d', 'loanToValue': 0.73, 'liquidationThreshold': 0.78}, '0xdc035d45d973e3ec169d2276ddab16f1e407384f': {'tToken': '0x32a6268f9ba3642dda7892add74f1d34469a4259', 'sdToken': '0x0000000000000000000000000000000000000000', 'dToken': '0x490e0e6255bf65b43e2e02f7acb783c5e04572ff', 'loanToValue': 0.75, 'liquidationThreshold': 0.78}}
150
11
  }
@@ -0,0 +1,150 @@
1
+ AAVE_V3_ETH = {
2
+ "address": "0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2",
3
+ "name": "AAVE V3 Lending Pool",
4
+ "stakedIncentiveAddress": '0x8164cc65827dcfe994ab23944cbc90e0aa80bfcb',
5
+ "rewardTokensList": [],
6
+ "oracleAddress": "0x54586be62e3c3580375ae3723c145253060ca0c2",
7
+ "type": "LENDING_POOL",
8
+ "poolToken": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
9
+ "forked": "aave-v3",
10
+ "reservesList": {
11
+ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
12
+ "tToken": "0x4d5f47fa6a74757f35c14fd3a6ef8e3c9bc514e8",
13
+ "sdToken": "0x102633152313c81cd80419b6ecf66d14ad68949a",
14
+ "dToken": "0xea51d7853eefb32b6ee06b1c12e6dcca88be0ffe",
15
+ "liquidationThreshold": 0.83
16
+ },
17
+ "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0": {
18
+ "tToken": "0x0b925ed163218f6662a35e0f0371ac234f9e9371",
19
+ "sdToken": "0x39739943199c0fbfe9e5f1b5b160cd73a64cb85d",
20
+ "dToken": "0xc96113eed8cab59cd8a66813bcb0ceb29f06d2e4",
21
+ "liquidationThreshold": 0.81
22
+ },
23
+ "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
24
+ "tToken": "0x5ee5bf7ae06d1be5997a1a72006fe6c607ec6de8",
25
+ "sdToken": "0xa1773f1ccf6db192ad8fe826d15fe1d328b03284",
26
+ "dToken": "0x40aabef1aa8f0eec637e0e7d92fbffb2f26a8b7b",
27
+ "liquidationThreshold": 0.78
28
+ },
29
+ "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
30
+ "tToken": "0x98c23e9d8f34fefb1b7bd6a91b7ff122f4e16f5c",
31
+ "sdToken": "0xb0fe3d292f4bd50de902ba5bdf120ad66e9d7a39",
32
+ "dToken": "0x72e95b8931767c79ba4eee721354d6e99a61d004",
33
+ "liquidationThreshold": 0.8
34
+ },
35
+ "0x6b175474e89094c44da98b954eedeac495271d0f": {
36
+ "tToken": "0x018008bfb33d285247a21d44e50697654f754e63",
37
+ "sdToken": "0x413adac9e2ef8683adf5ddaece8f19613d60d1bb",
38
+ "dToken": "0xcf8d0c70c850859266f5c338b38f9d663181c314",
39
+ "liquidationThreshold": 0.8
40
+ },
41
+ "0x514910771af9ca656af840dff83e8264ecf986ca": {
42
+ "tToken": "0x5e8c8a7243651db1384c0ddfdbe39761e8e7e51a",
43
+ "sdToken": "0x63b1129ca97d2b9f97f45670787ac12a9df1110a",
44
+ "dToken": "0x4228f8895c7dda20227f6a5c6751b8ebf19a6ba8",
45
+ "liquidationThreshold": 0.68
46
+ },
47
+ "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9": {
48
+ "tToken": "0xa700b4eb416be35b2911fd5dee80678ff64ff6c9",
49
+ "sdToken": "0x268497bf083388b1504270d0e717222d3a87d6f2",
50
+ "dToken": "0xbae535520abd9f8c85e58929e0006a2c8b372f74",
51
+ "liquidationThreshold": 0.73
52
+ },
53
+ "0xbe9895146f7af43049ca1c1ae358b0541ea49704": {
54
+ "tToken": "0x977b6fc5de62598b08c85ac8cf2b745874e8b78c",
55
+ "sdToken": "0x82be6012cea6d147b968ebaea5ceecf6a5b4f493",
56
+ "dToken": "0x0c91bca95b5fe69164ce583a2ec9429a569798ed",
57
+ "liquidationThreshold": 0.77
58
+ },
59
+ "0xdac17f958d2ee523a2206206994597c13d831ec7": {
60
+ "tToken": "0x23878914efe38d27c4d67ab83ed1b93a74d4086a",
61
+ "sdToken": "0x822fa72df1f229c3900f5ad6c3fa2c424d691622",
62
+ "dToken": "0x6df1c1e379bc5a00a7b4c6e67a203333772f45a8",
63
+ "liquidationThreshold": 0.76
64
+ },
65
+ "0xae78736cd615f374d3085123a210448e74fc6393": {
66
+ "tToken": "0xcc9ee9483f662091a1de4795249e24ac0ac2630f",
67
+ "sdToken": "0x1d1906f909cae494c7441604dafdddbd0485a925",
68
+ "dToken": "0xae8593dd575fe29a9745056aa91c4b746eee62c8",
69
+ "liquidationThreshold": 0.77
70
+ },
71
+ "0x5f98805a4e8be255a32880fdec7f6728c6568ba0": {
72
+ "tToken": "0x3fe6a295459fae07df8a0cecc36f37160fe86aa9",
73
+ "sdToken": "0x37a6b708fdb1483c231961b9a7f145261e815fc3",
74
+ "dToken": "0x33652e48e4b74d18520f11bfe58edd2ed2cec5a2",
75
+ "liquidationThreshold": 0.8
76
+ },
77
+ "0xd533a949740bb3306d119cc777fa900ba034cd52": {
78
+ "tToken": "0x7b95ec873268a6bfc6427e7a28e396db9d0ebc65",
79
+ "sdToken": "0x90d9cd005e553111eb8c9c31abe9706a186b6048",
80
+ "dToken": "0x1b7d3f4b3c032a5ae656e30eea4e8e1ba376068f",
81
+ "liquidationThreshold": 0.41
82
+ },
83
+ "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {
84
+ "tToken": "0x8a458a9dc9048e005d22849f470891b840296619",
85
+ "sdToken": "0x0496372be7e426d28e89debf01f19f014d5938be",
86
+ "dToken": "0x6efc73e54e41b27d2134ff9f98f15550f30df9b1",
87
+ "liquidationThreshold": 0.7
88
+ },
89
+ "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f": {
90
+ "tToken": "0xc7b4c17861357b8abb91f25581e7263e08dcb59c",
91
+ "sdToken": "0x478e1ec1a2beed94c1407c951e4b9e22d53b2501",
92
+ "dToken": "0x8d0de040e8aad872ec3c33a3776de9152d3c34ca",
93
+ "liquidationThreshold": 0.65
94
+ },
95
+ "0xba100000625a3754423978a60c9317c58a424e3d": {
96
+ "tToken": "0x2516e7b3f76294e03c42aa4c5b5b4dce9c436fb8",
97
+ "sdToken": "0xb368d45aaaa07ee2c6275cb320d140b22de43cdd",
98
+ "dToken": "0x3d3efceb4ff0966d34d9545d3a2fa2dcdbf451f2",
99
+ "liquidationThreshold": 0.62
100
+ },
101
+ "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984": {
102
+ "tToken": "0xf6d2224916ddfbbab6e6bd0d1b7034f4ae0cab18",
103
+ "sdToken": "0x2fec76324a0463c46f32e74a86d1cf94c02158dc",
104
+ "dToken": "0xf64178ebd2e2719f2b1233bcb5ef6db4bcc4d09a",
105
+ "liquidationThreshold": 0.77
106
+ },
107
+ "0x5a98fcbea516cf06857215779fd812ca3bef1b32": {
108
+ "tToken": "0x9a44fd41566876a39655f74971a3a6ea0a17a454",
109
+ "sdToken": "0xa0a5bf5781aeb548db9d4226363b9e89287c5fd2",
110
+ "dToken": "0xc30808705c01289a3d306ca9cab081ba9114ec82",
111
+ "liquidationThreshold": 0.5
112
+ },
113
+ "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72": {
114
+ "tToken": "0x545bd6c032efdde65a377a6719def2796c8e0f2e",
115
+ "sdToken": "0x7617d02e311cde347a0cb45bb7df2926bbaf5347",
116
+ "dToken": "0xd180d7fdd4092f07428efe801e17bc03576b3192",
117
+ "liquidationThreshold": 0.49
118
+ },
119
+ "0x111111111117dc0aa78b770fa6a738034120c302": {
120
+ "tToken": "0x71aef7b30728b9bb371578f36c5a1f1502a5723e",
121
+ "sdToken": "0x4b62bfaff61ab3985798e5202d2d167f567d0bcd",
122
+ "dToken": "0xa38fca8c6bf9bda52e76eb78f08caa3be7c5a970",
123
+ "liquidationThreshold": 0.67
124
+ },
125
+ "0x853d955acef822db058eb8505911ed77f175b99e": {
126
+ "tToken": "0xd4e245848d6e1220dbe62e155d89fa327e43cb06",
127
+ "sdToken": "0x219640546c0dfddcb9ab3bcda89b324e0a376367",
128
+ "dToken": "0x88b8358f5bc87c2d7e116cca5b65a9eeb2c5ea3f",
129
+ "liquidationThreshold": 0.75
130
+ },
131
+ "0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f": {
132
+ "tToken": "0x00907f9921424583e7ffbfedf84f92b7b2be4977",
133
+ "sdToken": "0x3f3df7266da30102344a813f1a3d07f5f041b5ac",
134
+ "dToken": "0x786dbff3f1292ae8f92ea68cf93c30b34b1ed04b",
135
+ "liquidationThreshold": 0.0
136
+ },
137
+ "0xd33526068d116ce69f19a9ee46f0bd304f21a51f": {
138
+ "tToken": "0xb76cf92076adbf1d9c39294fa8e7a67579fde357",
139
+ "sdToken": "0x41e330fd8f7ea31e2e8f02cc0c9392d1403597b4",
140
+ "dToken": "0x8988eca19d502fd8b9ccd03fa3bd20a6f599bc2a",
141
+ "liquidationThreshold": 0.0
142
+ },
143
+ "0x83f20f44975d03b1b09e64809b757c47f942beea": {
144
+ "tToken": "0x4c612e3b15b96ff9a6faed838f8d07d479a8dd4c",
145
+ "sdToken": "0x48bc45f084988bc01933ea93eeffebc0416534f6",
146
+ "dToken": "0x8db9d35e117d8b93c6ca9b644b25bad5d9908141",
147
+ "liquidationThreshold": 0.8
148
+ }
149
+ }
150
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: defi-state-querier
3
- Version: 0.5.10
3
+ Version: 0.5.12
4
4
  Summary: Calculate apy, apr, and wallet information,... in decentralized applications.
5
5
  Home-page: https://github.com/Centic-io/defi-state-querier
6
6
  Author: Viet-Bang Pham
@@ -1,4 +1,4 @@
1
- defi_services/__init__.py,sha256=1nlPInsRzDbcDPveZ3ghSJ6v6KveN9n6gnj-twW4DkI,23
1
+ defi_services/__init__.py,sha256=LznNzk7nDbJCv7NVxCOu958-1uT_nFJ79_3vJt7WPDc,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
@@ -320,7 +320,7 @@ defi_services/jobs/processors/multi_state_processor.py,sha256=Od7Y8zPz7xj0L-_0Yu
320
320
  defi_services/jobs/processors/solana_state_processor.py,sha256=szsBYrkEV8kBzuA_iaSVescnwKJ2MHoTbut5kORbWTs,4065
321
321
  defi_services/jobs/processors/state_processor.py,sha256=Ze_5isU_l_APB262E-VV_4KZwEG6W0XE6PikJZIcAoM,7291
322
322
  defi_services/jobs/processors/substrate_state_processor.py,sha256=KkiY1NkaxnizNJBTfn4twB-zuQo3fT3akOlbie8VF5g,3940
323
- defi_services/jobs/processors/ton_state_processor.py,sha256=suVoMEM0L5Wai3KWaNl-A4DU8Nq25Jhr5_7VcmsIfaY,2251
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
325
  defi_services/jobs/queriers/call_state_querier.py,sha256=sxKXNpI6pOHAqHZ0jaLuxDX6Izka6IqBSWpbtu_o5FY,4820
326
326
  defi_services/jobs/queriers/solana_state_querier.py,sha256=TQELYo6GUoF8s-LfetqYbclNaH8bakQqC7y2ifACIb8,3239
@@ -356,8 +356,8 @@ defi_services/services/dex/dex_info/uniswap_info.py,sha256=RhEXmbERg_k5NsgMKnlrg
356
356
  defi_services/services/eth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
357
  defi_services/services/eth/eth_services.py,sha256=b6nEcgGHVFdRjqT2RZqvjfRuh56yjWgwLj74YNhiHGM,3719
358
358
  defi_services/services/lending/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
- defi_services/services/lending/aave_v2_services.py,sha256=SiuBz9wKeUfg0rsGdSqt6c9TzElnbv8Xaqu71QN6WQw,21613
360
- defi_services/services/lending/aave_v3_services.py,sha256=HKLKJR_x--I5bO-wW5I9_PxA0x-y2HN4K-SFUnhbz8M,16163
359
+ defi_services/services/lending/aave_v2_services.py,sha256=f7L7zHg9uHGNn1iZEiVtzXkV9iiBmrNNxPBa7S-emQ8,22303
360
+ defi_services/services/lending/aave_v3_services.py,sha256=9jogWv0zyZrSS7XLGFSgvNIvOCpBYXYbl32TBV5cH_U,16709
361
361
  defi_services/services/lending/apeswap_services.py,sha256=UrLhXVzGvim_xfs54hSJ1qeTH6ber4xh01j5PWFl4C8,4737
362
362
  defi_services/services/lending/compound_service.py,sha256=8r7pAs8KaaakDuHg4BUICW4zLD-ihm_DQETYwnAFc98,21917
363
363
  defi_services/services/lending/compound_v3_services.py,sha256=wsUavP2LAJCxmr8A0MPXLDb_YmANT_3DcSlgEgXuJv4,17128
@@ -406,7 +406,7 @@ defi_services/services/lending/lending_info/bsc/venus_bsc.py,sha256=RZc_W62fq0Pt
406
406
  defi_services/services/lending/lending_info/bsc/wepiggy_bsc.py,sha256=dq2bU6zYgNv72mnvqKBBF187_2JJzrf0SqbDHDllInY,3340
407
407
  defi_services/services/lending/lending_info/ethereum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
408
408
  defi_services/services/lending/lending_info/ethereum/aave_v2_eth.py,sha256=4Zsn42p7lLaKNJz9eahPky5uCax-pV4qchuzDaf7yww,12032
409
- defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py,sha256=tXe5QlEvQzQHgAJjug0MNo1m5bIyThiM7OavhQMsmok,7620
409
+ defi_services/services/lending/lending_info/ethereum/aave_v3_eth.py,sha256=FUnN4yom6X6FUmeDjYzn7EABaAjgoo6dF-AvNaRBXtY,10060
410
410
  defi_services/services/lending/lending_info/ethereum/compound_eth.py,sha256=9gMWKs9RUsV4bIWb4bJ9rF6L-LNUOQQAzE15UVLS3lE,3740
411
411
  defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py,sha256=mw8s9C1p2-VPyZk0DgM5AGwc3UUW7BqG-3khSmj1bb8,2513
412
412
  defi_services/services/lending/lending_info/ethereum/flux_eth.py,sha256=Iw-hvmFc5g9_--drvZCWxtoscvMIkr1mna4pTStrA-g,1270
@@ -416,6 +416,7 @@ defi_services/services/lending/lending_info/ethereum/liqee_eth.py,sha256=hDdPEz6
416
416
  defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py,sha256=WDIoK0HtEOVDVGdQ6ok22W-aTapTmQt3C5wvVnM2iC8,2595
417
417
  defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py,sha256=8yATd43QS8mXPVTx6aME6G6x3BkmnsWKPrudEB_pbpI,3095
418
418
  defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py,sha256=q9ZpCb0qLi5amKtL7EL27NDxJ6FBkF14iXYEPhMebfo,1879
419
+ defi_services/services/lending/lending_info/ethereum/old_aave_v3_eth.py,sha256=tXe5QlEvQzQHgAJjug0MNo1m5bIyThiM7OavhQMsmok,7620
419
420
  defi_services/services/lending/lending_info/ethereum/onyx_eth.py,sha256=3KzLJKNENtnNhk5LjLqgxiIxHwv6BCOcEwqNVR87r8w,3369
420
421
  defi_services/services/lending/lending_info/ethereum/silo_eth.py,sha256=XQHpo37RS7DJ4Xjc8n0YK6WeGj5xn5ZOPRIlgTiSkH4,16770
421
422
  defi_services/services/lending/lending_info/ethereum/silo_llama_eth.py,sha256=w9iqoaZgMMO7_v6FKYN7vHLGcliBWcQLRKVDA9dYG_g,3696
@@ -468,8 +469,8 @@ defi_services/utils/memory_storage.py,sha256=BOT8laB0iVSCGE-oDlpWJQLbSC6X2blKX4z
468
469
  defi_services/utils/sqrt_price_math.py,sha256=9lgUeWFT4wjl3Vq3b7-jZ2bGvvZx7dDBSfVnM3lsZ8o,5575
469
470
  defi_services/utils/thread_proxy.py,sha256=5Z8biAyEReUkh3vfJSvEv7GwMe3CsE5M8CbghkQtePw,2951
470
471
  defi_services/utils/ton_decode_address.py,sha256=EWKwmC7KtbXpdKgiNK-5j-5lX7fCr17I4EWYs9b43eU,443
471
- defi_state_querier-0.5.10.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
472
- defi_state_querier-0.5.10.dist-info/METADATA,sha256=UY7ClRm9Pkxzmc1EdJfZYFhrfD0hYRpakwKcw-iycx8,4413
473
- defi_state_querier-0.5.10.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
474
- defi_state_querier-0.5.10.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
475
- defi_state_querier-0.5.10.dist-info/RECORD,,
472
+ defi_state_querier-0.5.12.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
473
+ defi_state_querier-0.5.12.dist-info/METADATA,sha256=1lS8eIh_RXaUHhqSFI8Kga_cFZXOi-dGL3ZAbO_iuC0,4413
474
+ defi_state_querier-0.5.12.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
475
+ defi_state_querier-0.5.12.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
476
+ defi_state_querier-0.5.12.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5