impermax-sdk 1.2.48 → 1.2.49
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.d.ts
CHANGED
|
@@ -35,7 +35,8 @@ export declare enum Amms {
|
|
|
35
35
|
aerodrome = "aerodrome",
|
|
36
36
|
merchantmoe = "merchantmoe",
|
|
37
37
|
tokan = "tokan",
|
|
38
|
-
tokanStable = "tokanStable"
|
|
38
|
+
tokanStable = "tokanStable",
|
|
39
|
+
scale = "scale"
|
|
39
40
|
}
|
|
40
41
|
export declare const hrAmms: {
|
|
41
42
|
uniswap: string;
|
|
@@ -71,6 +72,7 @@ export declare const hrAmms: {
|
|
|
71
72
|
vesync: string;
|
|
72
73
|
solunea: string;
|
|
73
74
|
aerodrome: string;
|
|
75
|
+
scale: string;
|
|
74
76
|
merchantmoe: string;
|
|
75
77
|
tokan: string;
|
|
76
78
|
tokanStable: string;
|
package/lib/config/amms.js
CHANGED
|
@@ -40,6 +40,7 @@ var Amms;
|
|
|
40
40
|
Amms["merchantmoe"] = "merchantmoe";
|
|
41
41
|
Amms["tokan"] = "tokan";
|
|
42
42
|
Amms["tokanStable"] = "tokanStable";
|
|
43
|
+
Amms["scale"] = "scale";
|
|
43
44
|
})(Amms = exports.Amms || (exports.Amms = {}));
|
|
44
45
|
exports.hrAmms = {
|
|
45
46
|
[Amms.uniswap]: 'Uniswap',
|
|
@@ -75,6 +76,7 @@ exports.hrAmms = {
|
|
|
75
76
|
[Amms.vesync]: 'VeSync',
|
|
76
77
|
[Amms.solunea]: 'Solunea',
|
|
77
78
|
[Amms.aerodrome]: 'Aerodrome',
|
|
79
|
+
[Amms.scale]: 'Scale',
|
|
78
80
|
[Amms.merchantmoe]: 'MerchantMoe',
|
|
79
81
|
[Amms.tokan]: 'Tokan',
|
|
80
82
|
[Amms.tokanStable]: 'Tokan',
|
|
@@ -144,6 +146,7 @@ exports.AMM_FACTORY = {
|
|
|
144
146
|
[types_1.Networks.Base]: {
|
|
145
147
|
// [Amms.aerodrome]: '0x2a32215Ba106039f5A96b6366338BDb9FB0b62E8', //NOTICE: this is actually the staked LP factory,
|
|
146
148
|
[Amms.aerodrome]: '0x420DD381b31aEf6683db6B902084cB0FFECe40Da',
|
|
149
|
+
[Amms.scale]: '0xEd8db60aCc29e14bC867a497D94ca6e3CeB5eC04',
|
|
147
150
|
[Amms.uniswap]: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6'
|
|
148
151
|
},
|
|
149
152
|
[types_1.Networks.Scroll]: {
|
|
@@ -279,6 +282,7 @@ exports.ADD_LIQUIDITY_URLS = {
|
|
|
279
282
|
[types_1.Networks.Sxnetwork]: {},
|
|
280
283
|
[types_1.Networks.Base]: {
|
|
281
284
|
[Amms.aerodrome]: 'https://aerodrome.finance/deposit/',
|
|
285
|
+
[Amms.scale]: 'https://base.equalizer.exchange/liquidity/',
|
|
282
286
|
[Amms.uniswap]: 'https://app.uniswap.org/#/add/V2/',
|
|
283
287
|
},
|
|
284
288
|
[types_1.Networks.Mantle]: {
|
|
@@ -350,6 +354,7 @@ exports.AMM_LP_FEE = {
|
|
|
350
354
|
[types_1.Networks.Sxnetwork]: {},
|
|
351
355
|
[types_1.Networks.Base]: {
|
|
352
356
|
[Amms.aerodrome]: 0,
|
|
357
|
+
[Amms.scale]: 0,
|
|
353
358
|
[Amms.uniswap]: 0.003,
|
|
354
359
|
},
|
|
355
360
|
[types_1.Networks.Scroll]: {
|
|
@@ -43,7 +43,8 @@ const coingecko_ids = {
|
|
|
43
43
|
// base
|
|
44
44
|
"0x940181a94a35a4569e4529a3cdfb74e38fd98631": "aerodrome-finance",
|
|
45
45
|
"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed": "degen-base",
|
|
46
|
-
"0x4200000000000000000000000000000000000006": "ethereum"
|
|
46
|
+
"0x4200000000000000000000000000000000000006": "ethereum",
|
|
47
|
+
"0x54016a4848a38f257b6e96331f7404073fd9c32c": "equalizer-base"
|
|
47
48
|
};
|
|
48
49
|
const dexscreener_ids = {
|
|
49
50
|
// ibex on scroll
|
|
@@ -56,6 +57,8 @@ const dexscreener_ids = {
|
|
|
56
57
|
"0xbe9f8c0d6f0fd7e46cdacca340747ea2f247991d": "zksync",
|
|
57
58
|
// fantom-bomb on scroll
|
|
58
59
|
"0x74ccbe53f77b08632ce0cb91d3a545bf6b8e0979": "scroll",
|
|
60
|
+
// axlOP on base
|
|
61
|
+
"0x994ac01750047B9d35431a7Ae4Ed312ee955E030": "base"
|
|
59
62
|
};
|
|
60
63
|
class OffchainPriceHelper {
|
|
61
64
|
constructor(offchain) {
|