impermax-sdk 1.2.38 → 1.2.40

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.
@@ -272,13 +272,13 @@ exports.ADD_LIQUIDITY_URLS = {
272
272
  [types_1.Networks.Moonbeam]: {},
273
273
  [types_1.Networks.Sxnetwork]: {},
274
274
  [types_1.Networks.Base]: {
275
- [Amms.aerodrome]: 'https://aerodrome.finance/deposit',
275
+ [Amms.aerodrome]: 'https://aerodrome.finance/deposit/',
276
276
  },
277
277
  [types_1.Networks.Mantle]: {
278
- [Amms.merchantmoe]: 'https://merchantmoe.com/pool',
278
+ [Amms.merchantmoe]: 'https://merchantmoe.com/pool/',
279
279
  },
280
280
  [types_1.Networks.Scroll]: {
281
- [Amms.tokan]: 'https://app.tokan.exchange/liquidity',
281
+ [Amms.tokan]: 'https://app.tokan.exchange/liquidity/',
282
282
  },
283
283
  };
284
284
  exports.AMM_LP_FEE = {
package/lib/config/eth.js CHANGED
@@ -19,7 +19,7 @@ exports.ETH_NAME = {
19
19
  [types_1.Networks.ZksyncEra]: 'Ethereum',
20
20
  [types_1.Networks.Base]: 'Base',
21
21
  [types_1.Networks.Mantle]: 'Mantle',
22
- [types_1.Networks.Scroll]: 'Scroll',
22
+ [types_1.Networks.Scroll]: 'Ethereum',
23
23
  };
24
24
  exports.ETH_SYMBOL = {
25
25
  [types_1.Networks.Ropsten]: 'ETH',
@@ -19,6 +19,7 @@ export declare const CONFIG_MANAGER_SUBGRAPH_URL: {
19
19
  harmony: string;
20
20
  moonbeam: string;
21
21
  sxnetwork: string;
22
+ scroll: string;
22
23
  base: string;
23
24
  };
24
25
  export declare const WHITELIST_SUBGRAPH_URL: {
@@ -124,6 +124,7 @@ exports.CONFIG_MANAGER_SUBGRAPH_URL = {
124
124
  [types_1.Networks.Harmony]: '',
125
125
  [types_1.Networks.Moonbeam]: '',
126
126
  [types_1.Networks.Sxnetwork]: '',
127
+ [types_1.Networks.Scroll]: 'https://api.studio.thegraph.com/query/46041/impermax-config-manager-scroll/v0.0.1',
127
128
  [types_1.Networks.Base]: 'https://api.studio.thegraph.com/query/46041/impermax-config-manager-base/v0.0.1',
128
129
  };
129
130
  exports.WHITELIST_SUBGRAPH_URL = {
@@ -35,6 +35,8 @@ const coingecko_ids = {
35
35
  "0x85d84c774cf8e9ff85342684b0e795df72a24908": "velocore",
36
36
  "0x5756a28e2aae01f600fc2c01358395f5c1f8ad3a": "vesync",
37
37
  "0x160e07e42adbc1fce92d505b579bcd8a3fbea77d": "dracula-fi",
38
+ // Scroll
39
+ "0x1a2fcb585b327fadec91f55d45829472b15f17a4": "tokan"
38
40
  };
39
41
  class OffchainPriceHelper {
40
42
  constructor(offchain) {
@@ -142,6 +144,9 @@ class OffchainPriceHelper {
142
144
  if (tokenAddress.toLowerCase() === '0x3f56e0c36d275367b8c502090edf38289b3dea0d') { // TEMPORARY fix for MAI
143
145
  return 1;
144
146
  }
147
+ if (tokenAddress.toLowerCase() === '0x2fc5cf65fd0a660801f119832b2158756968266d') { // TEMPORARY fix for CHI
148
+ return 1;
149
+ }
145
150
  if (tokenAddress.toLowerCase() === '0xc71aaf8e486e3f33841bb56ca3fd2ac3fa8d29a8') { // TEMPORARY fix for WSTETH Canto
146
151
  return (yield this.getDebankTokenPrice('0x5fd55a1b9fc24967c4db09c513c3ba0dfa7ff687')) * 1.12;
147
152
  }
@@ -158,6 +163,7 @@ class OffchainPriceHelper {
158
163
  "0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05",
159
164
  "0x900f1ec5819fa087d368877cd03b265bf1802667",
160
165
  "0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2",
166
+ "0x78ab77f7d590fb101aa18affc238cbfea31ead5b" // scroll ibex
161
167
  ].includes(tokenAddress.toLowerCase())) { // fix for IMX
162
168
  return 0;
163
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",