impermax-sdk 2.1.399 → 2.1.401
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.
- package/lib/config/amms.js +5 -1
- package/lib/config/chainId.js +2 -1
- package/lib/config/contracts/claim-aggregators.js +2 -1
- package/lib/config/contracts/ibexes.js +2 -1
- package/lib/config/contracts/impermax-chef.js +2 -1
- package/lib/config/contracts/impermax-config-manager.js +1 -0
- package/lib/config/contracts/impermax-factories.js +3 -0
- package/lib/config/contracts/imxes.js +2 -1
- package/lib/config/contracts/lending-vault-watcher.js +1 -0
- package/lib/config/contracts/merkle-distributors.js +3 -0
- package/lib/config/contracts/routers.js +10 -1
- package/lib/config/contracts/simple-uniswap-oracles.js +1 -0
- package/lib/config/contracts/weths.js +2 -1
- package/lib/config/debank-ids.js +1 -0
- package/lib/config/endpoints/merkle-distributors.js +3 -0
- package/lib/config/eth.js +2 -0
- package/lib/config/farms.js +2 -1
- package/lib/config/nftlp.js +6 -1
- package/lib/config/private-api.js +6 -2
- package/lib/config/subgraphs.d.ts +2 -0
- package/lib/config/subgraphs.js +8 -4
- package/lib/config/types.d.ts +2 -1
- package/lib/config/types.js +1 -0
- package/lib/config/whitelist.js +5 -1
- package/lib/offchain/offchainAPRHelper.js +1 -0
- package/package.json +1 -1
package/lib/config/amms.js
CHANGED
|
@@ -210,7 +210,8 @@ exports.AMM_FACTORY = {
|
|
|
210
210
|
[types_1.Networks.Linea]: {
|
|
211
211
|
[Amms.nile]: '0xcbdf792456367a91708c0036e0678ecfb1f09654',
|
|
212
212
|
[Amms.nileStable]: '0xb037874de77e7b4505261301d2f3ce2fb9036ca7',
|
|
213
|
-
}
|
|
213
|
+
},
|
|
214
|
+
[types_1.Networks.Unichain]: {},
|
|
214
215
|
};
|
|
215
216
|
function getAmmByFactory(network, address) {
|
|
216
217
|
if (!address)
|
|
@@ -284,6 +285,7 @@ exports.AMM_SUBGRAPH_URLS = {
|
|
|
284
285
|
[types_1.Networks.Optimism]: {},
|
|
285
286
|
[types_1.Networks.Sonic]: {},
|
|
286
287
|
[types_1.Networks.Linea]: {},
|
|
288
|
+
[types_1.Networks.Unichain]: {},
|
|
287
289
|
};
|
|
288
290
|
exports.ADD_LIQUIDITY_URLS = {
|
|
289
291
|
[types_1.Networks.Ropsten]: {
|
|
@@ -379,6 +381,7 @@ exports.ADD_LIQUIDITY_URLS = {
|
|
|
379
381
|
[Amms.nile]: 'https://www.nile.build/manage/v1/',
|
|
380
382
|
[Amms.nileStable]: 'https://www.nile.build/manage/v1/'
|
|
381
383
|
},
|
|
384
|
+
[types_1.Networks.Unichain]: {},
|
|
382
385
|
};
|
|
383
386
|
exports.AMM_LP_FEE = {
|
|
384
387
|
[types_1.Networks.Ropsten]: {
|
|
@@ -475,4 +478,5 @@ exports.AMM_LP_FEE = {
|
|
|
475
478
|
[Amms.nile]: 0,
|
|
476
479
|
[Amms.nileStable]: 0
|
|
477
480
|
},
|
|
481
|
+
[types_1.Networks.Unichain]: {},
|
|
478
482
|
};
|
package/lib/config/chainId.js
CHANGED
|
@@ -24,7 +24,8 @@ exports.IBEX = {
|
|
|
24
24
|
[types_1.Networks.Optimism]: '0xbb6bbaa0f6d839a00c82b10747abc3b7e2eecc82',
|
|
25
25
|
[types_1.Networks.Real]: '',
|
|
26
26
|
[types_1.Networks.Sonic]: '0x55d1d7edbc417dce5efa0df53d9445176efd3920',
|
|
27
|
-
[types_1.Networks.Linea]: '0xcf0f95e34f25d1bb3d9cad3cbb2eb40dab7c3841'
|
|
27
|
+
[types_1.Networks.Linea]: '0xcf0f95e34f25d1bb3d9cad3cbb2eb40dab7c3841',
|
|
28
|
+
[types_1.Networks.Unichain]: ''
|
|
28
29
|
};
|
|
29
30
|
// Stkaing module
|
|
30
31
|
exports.XIBEX = {
|
|
@@ -25,4 +25,5 @@ exports.IMPERMAX_CONFIG_MANAGER = {
|
|
|
25
25
|
[types_1.Networks.Real]: '0x274C36c461C02B39a110A0801EbB218eC076B79B',
|
|
26
26
|
[types_1.Networks.Sonic]: '0x1A3e33E38D2e70D43f65772f63c5B3f52073b37E',
|
|
27
27
|
[types_1.Networks.Linea]: '0x3A65E736b534B3A3703Eb081b93118852Bf1796a',
|
|
28
|
+
[types_1.Networks.Unichain]: '',
|
|
28
29
|
};
|
|
@@ -76,6 +76,9 @@ exports.IMPERMAX_FACTORY = {
|
|
|
76
76
|
[types_1.Factory.SOLV2]: '0x7A9212D34DD283e952f8f15f084832e9b48ee746',
|
|
77
77
|
[types_1.Factory.SOL_STABLE]: '0x0D5433FEe91fb2DB9dd6A74267Dd900EC2130675'
|
|
78
78
|
},
|
|
79
|
+
[types_1.Networks.Unichain]: {
|
|
80
|
+
[types_1.Factory.V3]: '0x50E7116c4a9624a2d562Ee0Ab5209F3834C15E14'
|
|
81
|
+
},
|
|
79
82
|
};
|
|
80
83
|
function getFactoryByAddress(network, address) {
|
|
81
84
|
if (!address)
|
|
@@ -25,6 +25,7 @@ exports.MERKLE_DISTRIBUTOR_IBEX = {
|
|
|
25
25
|
[types_1.Networks.Real]: '',
|
|
26
26
|
[types_1.Networks.Sonic]: '',
|
|
27
27
|
[types_1.Networks.Linea]: '',
|
|
28
|
+
[types_1.Networks.Unichain]: ''
|
|
28
29
|
};
|
|
29
30
|
exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
30
31
|
[types_1.Networks.Polygon]: '0x1c813cDd6dAecE2CB83C52F0798504e42816E9C5',
|
|
@@ -49,6 +50,7 @@ exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
|
49
50
|
[types_1.Networks.Real]: '',
|
|
50
51
|
[types_1.Networks.Sonic]: '',
|
|
51
52
|
[types_1.Networks.Linea]: '',
|
|
53
|
+
[types_1.Networks.Unichain]: ''
|
|
52
54
|
};
|
|
53
55
|
exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
54
56
|
[types_1.Networks.Polygon]: '0x7ce2f634f0698ecdca051ef1dc4be96ef3d05a62',
|
|
@@ -73,4 +75,5 @@ exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
|
73
75
|
[types_1.Networks.Real]: '',
|
|
74
76
|
[types_1.Networks.Sonic]: '',
|
|
75
77
|
[types_1.Networks.Linea]: '',
|
|
78
|
+
[types_1.Networks.Unichain]: ''
|
|
76
79
|
};
|
|
@@ -25,6 +25,7 @@ exports.POOL_TOKEN_ROUTER = {
|
|
|
25
25
|
[types_1.Networks.Optimism]: '0xbEDD49c1aB7c57EFebDdC094245920aebfd70Cf2',
|
|
26
26
|
[types_1.Networks.Sonic]: '0x35A0e3C5adbddF6D917353f9b468C5cdE80ee380',
|
|
27
27
|
[types_1.Networks.Linea]: '0x1c44FD7514525e1669f6E316D66dcBb42930aAd0',
|
|
28
|
+
[types_1.Networks.Unichain]: ''
|
|
28
29
|
};
|
|
29
30
|
// TODO: currently this router only supports stakedLpToken
|
|
30
31
|
exports.ROUTER = {
|
|
@@ -102,6 +103,7 @@ exports.ROUTER = {
|
|
|
102
103
|
[types_1.Factory.SOLV2]: '0x6E658aC2f3C061719C52FB1E56b064cE165CAF31',
|
|
103
104
|
[types_1.Factory.SOL_STABLE]: '',
|
|
104
105
|
},
|
|
106
|
+
[types_1.Networks.Unichain]: {},
|
|
105
107
|
};
|
|
106
108
|
exports.ACTIONS_GETTER = {
|
|
107
109
|
[types_1.Networks.Ropsten]: '',
|
|
@@ -126,6 +128,7 @@ exports.ACTIONS_GETTER = {
|
|
|
126
128
|
[types_1.Networks.Optimism]: '0x8fBF7406ABFdF703D384e38DC1071B5DFf228F88',
|
|
127
129
|
[types_1.Networks.Sonic]: '0x58Fe056eff8729a1d42f99d8ce83a9fE81920907',
|
|
128
130
|
[types_1.Networks.Linea]: '0x121f8cEf8010151C2cbF613848118bd105f15D80',
|
|
131
|
+
[types_1.Networks.Unichain]: '0x732113815f1ecf7be18360c25b3d84328cfc0448'
|
|
129
132
|
};
|
|
130
133
|
exports.ROUTER_V3 = {
|
|
131
134
|
[types_1.Networks.Ropsten]: {},
|
|
@@ -147,7 +150,9 @@ exports.ROUTER_V3 = {
|
|
|
147
150
|
[types_1.Networks.Sxnetwork]: {},
|
|
148
151
|
[types_1.Networks.Base]: {
|
|
149
152
|
//[Extension.UniswapV3]: '0x63F3d5eCde1a0F8675d4358F41d9134Afef0b63c'
|
|
150
|
-
[
|
|
153
|
+
//[Extension.UniswapV3]: '0xf5f995952132871436d8fd61f38bf4a3eb2d662e'
|
|
154
|
+
//[Extension.UniswapV3]: '0x58c5Ca4Ba713A9BBD2A95aCcbC9f545718C822C5'
|
|
155
|
+
[types_1.Extension.UniswapV3]: '0x93CA803979e99f917508223008b2feAb7e84EB6a'
|
|
151
156
|
},
|
|
152
157
|
[types_1.Networks.Scroll]: {},
|
|
153
158
|
[types_1.Networks.Optimism]: {},
|
|
@@ -155,6 +160,9 @@ exports.ROUTER_V3 = {
|
|
|
155
160
|
[types_1.Networks.Real]: {},
|
|
156
161
|
[types_1.Networks.Sonic]: {},
|
|
157
162
|
[types_1.Networks.Linea]: {},
|
|
163
|
+
[types_1.Networks.Unichain]: {
|
|
164
|
+
[types_1.Extension.UniswapV3]: '0x58c5Ca4Ba713A9BBD2A95aCcbC9f545718C822C5'
|
|
165
|
+
}
|
|
158
166
|
};
|
|
159
167
|
exports.STAKING_ROUTER = {
|
|
160
168
|
[types_1.Networks.Ropsten]: '',
|
|
@@ -179,4 +187,5 @@ exports.STAKING_ROUTER = {
|
|
|
179
187
|
[types_1.Networks.Optimism]: '',
|
|
180
188
|
[types_1.Networks.Sonic]: '',
|
|
181
189
|
[types_1.Networks.Linea]: '',
|
|
190
|
+
[types_1.Networks.Unichain]: ''
|
|
182
191
|
};
|
|
@@ -25,5 +25,6 @@ exports.WETH = {
|
|
|
25
25
|
[types_1.Networks.Optimism]: '0x4200000000000000000000000000000000000006',
|
|
26
26
|
[types_1.Networks.Real]: '0x90c6E93849E06EC7478ba24522329d14A5954Df4',
|
|
27
27
|
[types_1.Networks.Sonic]: '0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38',
|
|
28
|
-
[types_1.Networks.Linea]: '0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f',
|
|
28
|
+
[types_1.Networks.Linea]: '0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f',
|
|
29
|
+
[types_1.Networks.Unichain]: '0x4200000000000000000000000000000000000006' // weth
|
|
29
30
|
};
|
package/lib/config/debank-ids.js
CHANGED
|
@@ -25,6 +25,7 @@ exports.MERKLE_URL_IBEX = {
|
|
|
25
25
|
[types_1.Networks.Real]: '',
|
|
26
26
|
[types_1.Networks.Sonic]: '',
|
|
27
27
|
[types_1.Networks.Linea]: '',
|
|
28
|
+
[types_1.Networks.Unichain]: '',
|
|
28
29
|
};
|
|
29
30
|
exports.MERKLE_URL_IBEX_2 = {
|
|
30
31
|
[types_1.Networks.Polygon]: 'https://misty-rice-9880.impermax.workers.dev',
|
|
@@ -49,6 +50,7 @@ exports.MERKLE_URL_IBEX_2 = {
|
|
|
49
50
|
[types_1.Networks.Real]: '',
|
|
50
51
|
[types_1.Networks.Sonic]: '',
|
|
51
52
|
[types_1.Networks.Linea]: '',
|
|
53
|
+
[types_1.Networks.Unichain]: '',
|
|
52
54
|
};
|
|
53
55
|
exports.MERKLE_URL_ETH = {
|
|
54
56
|
[types_1.Networks.Polygon]: 'https://damp-hill-13d0.impermax.workers.dev',
|
|
@@ -73,4 +75,5 @@ exports.MERKLE_URL_ETH = {
|
|
|
73
75
|
[types_1.Networks.Real]: '',
|
|
74
76
|
[types_1.Networks.Sonic]: '',
|
|
75
77
|
[types_1.Networks.Linea]: '',
|
|
78
|
+
[types_1.Networks.Unichain]: '',
|
|
76
79
|
};
|
package/lib/config/eth.js
CHANGED
|
@@ -25,6 +25,7 @@ exports.ETH_NAME = {
|
|
|
25
25
|
[types_1.Networks.Real]: 'Ethereum',
|
|
26
26
|
[types_1.Networks.Sonic]: 'S',
|
|
27
27
|
[types_1.Networks.Linea]: 'Ethereum',
|
|
28
|
+
[types_1.Networks.Unichain]: 'Ethereum',
|
|
28
29
|
};
|
|
29
30
|
exports.ETH_SYMBOL = {
|
|
30
31
|
[types_1.Networks.Ropsten]: 'ETH',
|
|
@@ -49,4 +50,5 @@ exports.ETH_SYMBOL = {
|
|
|
49
50
|
[types_1.Networks.Real]: 'reETH',
|
|
50
51
|
[types_1.Networks.Sonic]: 'S',
|
|
51
52
|
[types_1.Networks.Linea]: 'ETH',
|
|
53
|
+
[types_1.Networks.Unichain]: 'ETH',
|
|
52
54
|
};
|
package/lib/config/farms.js
CHANGED
|
@@ -205,7 +205,8 @@ exports.STAKED_LP_FACTORY = {
|
|
|
205
205
|
},
|
|
206
206
|
[types_1.Networks.Linea]: {
|
|
207
207
|
[Farms.nileStable]: '0xB037874dE77E7b4505261301d2F3CE2fb9036cA7',
|
|
208
|
-
}
|
|
208
|
+
},
|
|
209
|
+
[types_1.Networks.Unichain]: {}
|
|
209
210
|
};
|
|
210
211
|
function getFarmByStakedLPFactory(network, address) {
|
|
211
212
|
if (!address)
|
package/lib/config/nftlp.js
CHANGED
|
@@ -31,6 +31,7 @@ exports.NFTLP_SUBGRAPH_URL = {
|
|
|
31
31
|
[types_1.Networks.Real]: {},
|
|
32
32
|
[types_1.Networks.Sonic]: {},
|
|
33
33
|
[types_1.Networks.Linea]: {},
|
|
34
|
+
[types_1.Networks.Unichain]: {}
|
|
34
35
|
};
|
|
35
36
|
// NFTLP Factory addresses for each network
|
|
36
37
|
exports.NFTLP_FACTORY = {
|
|
@@ -53,7 +54,8 @@ exports.NFTLP_FACTORY = {
|
|
|
53
54
|
[types_1.Networks.Sxnetwork]: {},
|
|
54
55
|
[types_1.Networks.Blast]: {},
|
|
55
56
|
[types_1.Networks.Base]: {
|
|
56
|
-
[types_1.Extension.UniswapV3]: "
|
|
57
|
+
[types_1.Extension.UniswapV3]: "0xC2dA400cf63E9a01680c8fE14aB360098A35Dcd8"
|
|
58
|
+
//[Extension.UniswapV3]: "0xe5D6Cf969C01BF8d6c46840eD784D7F209038D7a"
|
|
57
59
|
//[Extension.UniswapV3]: "0x3e7299f8267d588f4f4fe0865568a653a1e58e3f"
|
|
58
60
|
},
|
|
59
61
|
[types_1.Networks.Scroll]: {},
|
|
@@ -61,6 +63,9 @@ exports.NFTLP_FACTORY = {
|
|
|
61
63
|
[types_1.Networks.Real]: {},
|
|
62
64
|
[types_1.Networks.Sonic]: {},
|
|
63
65
|
[types_1.Networks.Linea]: {},
|
|
66
|
+
[types_1.Networks.Unichain]: {
|
|
67
|
+
[types_1.Extension.UniswapV3]: "0x62b45128b3c2783d5b1f86e6db92c9aa43eed6af"
|
|
68
|
+
}
|
|
64
69
|
};
|
|
65
70
|
// Helper to get subgraph endpoints
|
|
66
71
|
function getNftlpSubgraph(network, dex) {
|
|
@@ -32,6 +32,7 @@ exports.IMPERMAX_POOLS_API = {
|
|
|
32
32
|
[types_1.Networks.Blast]: {},
|
|
33
33
|
[types_1.Networks.Sonic]: {},
|
|
34
34
|
[types_1.Networks.Linea]: {},
|
|
35
|
+
[types_1.Networks.Unichain]: {},
|
|
35
36
|
};
|
|
36
37
|
// For lending pools
|
|
37
38
|
exports.IMPERMAX_VAULT_API = {
|
|
@@ -69,6 +70,7 @@ exports.IMPERMAX_VAULT_API = {
|
|
|
69
70
|
[types_1.VaultType.LENDING]: "https://sonic-lendingvaults-production.up.railway.app/"
|
|
70
71
|
},
|
|
71
72
|
[types_1.Networks.Linea]: {},
|
|
73
|
+
[types_1.Networks.Unichain]: {},
|
|
72
74
|
};
|
|
73
75
|
exports.NFTLP_API = {
|
|
74
76
|
[types_1.Networks.Ropsten]: {},
|
|
@@ -97,11 +99,10 @@ exports.NFTLP_API = {
|
|
|
97
99
|
[types_1.Networks.Real]: {},
|
|
98
100
|
[types_1.Networks.Sonic]: {},
|
|
99
101
|
[types_1.Networks.Linea]: {},
|
|
102
|
+
[types_1.Networks.Unichain]: {},
|
|
100
103
|
};
|
|
101
104
|
// Single endpoint for all factory subgraph token prices
|
|
102
105
|
exports.PRICE_AGGREGATOR_API_URL = "https://price-aggregator-production.up.railway.app/api/tokens";
|
|
103
|
-
// Single endpoint for all NFTLP positions
|
|
104
|
-
//export const POSITIONS_AGGREGATOR_API_URL = "https://positions-aggregator-production.up.railway.app/api/nftlps";
|
|
105
106
|
// TODO: This properly
|
|
106
107
|
exports.NFTLP_POSITIONS_API = {
|
|
107
108
|
[types_1.Networks.Ropsten]: {},
|
|
@@ -130,4 +131,7 @@ exports.NFTLP_POSITIONS_API = {
|
|
|
130
131
|
[types_1.Networks.Real]: {},
|
|
131
132
|
[types_1.Networks.Sonic]: {},
|
|
132
133
|
[types_1.Networks.Linea]: {},
|
|
134
|
+
[types_1.Networks.Unichain]: {
|
|
135
|
+
[types_1.Extension.UniswapV3]: "https://positions-aggregator-production.up.railway.app/api/"
|
|
136
|
+
},
|
|
133
137
|
};
|
|
@@ -26,6 +26,7 @@ export declare const CONFIG_MANAGER_SUBGRAPH_URL: {
|
|
|
26
26
|
"re.al": string;
|
|
27
27
|
sonic: string;
|
|
28
28
|
linea: string;
|
|
29
|
+
unichain: string;
|
|
29
30
|
};
|
|
30
31
|
export declare const WHITELIST_SUBGRAPH_URL: {
|
|
31
32
|
ropsten: string;
|
|
@@ -44,4 +45,5 @@ export declare const WHITELIST_SUBGRAPH_URL: {
|
|
|
44
45
|
sxnetwork: string;
|
|
45
46
|
mantle: string;
|
|
46
47
|
base: string;
|
|
48
|
+
unichain: string;
|
|
47
49
|
};
|
package/lib/config/subgraphs.js
CHANGED
|
@@ -6,9 +6,6 @@ const types_1 = require("./types");
|
|
|
6
6
|
// - FactoryV2: Sonic/Base/Optimism
|
|
7
7
|
// - FactoryV3: Arbitrum/Base
|
|
8
8
|
// - LendingVaults: Polygon/Arbitrum/Blast/Sonic/Base/Scroll
|
|
9
|
-
//"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmfMs5GpdHtaDjUy4YceRhJJdQa4Po2YypLYfxw1z5JEK7",
|
|
10
|
-
//
|
|
11
|
-
// @ts-ignore
|
|
12
9
|
exports.IMPERMAX_SUBGRAPH_URL = {
|
|
13
10
|
[types_1.Networks.Ropsten]: {},
|
|
14
11
|
[types_1.Networks.Mainnet]: {
|
|
@@ -131,6 +128,7 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
131
128
|
],
|
|
132
129
|
[types_1.Factory.SOL_STABLE]: [
|
|
133
130
|
"https://optimism-factory-production.up.railway.app/",
|
|
131
|
+
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmWiBYikbbmWZS8qEkBXzMoM8wm4DeeApzkNzBqF2krc1W",
|
|
134
132
|
]
|
|
135
133
|
},
|
|
136
134
|
[types_1.Networks.Real]: {
|
|
@@ -158,7 +156,8 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
158
156
|
[types_1.Factory.SOL_STABLE]: [
|
|
159
157
|
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmXSvwwRyAPjgtC3tPeESeB1F923bkmAK2usrZtgXkEjVy',
|
|
160
158
|
]
|
|
161
|
-
}
|
|
159
|
+
},
|
|
160
|
+
[types_1.Networks.Unichain]: {},
|
|
162
161
|
};
|
|
163
162
|
// TODO: Since these are part of core we should add redundancy like above, left arrays to fill
|
|
164
163
|
exports.VAULT_SUBGRAPH_URL = {
|
|
@@ -226,6 +225,7 @@ exports.VAULT_SUBGRAPH_URL = {
|
|
|
226
225
|
]
|
|
227
226
|
},
|
|
228
227
|
[types_1.Networks.Linea]: {},
|
|
228
|
+
[types_1.Networks.Unichain]: {}
|
|
229
229
|
};
|
|
230
230
|
exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
231
231
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -251,6 +251,7 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
|
251
251
|
[types_1.Networks.Real]: "",
|
|
252
252
|
[types_1.Networks.Sonic]: "",
|
|
253
253
|
[types_1.Networks.Linea]: "",
|
|
254
|
+
[types_1.Networks.Unichain]: ""
|
|
254
255
|
};
|
|
255
256
|
exports.BLOCKS_SUBGRAPH_URL = {
|
|
256
257
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -275,6 +276,7 @@ exports.BLOCKS_SUBGRAPH_URL = {
|
|
|
275
276
|
[types_1.Networks.Optimism]: "",
|
|
276
277
|
[types_1.Networks.Sonic]: "",
|
|
277
278
|
[types_1.Networks.Linea]: "",
|
|
279
|
+
[types_1.Networks.Unichain]: ""
|
|
278
280
|
};
|
|
279
281
|
exports.XIBEX_SUBGRAPH_URL = {
|
|
280
282
|
[types_1.Networks.Arbitrum]: ["https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmZNQ3vScFpP14gfYmrVXrxwkZSWsfroC5dWyJZh6hpN3s"],
|
|
@@ -301,6 +303,7 @@ exports.CONFIG_MANAGER_SUBGRAPH_URL = {
|
|
|
301
303
|
[types_1.Networks.Real]: "https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-config-manager-real/1.0/gn",
|
|
302
304
|
[types_1.Networks.Sonic]: "https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmVz8i4ACXuUNTT2re2cHnNqqw9UNco2mUrj4m6WYm1QM5",
|
|
303
305
|
[types_1.Networks.Linea]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmaTZ5eckYUp3YqTiaqMoGEc1CzndhA7e8x1FLZmvsUd5J',
|
|
306
|
+
[types_1.Networks.Unichain]: ""
|
|
304
307
|
};
|
|
305
308
|
exports.WHITELIST_SUBGRAPH_URL = {
|
|
306
309
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -319,4 +322,5 @@ exports.WHITELIST_SUBGRAPH_URL = {
|
|
|
319
322
|
[types_1.Networks.Sxnetwork]: "",
|
|
320
323
|
[types_1.Networks.Mantle]: "",
|
|
321
324
|
[types_1.Networks.Base]: "https://api.studio.thegraph.com/query/46041/impermax-whitelist-base/v0.0.1",
|
|
325
|
+
[types_1.Networks.Unichain]: ""
|
|
322
326
|
};
|
package/lib/config/types.d.ts
CHANGED
package/lib/config/types.js
CHANGED
package/lib/config/whitelist.js
CHANGED
|
@@ -240,7 +240,8 @@ exports.WHITELISTED_PAIRS = {
|
|
|
240
240
|
// nile stable
|
|
241
241
|
"0x09a3179372728C01fd03a27F8EC893ce8AD8B14d", // usdc/grai stakedlp
|
|
242
242
|
]
|
|
243
|
-
}
|
|
243
|
+
},
|
|
244
|
+
[types_1.Networks.Unichain]: {}
|
|
244
245
|
};
|
|
245
246
|
exports.WHITELISTED_OLD = {
|
|
246
247
|
[types_1.Networks.Ropsten]: {},
|
|
@@ -657,6 +658,7 @@ exports.WHITELISTED_OLD = {
|
|
|
657
658
|
[types_1.Networks.Linea]: {
|
|
658
659
|
[types_1.Factory.SOLV2]: [],
|
|
659
660
|
},
|
|
661
|
+
[types_1.Networks.Unichain]: {},
|
|
660
662
|
};
|
|
661
663
|
// TODO
|
|
662
664
|
// SHOW WARNING IF A USER HAVE FUNDS DEPOSITED IN A BLACKLISTED PAIR AND THEY CAN BE WITHDRAWN
|
|
@@ -840,6 +842,7 @@ exports.BLACKLISTED = {
|
|
|
840
842
|
[types_1.Networks.Linea]: {
|
|
841
843
|
[types_1.Factory.SOLV2]: [],
|
|
842
844
|
},
|
|
845
|
+
[types_1.Networks.Unichain]: {},
|
|
843
846
|
};
|
|
844
847
|
exports.DISABLED_BORROWS = {
|
|
845
848
|
[types_1.Networks.Ropsten]: [],
|
|
@@ -866,4 +869,5 @@ exports.DISABLED_BORROWS = {
|
|
|
866
869
|
[types_1.Networks.Blast]: [],
|
|
867
870
|
[types_1.Networks.Sonic]: [],
|
|
868
871
|
[types_1.Networks.Linea]: [],
|
|
872
|
+
[types_1.Networks.Unichain]: [],
|
|
869
873
|
};
|
|
@@ -24,6 +24,7 @@ const LlamaChains = {
|
|
|
24
24
|
[types_1.Networks.Blast]: "blast",
|
|
25
25
|
[types_1.Networks.Sonic]: "sonic",
|
|
26
26
|
[types_1.Networks.Linea]: "linea",
|
|
27
|
+
[types_1.Networks.Unichain]: "unichain"
|
|
27
28
|
};
|
|
28
29
|
// Class to get the APR from DefiLlama directly, only makes 1 call to api and caches all pools
|
|
29
30
|
class OffchainAPRHelper {
|