impermax-sdk 1.2.41 → 1.2.43
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 +7 -2
- package/lib/config/contracts/impermax-factories.js +1 -0
- package/lib/config/contracts/routers.js +2 -1
- package/lib/config/contracts/simple-uniswap-oracles.js +3 -1
- package/lib/config/farms.d.ts +2 -1
- package/lib/config/farms.js +1 -1
- package/lib/config/subgraphs.js +1 -0
- package/lib/offchain/offchainPriceHelper.js +7 -1
- package/package.json +1 -1
package/lib/config/amms.js
CHANGED
|
@@ -140,7 +140,9 @@ exports.AMM_FACTORY = {
|
|
|
140
140
|
[Amms.merchantmoe]: "0x5bEf015CA9424A7C07B68490616a4C1F094BEdEc"
|
|
141
141
|
},
|
|
142
142
|
[types_1.Networks.Base]: {
|
|
143
|
-
[Amms.aerodrome]: '0x2a32215Ba106039f5A96b6366338BDb9FB0b62E8', //NOTICE: this is actually the staked LP factory
|
|
143
|
+
// [Amms.aerodrome]: '0x2a32215Ba106039f5A96b6366338BDb9FB0b62E8', //NOTICE: this is actually the staked LP factory,
|
|
144
|
+
[Amms.aerodrome]: '0x420DD381b31aEf6683db6B902084cB0FFECe40Da',
|
|
145
|
+
[Amms.uniswap]: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6'
|
|
144
146
|
},
|
|
145
147
|
[types_1.Networks.Scroll]: {
|
|
146
148
|
[Amms.tokan]: '0x074568F090e93194289c2C2BF285eE7f60b485a9', //NOTICE: this is actually the staked LP factory
|
|
@@ -207,7 +209,8 @@ exports.AMM_SUBGRAPH_URLS = {
|
|
|
207
209
|
[types_1.Networks.Moonbeam]: {},
|
|
208
210
|
[types_1.Networks.Sxnetwork]: {},
|
|
209
211
|
[types_1.Networks.Base]: {
|
|
210
|
-
[Amms.aerodrome]: 'https://api.thegraph.com/subgraphs/name/ethzoomer/aerodrome-trading-data',
|
|
212
|
+
[Amms.aerodrome]: 'https://api.thegraph.com/subgraphs/name/ethzoomer/aerodrome-trading-data',
|
|
213
|
+
[Amms.uniswap]: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
|
|
211
214
|
},
|
|
212
215
|
[types_1.Networks.Mantle]: {},
|
|
213
216
|
[types_1.Networks.Scroll]: {},
|
|
@@ -273,6 +276,7 @@ exports.ADD_LIQUIDITY_URLS = {
|
|
|
273
276
|
[types_1.Networks.Sxnetwork]: {},
|
|
274
277
|
[types_1.Networks.Base]: {
|
|
275
278
|
[Amms.aerodrome]: 'https://aerodrome.finance/deposit/',
|
|
279
|
+
[Amms.uniswap]: 'https://app.uniswap.org/#/add/V2/',
|
|
276
280
|
},
|
|
277
281
|
[types_1.Networks.Mantle]: {
|
|
278
282
|
[Amms.merchantmoe]: 'https://merchantmoe.com/pool/',
|
|
@@ -342,6 +346,7 @@ exports.AMM_LP_FEE = {
|
|
|
342
346
|
[types_1.Networks.Sxnetwork]: {},
|
|
343
347
|
[types_1.Networks.Base]: {
|
|
344
348
|
[Amms.aerodrome]: 0,
|
|
349
|
+
[Amms.uniswap]: 0.003,
|
|
345
350
|
},
|
|
346
351
|
[types_1.Networks.Scroll]: {
|
|
347
352
|
[Amms.tokan]: 0,
|
|
@@ -43,6 +43,7 @@ exports.IMPERMAX_FACTORY = {
|
|
|
43
43
|
[types_1.Networks.Sxnetwork]: {},
|
|
44
44
|
[types_1.Networks.Base]: {
|
|
45
45
|
[types_1.Factory.SOLV2]: '0x66ca66E002a9CEE8dEfE25dB6f0c6225117C2d9f',
|
|
46
|
+
[types_1.Factory.V2V2]: '0x47183bB55AD0F891887E099Cec3570d3C667cD00',
|
|
46
47
|
},
|
|
47
48
|
[types_1.Networks.Scroll]: {
|
|
48
49
|
[types_1.Factory.SOLV2]: '0x02Ff7B4d96EeBF8c9B34Fae0418E591e11da3099',
|
|
@@ -46,7 +46,8 @@ exports.ROUTER = {
|
|
|
46
46
|
[types_1.Networks.Moonbeam]: {},
|
|
47
47
|
[types_1.Networks.Sxnetwork]: {},
|
|
48
48
|
[types_1.Networks.Base]: {
|
|
49
|
-
[types_1.Factory.SOLV2]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f'
|
|
49
|
+
[types_1.Factory.SOLV2]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f',
|
|
50
|
+
[types_1.Factory.V2V2]: '0x21D9d4d17255d427A5F77D23fb9Eb3c5Cd281ebf'
|
|
50
51
|
},
|
|
51
52
|
[types_1.Networks.Scroll]: {
|
|
52
53
|
[types_1.Factory.SOLV2]: '0xFF8D0CDC9C857c7fA265121394558B26e1eAAffE'
|
|
@@ -34,7 +34,9 @@ exports.SIMPLE_UNISWAP_ORACLE = {
|
|
|
34
34
|
[types_1.Networks.Sxnetwork]: {},
|
|
35
35
|
[types_1.Networks.Canto]: {},
|
|
36
36
|
[types_1.Networks.ZksyncEra]: {},
|
|
37
|
-
[types_1.Networks.Base]: {
|
|
37
|
+
[types_1.Networks.Base]: {
|
|
38
|
+
[types_1.Factory.V2V2]: "0x1fd55593ccD75e5727bb71bEB155e86d7290eAD6"
|
|
39
|
+
},
|
|
38
40
|
[types_1.Networks.Scroll]: {},
|
|
39
41
|
[types_1.Networks.Mantle]: {
|
|
40
42
|
[types_1.Factory.V2V2]: '0x936c30E14daED88fd29bf4FCe2965EbEDe633846'
|
package/lib/config/farms.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare enum Farms {
|
|
|
22
22
|
draculafi = "draculafi",
|
|
23
23
|
vesync = "vesync",
|
|
24
24
|
radiant = "",
|
|
25
|
-
plutusDao = "",
|
|
25
|
+
plutusDao = "plutusdao",
|
|
26
26
|
pangolin = "pangolin",
|
|
27
27
|
pangolinV2 = "pangolinV2",
|
|
28
28
|
traderJoeV2 = "traderJoeV2",
|
|
@@ -66,6 +66,7 @@ export declare const hrFarms: {
|
|
|
66
66
|
draculafi: string;
|
|
67
67
|
vesync: string;
|
|
68
68
|
"": string;
|
|
69
|
+
plutusdao: string;
|
|
69
70
|
pangolin: string;
|
|
70
71
|
pangolinV2: string;
|
|
71
72
|
traderJoeV2: string;
|
package/lib/config/farms.js
CHANGED
|
@@ -26,7 +26,7 @@ var Farms;
|
|
|
26
26
|
Farms["draculafi"] = "draculafi";
|
|
27
27
|
Farms["vesync"] = "vesync";
|
|
28
28
|
Farms["radiant"] = "";
|
|
29
|
-
Farms["plutusDao"] = "";
|
|
29
|
+
Farms["plutusDao"] = "plutusdao";
|
|
30
30
|
Farms["pangolin"] = "pangolin";
|
|
31
31
|
Farms["pangolinV2"] = "pangolinV2";
|
|
32
32
|
Farms["traderJoeV2"] = "traderJoeV2";
|
package/lib/config/subgraphs.js
CHANGED
|
@@ -45,6 +45,7 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
45
45
|
[types_1.Networks.Sxnetwork]: {},
|
|
46
46
|
[types_1.Networks.Base]: {
|
|
47
47
|
[types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-base-solv2/v0.0.2',
|
|
48
|
+
[types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-base-v2/v0.0.1',
|
|
48
49
|
},
|
|
49
50
|
[types_1.Networks.Scroll]: {
|
|
50
51
|
[types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-scroll-solv2/v0.0.1',
|
|
@@ -37,7 +37,13 @@ const coingecko_ids = {
|
|
|
37
37
|
"0x160e07e42adbc1fce92d505b579bcd8a3fbea77d": "dracula-fi",
|
|
38
38
|
// Scroll
|
|
39
39
|
"0x1a2fcb585b327fadec91f55d45829472b15f17a4": "tokan",
|
|
40
|
-
"0x78ab77f7d590fb101aa18affc238cbfea31ead5b": "impermax"
|
|
40
|
+
"0x78ab77f7d590fb101aa18affc238cbfea31ead5b": "impermax",
|
|
41
|
+
"0xf610a9dfb7c89644979b4a0f27063e9e7d7cda32": "wrapped-steth",
|
|
42
|
+
"0x74ccbe53f77b08632ce0cb91d3a545bf6b8e0979": "fantom-bomb",
|
|
43
|
+
// base
|
|
44
|
+
"0x940181a94a35a4569e4529a3cdfb74e38fd98631": "aerodrome-finance",
|
|
45
|
+
"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed": "degen-base",
|
|
46
|
+
"0x4200000000000000000000000000000000000006": "ethereum"
|
|
41
47
|
};
|
|
42
48
|
class OffchainPriceHelper {
|
|
43
49
|
constructor(offchain) {
|