impermax-sdk 2.1.400 → 2.1.402
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 +8 -1
- package/lib/config/private-api.js +8 -2
- package/lib/config/subgraphs.d.ts +2 -0
- package/lib/config/subgraphs.js +11 -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,9 @@ 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]: {
|
|
35
|
+
[types_1.Extension.UniswapV3]: ["https://unichain-nftlp-uniswapv3.up.railway.app/"]
|
|
36
|
+
}
|
|
34
37
|
};
|
|
35
38
|
// NFTLP Factory addresses for each network
|
|
36
39
|
exports.NFTLP_FACTORY = {
|
|
@@ -53,7 +56,8 @@ exports.NFTLP_FACTORY = {
|
|
|
53
56
|
[types_1.Networks.Sxnetwork]: {},
|
|
54
57
|
[types_1.Networks.Blast]: {},
|
|
55
58
|
[types_1.Networks.Base]: {
|
|
56
|
-
[types_1.Extension.UniswapV3]: "
|
|
59
|
+
[types_1.Extension.UniswapV3]: "0xC2dA400cf63E9a01680c8fE14aB360098A35Dcd8"
|
|
60
|
+
//[Extension.UniswapV3]: "0xe5D6Cf969C01BF8d6c46840eD784D7F209038D7a"
|
|
57
61
|
//[Extension.UniswapV3]: "0x3e7299f8267d588f4f4fe0865568a653a1e58e3f"
|
|
58
62
|
},
|
|
59
63
|
[types_1.Networks.Scroll]: {},
|
|
@@ -61,6 +65,9 @@ exports.NFTLP_FACTORY = {
|
|
|
61
65
|
[types_1.Networks.Real]: {},
|
|
62
66
|
[types_1.Networks.Sonic]: {},
|
|
63
67
|
[types_1.Networks.Linea]: {},
|
|
68
|
+
[types_1.Networks.Unichain]: {
|
|
69
|
+
[types_1.Extension.UniswapV3]: "0x62b45128b3c2783d5b1f86e6db92c9aa43eed6af"
|
|
70
|
+
}
|
|
64
71
|
};
|
|
65
72
|
// Helper to get subgraph endpoints
|
|
66
73
|
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,12 @@ 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]: {
|
|
103
|
+
[types_1.Extension.UniswapV3]: "https://unichain-nftlp-uniswapv3.up.railway.app/"
|
|
104
|
+
},
|
|
100
105
|
};
|
|
101
106
|
// Single endpoint for all factory subgraph token prices
|
|
102
107
|
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
108
|
// TODO: This properly
|
|
106
109
|
exports.NFTLP_POSITIONS_API = {
|
|
107
110
|
[types_1.Networks.Ropsten]: {},
|
|
@@ -130,4 +133,7 @@ exports.NFTLP_POSITIONS_API = {
|
|
|
130
133
|
[types_1.Networks.Real]: {},
|
|
131
134
|
[types_1.Networks.Sonic]: {},
|
|
132
135
|
[types_1.Networks.Linea]: {},
|
|
136
|
+
[types_1.Networks.Unichain]: {
|
|
137
|
+
[types_1.Extension.UniswapV3]: "https://positions-aggregator-production.up.railway.app/api/"
|
|
138
|
+
},
|
|
133
139
|
};
|
|
@@ -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]: {
|
|
@@ -159,7 +156,12 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
159
156
|
[types_1.Factory.SOL_STABLE]: [
|
|
160
157
|
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmXSvwwRyAPjgtC3tPeESeB1F923bkmAK2usrZtgXkEjVy',
|
|
161
158
|
]
|
|
162
|
-
}
|
|
159
|
+
},
|
|
160
|
+
[types_1.Networks.Unichain]: {
|
|
161
|
+
[types_1.Factory.V3]: [
|
|
162
|
+
'https://unichain-factoryv3-production.up.railway.app/'
|
|
163
|
+
]
|
|
164
|
+
},
|
|
163
165
|
};
|
|
164
166
|
// TODO: Since these are part of core we should add redundancy like above, left arrays to fill
|
|
165
167
|
exports.VAULT_SUBGRAPH_URL = {
|
|
@@ -227,6 +229,7 @@ exports.VAULT_SUBGRAPH_URL = {
|
|
|
227
229
|
]
|
|
228
230
|
},
|
|
229
231
|
[types_1.Networks.Linea]: {},
|
|
232
|
+
[types_1.Networks.Unichain]: {}
|
|
230
233
|
};
|
|
231
234
|
exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
232
235
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -252,6 +255,7 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
|
252
255
|
[types_1.Networks.Real]: "",
|
|
253
256
|
[types_1.Networks.Sonic]: "",
|
|
254
257
|
[types_1.Networks.Linea]: "",
|
|
258
|
+
[types_1.Networks.Unichain]: ""
|
|
255
259
|
};
|
|
256
260
|
exports.BLOCKS_SUBGRAPH_URL = {
|
|
257
261
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -276,6 +280,7 @@ exports.BLOCKS_SUBGRAPH_URL = {
|
|
|
276
280
|
[types_1.Networks.Optimism]: "",
|
|
277
281
|
[types_1.Networks.Sonic]: "",
|
|
278
282
|
[types_1.Networks.Linea]: "",
|
|
283
|
+
[types_1.Networks.Unichain]: ""
|
|
279
284
|
};
|
|
280
285
|
exports.XIBEX_SUBGRAPH_URL = {
|
|
281
286
|
[types_1.Networks.Arbitrum]: ["https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmZNQ3vScFpP14gfYmrVXrxwkZSWsfroC5dWyJZh6hpN3s"],
|
|
@@ -302,6 +307,7 @@ exports.CONFIG_MANAGER_SUBGRAPH_URL = {
|
|
|
302
307
|
[types_1.Networks.Real]: "https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-config-manager-real/1.0/gn",
|
|
303
308
|
[types_1.Networks.Sonic]: "https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmVz8i4ACXuUNTT2re2cHnNqqw9UNco2mUrj4m6WYm1QM5",
|
|
304
309
|
[types_1.Networks.Linea]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/deployments/id/QmaTZ5eckYUp3YqTiaqMoGEc1CzndhA7e8x1FLZmvsUd5J',
|
|
310
|
+
[types_1.Networks.Unichain]: ""
|
|
305
311
|
};
|
|
306
312
|
exports.WHITELIST_SUBGRAPH_URL = {
|
|
307
313
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -320,4 +326,5 @@ exports.WHITELIST_SUBGRAPH_URL = {
|
|
|
320
326
|
[types_1.Networks.Sxnetwork]: "",
|
|
321
327
|
[types_1.Networks.Mantle]: "",
|
|
322
328
|
[types_1.Networks.Base]: "https://api.studio.thegraph.com/query/46041/impermax-whitelist-base/v0.0.1",
|
|
329
|
+
[types_1.Networks.Unichain]: ""
|
|
323
330
|
};
|
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 {
|