defi-state-querier 0.5.21__py3-none-any.whl → 0.5.22__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_constant.py +1 -0
- defi_services/constants/entities/lending_services.py +6 -2
- defi_services/services/dex/dex_info/uniswap_info.py +0 -2
- defi_services/services/lending/aave_v3_services.py +3 -1
- defi_services/services/lending/compound_v3_services.py +7 -3
- defi_services/services/lending/lending_info/arbitrum/compound_v3_arbitrum.py +96 -6
- defi_services/services/lending/lending_info/arbitrum/venus_arbitrum.py +10 -0
- defi_services/services/lending/lending_info/base/aave_v3_base.py +50 -50
- defi_services/services/lending/lending_info/base/compound_v3_base.py +116 -0
- defi_services/services/lending/lending_info/base/moonwell_base.py +4 -4
- defi_services/services/lending/lending_info/base/zerolend_base.py +109 -0
- defi_services/services/lending/lending_info/bsc/aave_v3_bsc.py +68 -0
- defi_services/services/lending/lending_info/ethereum/compound_v3_eth.py +180 -5
- defi_services/services/lending/lending_info/ethereum/venus_eth.py +10 -0
- defi_services/services/lending/lending_info/ethereum/zerolend_eth.py +96 -0
- defi_services/services/lending/lending_info/optimism/compound_v3_optimism.py +116 -0
- defi_services/services/lending/lending_info/optimism/moonwell_optimism.py +9 -0
- defi_services/services/lending/lending_info/polygon/compound_v3_polygon.py +35 -5
- defi_services/services/lending/lending_info/zksync/aave_v3_zksync.py +36 -36
- defi_services/services/lending/lending_info/zksync/venus_zksync.py +5 -108
- defi_services/services/lending/lending_info/zksync/zerolend_zksync.py +138 -0
- defi_services/services/lending/zerolend_services.py +36 -0
- {defi_state_querier-0.5.21.dist-info → defi_state_querier-0.5.22.dist-info}/METADATA +12 -2
- {defi_state_querier-0.5.21.dist-info → defi_state_querier-0.5.22.dist-info}/RECORD +28 -18
- {defi_state_querier-0.5.21.dist-info → defi_state_querier-0.5.22.dist-info}/WHEEL +1 -1
- {defi_state_querier-0.5.21.dist-info → defi_state_querier-0.5.22.dist-info}/LICENSE +0 -0
- {defi_state_querier-0.5.21.dist-info → defi_state_querier-0.5.22.dist-info}/top_level.txt +0 -0
defi_services/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.5.
|
1
|
+
__version__ = "0.5.22"
|
@@ -25,6 +25,7 @@ class Lending:
|
|
25
25
|
silo = 'silo-finance'
|
26
26
|
compound_v3 = 'compound-v3'
|
27
27
|
justlend = "justlend"
|
28
|
+
zerolend = "zerolend"
|
28
29
|
all = [strike, aave_v2, aave_v3, radiant_v2, compound, flux, onyx, granary,
|
29
30
|
iron_bank, trava, valas, geist, cream, venus, liqee, strike, uwu, wepiggy,
|
30
31
|
morpho_compound, morpho_aave_v2, morpho_aave_v3, spark, ape_swap, silo, compound_v3,
|
@@ -87,7 +87,8 @@ class LendingServices:
|
|
87
87
|
Lending.aave_v3: AaveV3StateService,
|
88
88
|
Lending.granary: GranaryStateService,
|
89
89
|
Lending.wepiggy: WepiggyStateService,
|
90
|
-
Lending.iron_bank: IronBankStateService
|
90
|
+
Lending.iron_bank: IronBankStateService,
|
91
|
+
Lending.compound_v3: CompoundV3StateService
|
91
92
|
}
|
92
93
|
|
93
94
|
arbitrum = {
|
@@ -104,11 +105,14 @@ class LendingServices:
|
|
104
105
|
}
|
105
106
|
|
106
107
|
base = {
|
107
|
-
Lending.aave_v3: AaveV3StateService
|
108
|
+
Lending.aave_v3: AaveV3StateService,
|
109
|
+
Lending.compound_v3: CompoundV3StateService
|
108
110
|
}
|
111
|
+
|
109
112
|
zksync = {
|
110
113
|
Lending.aave_v3: AaveV3StateService
|
111
114
|
}
|
115
|
+
|
112
116
|
# mapping
|
113
117
|
mapping = {
|
114
118
|
Chain.ethereum: ethereum,
|
@@ -7,7 +7,6 @@ UNISWAP_ETH_INFO = {
|
|
7
7
|
'factory_address': '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f',
|
8
8
|
'factory_abi': UNISWAP_FACTORY_ABI,
|
9
9
|
'forked': 'uniswap-v2'
|
10
|
-
|
11
10
|
}
|
12
11
|
|
13
12
|
UNISWAP_V3_ETH_INFO = {
|
@@ -20,7 +19,6 @@ UNISWAP_V3_ETH_INFO = {
|
|
20
19
|
'forked': 'uniswap-v3'
|
21
20
|
}
|
22
21
|
|
23
|
-
|
24
22
|
UNISWAP_V3_ARBITRUM_INFO = {
|
25
23
|
'factory_address': '0x1f98431c8ad98523631ae4a59f267346ea31f984',
|
26
24
|
'factory_abi': UNISWAP_V3_FACTORY_ABI,
|
@@ -17,6 +17,7 @@ from defi_services.services.lending.aave_v2_services import AaveV2StateService
|
|
17
17
|
from defi_services.services.lending.lending_info.arbitrum.aave_v3_arbitrum import AAVE_V3_ARB
|
18
18
|
from defi_services.services.lending.lending_info.avalanche.aave_v3_avalanche import AAVE_V3_AVALANCHE
|
19
19
|
from defi_services.services.lending.lending_info.base.aave_v3_base import AAVE_V3_BASE
|
20
|
+
from defi_services.services.lending.lending_info.bsc.aave_v3_bsc import AAVE_V3_BSC
|
20
21
|
from defi_services.services.lending.lending_info.ethereum.old_aave_v3_eth import AAVE_V3_ETH
|
21
22
|
from defi_services.services.lending.lending_info.fantom.aave_v3_ftm import AAVE_V3_FTM
|
22
23
|
from defi_services.services.lending.lending_info.optimism.aave_v3_optimism import AAVE_V3_OPTIMISM
|
@@ -35,7 +36,8 @@ class AaveV3Info:
|
|
35
36
|
Chain.optimism: AAVE_V3_OPTIMISM,
|
36
37
|
Chain.arbitrum: AAVE_V3_ARB,
|
37
38
|
Chain.base: AAVE_V3_BASE,
|
38
|
-
Chain.zksync: AAVE_V3_ZKSYNC
|
39
|
+
Chain.zksync: AAVE_V3_ZKSYNC,
|
40
|
+
Chain.bsc: AAVE_V3_BSC
|
39
41
|
}
|
40
42
|
|
41
43
|
|
@@ -9,7 +9,9 @@ from defi_services.constants.token_constant import Token
|
|
9
9
|
from defi_services.jobs.queriers.state_querier import StateQuerier
|
10
10
|
from defi_services.services.lending.compound_service import CompoundStateService
|
11
11
|
from defi_services.services.lending.lending_info.arbitrum.compound_v3_arbitrum import COMPOUND_V3_ARBITRUM
|
12
|
+
from defi_services.services.lending.lending_info.base.compound_v3_base import COMPOUND_V3_BASE
|
12
13
|
from defi_services.services.lending.lending_info.ethereum.compound_v3_eth import COMPOUND_V3_ETH
|
14
|
+
from defi_services.services.lending.lending_info.optimism.compound_v3_optimism import COMPOUND_V3_OPTIMISM
|
13
15
|
from defi_services.services.lending.lending_info.polygon.compound_v3_polygon import COMPOUND_V3_POLYGON
|
14
16
|
|
15
17
|
|
@@ -17,7 +19,9 @@ class CompoundV3Info:
|
|
17
19
|
mapping = {
|
18
20
|
Chain.ethereum: COMPOUND_V3_ETH,
|
19
21
|
Chain.polygon: COMPOUND_V3_POLYGON,
|
20
|
-
Chain.arbitrum: COMPOUND_V3_ARBITRUM
|
22
|
+
Chain.arbitrum: COMPOUND_V3_ARBITRUM,
|
23
|
+
Chain.base: COMPOUND_V3_BASE,
|
24
|
+
Chain.optimism: COMPOUND_V3_OPTIMISM
|
21
25
|
}
|
22
26
|
|
23
27
|
|
@@ -25,7 +29,7 @@ class CompoundV3StateService(CompoundStateService):
|
|
25
29
|
def __init__(self, state_service: StateQuerier, chain_id: str = "0x1"):
|
26
30
|
super().__init__(state_service, chain_id)
|
27
31
|
self.name = f"{chain_id}_{Lending.compound_v3}"
|
28
|
-
self.pool_info = CompoundV3Info.mapping.get(chain_id)
|
32
|
+
self.pool_info = CompoundV3Info.mapping.get(chain_id, {})
|
29
33
|
self.comet_abi = COMET_ABI
|
30
34
|
self.comet_ext = COMET_EXT_ABI
|
31
35
|
self.reward_abi = REWARD_ABI
|
@@ -47,7 +51,7 @@ class CompoundV3StateService(CompoundStateService):
|
|
47
51
|
):
|
48
52
|
result = {}
|
49
53
|
w3 = self.state_service.get_w3()
|
50
|
-
pools = [value.get('comet') for key, value in self.pool_info.get('reservesList').items()]
|
54
|
+
pools = [value.get('comet') for key, value in self.pool_info.get('reservesList', {}).items()]
|
51
55
|
if comets:
|
52
56
|
pools += comets
|
53
57
|
for pool in pools:
|
@@ -37,23 +37,113 @@ COMPOUND_V3_ARBITRUM = {
|
|
37
37
|
"assets": {
|
38
38
|
"0x912ce59144191c1204e64559fe8253a0e49e6548": {
|
39
39
|
"priceFeed": "0xb2a824043730fe05f3da2efafa1cbbe83fa548d6",
|
40
|
-
"loanToValue": 0.
|
41
|
-
"liquidationThreshold": 0.
|
40
|
+
"loanToValue": 0.7,
|
41
|
+
"liquidationThreshold": 0.8
|
42
42
|
},
|
43
43
|
"0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a": {
|
44
44
|
"priceFeed": "0xdb98056fecfff59d032ab628337a4887110df3db",
|
45
|
-
"loanToValue": 0.
|
46
|
-
"liquidationThreshold": 0.
|
45
|
+
"loanToValue": 0.6,
|
46
|
+
"liquidationThreshold": 0.75
|
47
47
|
},
|
48
48
|
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1": {
|
49
49
|
"priceFeed": "0x639fe6ab55c921f74e7fac1ee960c0b6293ba612",
|
50
|
-
"loanToValue": 0.
|
50
|
+
"loanToValue": 0.83,
|
51
|
+
"liquidationThreshold": 0.9
|
52
|
+
},
|
53
|
+
"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f": {
|
54
|
+
"priceFeed": "0xd0c7101eacbb49f3decccc166d238410d6d46d57",
|
55
|
+
"loanToValue": 0.75,
|
56
|
+
"liquidationThreshold": 0.85
|
57
|
+
},
|
58
|
+
"0x5979d7b546e38e414f7e9822514be443a4800529": {
|
59
|
+
"priceFeed": "0xe165155c34fe4cbfc55fc554437907bdb1af7e3e",
|
60
|
+
"loanToValue": 0.8,
|
61
|
+
"liquidationThreshold": 0.85
|
62
|
+
},
|
63
|
+
"0x2416092f143378750bb29b79ed961ab195cceea5": {
|
64
|
+
"priceFeed": "0xc49399814452b41da8a7cd76a159f5515cb3e493",
|
65
|
+
"loanToValue": 0.8,
|
66
|
+
"liquidationThreshold": 0.85
|
67
|
+
},
|
68
|
+
"0x57f5e098cad7a3d1eed53991d4d66c45c9af7812": {
|
69
|
+
"priceFeed": "0x13cdfb7db5e2f58e122b2e789b59de13645349c4",
|
70
|
+
"loanToValue": 0.88,
|
71
|
+
"liquidationThreshold": 0.9
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1": {
|
76
|
+
"comet": "0x6f7d514bbd4aff3bcd1140b7344b32f063dee486",
|
77
|
+
"assets": {
|
78
|
+
"0x35751007a407ca6feffe80b3cb397736d2cf4dbe": {
|
79
|
+
"priceFeed": "0xd3cf278f135d9831d2bf28f6672a4575906ca724",
|
80
|
+
"loanToValue": 0.9,
|
81
|
+
"liquidationThreshold": 0.93
|
82
|
+
},
|
83
|
+
"0xec70dcb4a1efa46b8f2d97c310c9c4790ba5ffa8": {
|
84
|
+
"priceFeed": "0x970ffd8e335b8fa4cd5c869c7cac3a90671d5dc3",
|
85
|
+
"loanToValue": 0.9,
|
86
|
+
"liquidationThreshold": 0.93
|
87
|
+
},
|
88
|
+
"0x5979d7b546e38e414f7e9822514be443a4800529": {
|
89
|
+
"priceFeed": "0x6c987dde50db1dcdd32cd4175778c2a291978e2a",
|
90
|
+
"loanToValue": 0.88,
|
91
|
+
"liquidationThreshold": 0.93
|
92
|
+
},
|
93
|
+
"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f": {
|
94
|
+
"priceFeed": "0xfa454de61b317b6535a0c462267208e8fdb89f45",
|
95
|
+
"loanToValue": 0.8,
|
96
|
+
"liquidationThreshold": 0.85
|
97
|
+
},
|
98
|
+
"0x4186bfc76e2e237523cbc30fd220fe055156b41f": {
|
99
|
+
"priceFeed": "0x3870fac3de911c12a57e5a2532d15ad8ca275a60",
|
100
|
+
"loanToValue": 0.88,
|
101
|
+
"liquidationThreshold": 0.91
|
102
|
+
},
|
103
|
+
"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9": {
|
104
|
+
"priceFeed": "0x84e93ec6170ed630f5ebd89a1aae72d4f63f2713",
|
105
|
+
"loanToValue": 0.8,
|
106
|
+
"liquidationThreshold": 0.85
|
107
|
+
},
|
108
|
+
"0xaf88d065e77c8cc2239327c5edb3a432268e5831": {
|
109
|
+
"priceFeed": "0x443ea0340cb75a160f31a440722dec7b5bc3c2e9",
|
110
|
+
"loanToValue": 0.8,
|
111
|
+
"liquidationThreshold": 0.85
|
112
|
+
},
|
113
|
+
"0x2416092f143378750bb29b79ed961ab195cceea5": {
|
114
|
+
"priceFeed": "0x72e9b6f907365d76c6192ad49c0c5ba356b7fa48",
|
115
|
+
"loanToValue": 0.88,
|
116
|
+
"liquidationThreshold": 0.91
|
117
|
+
}
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9": {
|
121
|
+
"comet": "0xd98be00b5d27fc98112bde293e487f8d4ca57d07",
|
122
|
+
"assets": {
|
123
|
+
"0x912ce59144191c1204e64559fe8253a0e49e6548": {
|
124
|
+
"priceFeed": "0xb2a824043730fe05f3da2efafa1cbbe83fa548d6",
|
125
|
+
"loanToValue": 0.7,
|
126
|
+
"liquidationThreshold": 0.8
|
127
|
+
},
|
128
|
+
"0x82af49447d8a07e3bd95bd0d56f35241523fbab1": {
|
129
|
+
"priceFeed": "0x639fe6ab55c921f74e7fac1ee960c0b6293ba612",
|
130
|
+
"loanToValue": 0.85,
|
131
|
+
"liquidationThreshold": 0.9
|
132
|
+
},
|
133
|
+
"0x5979d7b546e38e414f7e9822514be443a4800529": {
|
134
|
+
"priceFeed": "0xe165155c34fe4cbfc55fc554437907bdb1af7e3e",
|
135
|
+
"loanToValue": 0.8,
|
51
136
|
"liquidationThreshold": 0.85
|
52
137
|
},
|
53
138
|
"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f": {
|
54
139
|
"priceFeed": "0xd0c7101eacbb49f3decccc166d238410d6d46d57",
|
55
140
|
"loanToValue": 0.7,
|
56
|
-
"liquidationThreshold": 0.
|
141
|
+
"liquidationThreshold": 0.8
|
142
|
+
},
|
143
|
+
"0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a": {
|
144
|
+
"priceFeed": "0xdb98056fecfff59d032ab628337a4887110df3db",
|
145
|
+
"loanToValue": 0.6,
|
146
|
+
"liquidationThreshold": 0.7
|
57
147
|
}
|
58
148
|
}
|
59
149
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
VENUS_ARB = {
|
2
|
+
"projectName": "Venus",
|
3
|
+
"name": "Venus Lending Pool",
|
4
|
+
"rewardToken": "0xc1eb7689147c81ac840d4ff0d298489fc7986d52",
|
5
|
+
"comptrollerAddress": "",
|
6
|
+
"lensAddress": "",
|
7
|
+
"poolToken": "0xc1eb7689147c81ac840d4ff0d298489fc7986d52",
|
8
|
+
"type": "LENDING_POOL",
|
9
|
+
"forked": "compound",
|
10
|
+
}
|
@@ -8,54 +8,54 @@ AAVE_V3_BASE = {
|
|
8
8
|
"poolToken": "0x4e65fe4dba92790696d040ac24aa414708f5c0ab",
|
9
9
|
"forked": "aave-v3",
|
10
10
|
"reservesList": {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
}
|
11
|
+
"0x4200000000000000000000000000000000000006": {
|
12
|
+
"tToken": "0xd4a0e0b9149bcee3c920d2e00b5de09138fd8bb7",
|
13
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
14
|
+
"dToken": "0x24e6e0795b3c7c71d965fcc4f371803d1c1dca1e",
|
15
|
+
"loanToValue": 0.8,
|
16
|
+
"liquidationThreshold": 0.83
|
17
|
+
},
|
18
|
+
"0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22": {
|
19
|
+
"tToken": "0xcf3d55c10db69f28fd1a75bd73f3d8a2d9c595ad",
|
20
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
21
|
+
"dToken": "0x1dabc36f19909425f654777249815c073e8fd79f",
|
22
|
+
"loanToValue": 0.75,
|
23
|
+
"liquidationThreshold": 0.79
|
24
|
+
},
|
25
|
+
"0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca": {
|
26
|
+
"tToken": "0x0a1d576f3efef75b330424287a95a366e8281d54",
|
27
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
28
|
+
"dToken": "0x7376b2f323dc56fcd4c191b34163ac8a84702dab",
|
29
|
+
"loanToValue": 0.75,
|
30
|
+
"liquidationThreshold": 0.78
|
31
|
+
},
|
32
|
+
"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452": {
|
33
|
+
"tToken": "0x99cbc45ea5bb7ef3a5bc08fb1b7e56bb2442ef0d",
|
34
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
35
|
+
"dToken": "0x41a7c3f5904ad176dacbb1d99101f59ef0811dc1",
|
36
|
+
"loanToValue": 0.75,
|
37
|
+
"liquidationThreshold": 0.79
|
38
|
+
},
|
39
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
40
|
+
"tToken": "0x4e65fe4dba92790696d040ac24aa414708f5c0ab",
|
41
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
42
|
+
"dToken": "0x59dca05b6c26dbd64b5381374aaac5cd05644c28",
|
43
|
+
"loanToValue": 0.75,
|
44
|
+
"liquidationThreshold": 0.78
|
45
|
+
},
|
46
|
+
"0x04c0599ae5a44757c0af6f9ec3b93da8976c150a": {
|
47
|
+
"tToken": "0x7c307e128efa31f540f2e2d976c995e0b65f51f6",
|
48
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
49
|
+
"dToken": "0x8d2e3f1f4b38aa9f1ced22ac06019c7561b03901",
|
50
|
+
"loanToValue": 0.725,
|
51
|
+
"liquidationThreshold": 0.75
|
52
|
+
},
|
53
|
+
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf": {
|
54
|
+
"tToken": "0xbdb9300b7cde636d9cd4aff00f6f009ffbbc8ee6",
|
55
|
+
"sdToken": "0xaed3b56fea82e809665f02acbcdec0816c75f4d9",
|
56
|
+
"dToken": "0x05e08702028de6aad395dc6478b554a56920b9ad",
|
57
|
+
"loanToValue": 0.73,
|
58
|
+
"liquidationThreshold": 0.78
|
59
|
+
}
|
60
|
+
}
|
61
61
|
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
COMPOUND_V3_BASE = {
|
2
|
+
"name": "Compound V3 Lending Pool",
|
3
|
+
"rewardToken": "0x9e1028f5f1d5ede59748ffcee5532509976840e0",
|
4
|
+
"rewardAddress": "0x123964802e6ababbe1bc9547d72ef1b69b00a6b1",
|
5
|
+
"factoryAddress": "0x27c348936400791b7350d80fb81bc61ad68df4ae",
|
6
|
+
"poolToken": "0x9e1028f5f1d5ede59748ffcee5532509976840e0",
|
7
|
+
"type": "LENDING_POOL",
|
8
|
+
"forked": "compound-v3",
|
9
|
+
"reservesList": {
|
10
|
+
"0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
|
11
|
+
"comet": "0x784efeb622244d2348d4f2522f8860b96fbece89",
|
12
|
+
"assets": {
|
13
|
+
"0x4200000000000000000000000000000000000006": {
|
14
|
+
"priceFeed": "0x2c7118c4c88b9841fcf839074c26ae8f035f2921",
|
15
|
+
"loanToValue": 0.6,
|
16
|
+
"liquidationThreshold": 0.65
|
17
|
+
},
|
18
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
19
|
+
"priceFeed": "0x970ffd8e335b8fa4cd5c869c7cac3a90671d5dc3",
|
20
|
+
"loanToValue": 0.65,
|
21
|
+
"liquidationThreshold": 0.7
|
22
|
+
},
|
23
|
+
"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452": {
|
24
|
+
"priceFeed": "0x5404872d8f2e24b230ec9b9ec64e3855f637fb93",
|
25
|
+
"loanToValue": 0.6,
|
26
|
+
"liquidationThreshold": 0.65
|
27
|
+
},
|
28
|
+
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf": {
|
29
|
+
"priceFeed": "0x8df378453ff9deffa513367cdf9b3b53726303e9",
|
30
|
+
"loanToValue": 0.6,
|
31
|
+
"liquidationThreshold": 0.65
|
32
|
+
}
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"0x4200000000000000000000000000000000000006": {
|
36
|
+
"comet": "0x46e6b214b524310239732d51387075e0e70970bf",
|
37
|
+
"assets": {
|
38
|
+
"0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22": {
|
39
|
+
"priceFeed": "0x59e242d352ae13166b4987ae5c990c232f7f7cd6",
|
40
|
+
"loanToValue": 0.9,
|
41
|
+
"liquidationThreshold": 0.93
|
42
|
+
},
|
43
|
+
"0x2416092f143378750bb29b79ed961ab195cceea5": {
|
44
|
+
"priceFeed": "0x72874cfe957bb47795548e5a9fd740d135ba5e45",
|
45
|
+
"loanToValue": 0.88,
|
46
|
+
"liquidationThreshold": 0.91
|
47
|
+
},
|
48
|
+
"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452": {
|
49
|
+
"priceFeed": "0x1f71901daf98d70b4baf40de080321e5c2676856",
|
50
|
+
"loanToValue": 0.9,
|
51
|
+
"liquidationThreshold": 0.93
|
52
|
+
},
|
53
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
54
|
+
"priceFeed": "0x2f4eaf29dfeef4654bd091f7112926e108ef4ed0",
|
55
|
+
"loanToValue": 0.8,
|
56
|
+
"liquidationThreshold": 0.85
|
57
|
+
},
|
58
|
+
"0x04c0599ae5a44757c0af6f9ec3b93da8976c150a": {
|
59
|
+
"priceFeed": "0x841e380e3a98e4ee8912046d69731f4e21efb1d7",
|
60
|
+
"loanToValue": 0.9,
|
61
|
+
"liquidationThreshold": 0.93
|
62
|
+
},
|
63
|
+
"0xedfa23602d0ec14714057867a78d01e94176bea0": {
|
64
|
+
"priceFeed": "0xaeb318360f27748acb200ce616e389a6c9409a07",
|
65
|
+
"loanToValue": 0.88,
|
66
|
+
"liquidationThreshold": 0.91
|
67
|
+
},
|
68
|
+
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf": {
|
69
|
+
"priceFeed": "0x4cfce7795bf75dc3795369a953d9a9b8c2679ae4",
|
70
|
+
"loanToValue": 0.8,
|
71
|
+
"liquidationThreshold": 0.85
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
76
|
+
"comet": "0xb125e6687d4313864e53df431d5425969c15eb2f",
|
77
|
+
"assets": {
|
78
|
+
"0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22": {
|
79
|
+
"priceFeed": "0x4687670f5f01716faa382e2356c103bad776752c",
|
80
|
+
"loanToValue": 0.8,
|
81
|
+
"liquidationThreshold": 0.85
|
82
|
+
},
|
83
|
+
"0x4200000000000000000000000000000000000006": {
|
84
|
+
"priceFeed": "0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70",
|
85
|
+
"loanToValue": 0.85,
|
86
|
+
"liquidationThreshold": 0.9
|
87
|
+
},
|
88
|
+
"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452": {
|
89
|
+
"priceFeed": "0x4b5dee60531a72c1264319ec6a22678a4d0c8118",
|
90
|
+
"loanToValue": 0.8,
|
91
|
+
"liquidationThreshold": 0.85
|
92
|
+
},
|
93
|
+
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf": {
|
94
|
+
"priceFeed": "0x8d38a3d6b3c3b7d96d6536da7eef94a9d7dbc991",
|
95
|
+
"loanToValue": 0.8,
|
96
|
+
"liquidationThreshold": 0.85
|
97
|
+
}
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca": {
|
101
|
+
"comet": "0x9c4ec768c28520b50860ea7a15bd7213a9ff58bf",
|
102
|
+
"assets": {
|
103
|
+
"0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22": {
|
104
|
+
"priceFeed": "0x4687670f5f01716faa382e2356c103bad776752c",
|
105
|
+
"loanToValue": 0.65,
|
106
|
+
"liquidationThreshold": 0.7
|
107
|
+
},
|
108
|
+
"0x4200000000000000000000000000000000000006": {
|
109
|
+
"priceFeed": "0x71041dddad3595f9ced3dccfbe3d1f4b0a16bb70",
|
110
|
+
"loanToValue": 0.69,
|
111
|
+
"liquidationThreshold": 0.74
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
"name": "
|
1
|
+
MOONWELL_BASE = {
|
2
|
+
"name": "MoonWell Lending Pool",
|
3
3
|
"rewardToken": "",
|
4
|
-
"comptrollerAddress": "
|
4
|
+
"comptrollerAddress": "0xfbb21d0380bee3312b33c4353c8936a0f13ef26c",
|
5
5
|
"lensAddress": "",
|
6
|
-
"poolToken": "",
|
6
|
+
"poolToken": "0xa88594d404727625a9437c3f886c7643872296ae",
|
7
7
|
"type": "LENDING_POOL",
|
8
8
|
"forked": "compound",
|
9
9
|
"reservesList": {
|
@@ -0,0 +1,109 @@
|
|
1
|
+
ZEROLEND_BASE = {
|
2
|
+
"address": "0x766f21277087e18967c1b10bf602d8fe56d0c671",
|
3
|
+
"name": "ZeroLend Lending Pool",
|
4
|
+
"stakedIncentiveAddress": '0xaa999ea356f925bf1e856038c5d182ae5e8a4973',
|
5
|
+
"rewardTokensList": [],
|
6
|
+
"oracleAddress": "0xf49ee3ea9c56d90627881d88004aabdfc44fd82c",
|
7
|
+
"type": "LENDING_POOL",
|
8
|
+
"forked": "aave-v3",
|
9
|
+
"reservesList": {
|
10
|
+
"0x4200000000000000000000000000000000000006": {
|
11
|
+
"tToken": "0x4677201dbb575d485ad69e5c5b1e7e7888c3ab29",
|
12
|
+
"sdToken": "0xb375197dc09e06382a05be306df6a551f08a3b7b",
|
13
|
+
"dToken": "0xfec889b48d8cb51bfd988bf211d4cfe854af085c",
|
14
|
+
"loanToValue": 0.8,
|
15
|
+
"liquidationThreshold": 0.825
|
16
|
+
},
|
17
|
+
"0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
|
18
|
+
"tToken": "0x3c2b86d6308c24632bb8716ed013567c952b53ae",
|
19
|
+
"sdToken": "0xe37b9dd1cdf9f411a9f6bb8d0c1fa2af6b960a47",
|
20
|
+
"dToken": "0x98ef767a6184323bf2788a0936706432698d3400",
|
21
|
+
"loanToValue": 0.8,
|
22
|
+
"liquidationThreshold": 0.9
|
23
|
+
},
|
24
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": {
|
25
|
+
"tToken": "0xd09600475435cab0e40dabdb161fb5a3311efcb3",
|
26
|
+
"sdToken": "0x1d32fd6f0dda3f3ef74e5bc3da3166febdd698b5",
|
27
|
+
"dToken": "0xa397391b718f3c7f21c63e8beb09b66607419c38",
|
28
|
+
"loanToValue": 0.8,
|
29
|
+
"liquidationThreshold": 0.85
|
30
|
+
},
|
31
|
+
"0x0a27e060c0406f8ab7b64e3bee036a37e5a62853": {
|
32
|
+
"tToken": "0x2e1f66d89a95a88afe594f6ed936b1ca76efb74c",
|
33
|
+
"sdToken": "0x6017b28d5b8a46474673ad7a4914318ad5e6db5e",
|
34
|
+
"dToken": "0x5e4043a302a827bfa4cb51fa18c66109683d08ee",
|
35
|
+
"loanToValue": 0.0,
|
36
|
+
"liquidationThreshold": 0.0
|
37
|
+
},
|
38
|
+
"0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22": {
|
39
|
+
"tToken": "0x1f3f89ffc8cd686cecc845b5f52246598f1e3196",
|
40
|
+
"sdToken": "0x65d178978a458ff3ca39bc3df3ad9d0a0957d1bd",
|
41
|
+
"dToken": "0x371cfa36ef5e33c46d1e0ef2111862d5ff9f78cd",
|
42
|
+
"loanToValue": 0.8,
|
43
|
+
"liquidationThreshold": 0.825
|
44
|
+
},
|
45
|
+
"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf": {
|
46
|
+
"tToken": "0x4433cf6e9458027ff0833f22a3cf73318908e48e",
|
47
|
+
"sdToken": "0xf29fab0a70ad1f8aa88b2b389d4c84083f73301e",
|
48
|
+
"dToken": "0x7e1b2ac5339e8bba83c67a9444e9ee981c46ce42",
|
49
|
+
"loanToValue": 0.7,
|
50
|
+
"liquidationThreshold": 0.75
|
51
|
+
},
|
52
|
+
"0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d": {
|
53
|
+
"tToken": "0xb6ccd85f92fb9a8bbc99b55091855714aaeebfee",
|
54
|
+
"sdToken": "0xcd18e7d74d8ae9228c3405149725d7813363fcde",
|
55
|
+
"dToken": "0x80e898e5ad81940fe094ac3159b08a3494198570",
|
56
|
+
"loanToValue": 0.8,
|
57
|
+
"liquidationThreshold": 0.95
|
58
|
+
},
|
59
|
+
"0x1097dfe9539350cb466df9ca89a5e61195a520b0": {
|
60
|
+
"tToken": "0x89bb87137afe8bae03f4ab286de667a513ceebdd",
|
61
|
+
"sdToken": "0x6bb22ac00925f75e0a089178835cb98239b0ad30",
|
62
|
+
"dToken": "0x6b0b75c223ddd146b213ef4e35bc61d1de7b46a4",
|
63
|
+
"loanToValue": 0.8,
|
64
|
+
"liquidationThreshold": 0.95
|
65
|
+
},
|
66
|
+
"0x04d5ddf5f3a8939889f11e97f8c4bb48317f1938": {
|
67
|
+
"tToken": "0x9357e7f1c49e6d0094287f882fc47774fd3bc291",
|
68
|
+
"sdToken": "0xa5760c5e8927ddff5fe77719890522d5432a7c3a",
|
69
|
+
"dToken": "0x19887e3d984cbbd75805dfdbc9810efe923b897f",
|
70
|
+
"loanToValue": 0.75,
|
71
|
+
"liquidationThreshold": 0.8
|
72
|
+
},
|
73
|
+
"0xe31ee12bdfdd0573d634124611e85338e2cbf0cf": {
|
74
|
+
"tToken": "0xf382e613ff8ee69f3f7557424e7cfd48792286c5",
|
75
|
+
"sdToken": "0x1f69f0a0204f059527eae5df451460a1cbe4b54f",
|
76
|
+
"dToken": "0x591d8d962278bd35182decb2852de50f83dd29d0",
|
77
|
+
"loanToValue": 0.75,
|
78
|
+
"liquidationThreshold": 0.9
|
79
|
+
},
|
80
|
+
"0xdbfefd2e8460a6ee4955a68582f85708baea60a3": {
|
81
|
+
"tToken": "0xe48d605bb303f7e88561a9b09640af4323c5b921",
|
82
|
+
"sdToken": "0xe126b8ecaf14c5485b31dfdc29241d0f9141be73",
|
83
|
+
"dToken": "0xd6290195faab4b78f43eb38554e36f243218f334",
|
84
|
+
"loanToValue": 0.75,
|
85
|
+
"liquidationThreshold": 0.9
|
86
|
+
},
|
87
|
+
"0xf469fbd2abcd6b9de8e169d128226c0fc90a012e": {
|
88
|
+
"tToken": "0x4759417285100f0a11846304af76d1ed8d9ad253",
|
89
|
+
"sdToken": "0xe4616a793e4533c1b3069afd70161c31fd323b5a",
|
90
|
+
"dToken": "0x95beb0d11951e3e4140f1265b3df76f685740e18",
|
91
|
+
"loanToValue": 0.75,
|
92
|
+
"liquidationThreshold": 0.9
|
93
|
+
},
|
94
|
+
"0x7fcd174e80f264448ebee8c88a7c4476aaf58ea6": {
|
95
|
+
"tToken": "0x134efc999957fc7984c5ab91bc7ec0f0d373b71e",
|
96
|
+
"sdToken": "0xe3f7084849029144233f00036611245d638033ed",
|
97
|
+
"dToken": "0x1c7f3d9d02ad5fefd1a8feed65957be1ea5f649c",
|
98
|
+
"loanToValue": 0.8,
|
99
|
+
"liquidationThreshold": 0.9
|
100
|
+
},
|
101
|
+
"0xecac9c5f704e954931349da37f60e39f515c11c1": {
|
102
|
+
"tToken": "0xbbb4080b4d4510ace168d1ff8c5cc256ab74e1fb",
|
103
|
+
"sdToken": "0x33a0a85a3f184e75333b8c25307acfb9a5e4cb57",
|
104
|
+
"dToken": "0x8307952247925a2ed9f5729eaf67172a77e08999",
|
105
|
+
"loanToValue": 0.8,
|
106
|
+
"liquidationThreshold": 0.85
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|