impermax-sdk 1.2.140 → 1.2.142

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.
@@ -53,7 +53,9 @@ export declare enum Amms {
53
53
  shadow = "shadow",
54
54
  nile = "nile",
55
55
  nileStable = "nileStable",
56
- swapx = "swapx"
56
+ swapx = "swapx",
57
+ blackhole = "blackhole",
58
+ blackhole1 = "blackhole1"
57
59
  }
58
60
  export declare const hrAmms: {
59
61
  uniswap: string;
@@ -110,6 +112,8 @@ export declare const hrAmms: {
110
112
  nile: string;
111
113
  nileStable: string;
112
114
  swapx: string;
115
+ blackhole: string;
116
+ blackhole1: string;
113
117
  };
114
118
  export declare const AMM_FACTORY: AmmIndex;
115
119
  export declare function getAmmByFactory(network: Networks, address: Address): Amms | null;
@@ -58,6 +58,8 @@ var Amms;
58
58
  Amms["nile"] = "nile";
59
59
  Amms["nileStable"] = "nileStable";
60
60
  Amms["swapx"] = "swapx";
61
+ Amms["blackhole"] = "blackhole";
62
+ Amms["blackhole1"] = "blackhole1";
61
63
  })(Amms = exports.Amms || (exports.Amms = {}));
62
64
  exports.hrAmms = {
63
65
  [Amms.uniswap]: 'Uniswap',
@@ -114,6 +116,8 @@ exports.hrAmms = {
114
116
  [Amms.nile]: 'Nile',
115
117
  [Amms.nileStable]: 'Nile Stable',
116
118
  [Amms.swapx]: 'SwapX',
119
+ [Amms.blackhole]: 'Blackhole',
120
+ [Amms.blackhole1]: 'Blackhole'
117
121
  };
118
122
  exports.AMM_FACTORY = {
119
123
  [types_1.Networks.Ropsten]: {
@@ -148,6 +152,8 @@ exports.AMM_FACTORY = {
148
152
  [Amms.flair]: '0x634e02EB048eb1B5bDDc0CFdC20D34503E9B362d',
149
153
  [Amms.glacier]: '0xaC7B7EaC8310170109301034b8FdB75eCa4CC491',
150
154
  [Amms.thorus]: '0xa98ea6356A316b44Bf710D5f9b6b4eA0081409Ef',
155
+ [Amms.blackhole]: '0x48168439ca4ef9e95975e3e2488bfcbd8fb1a80c',
156
+ [Amms.blackhole1]: '0x1899d3b1e62a1e52cab440ef065d6a6cdfcf1125' // Redeployed for fbomb/weth.e and avax/weth.e
151
157
  },
152
158
  [types_1.Networks.Moonriver]: {
153
159
  [Amms.sushiswap]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
@@ -252,11 +258,13 @@ exports.AMM_SUBGRAPH_URLS = {
252
258
  //[Amms.swapfish]: 'https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2',
253
259
  },
254
260
  [types_1.Networks.Avalanche]: {
255
- [Amms.pangolin]: 'https://api.thegraph.com/subgraphs/name/dasconnor/pangolin-dex',
256
- [Amms.traderJoe]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange',
261
+ [Amms.pangolin]: '',
262
+ [Amms.traderJoe]: '',
257
263
  [Amms.flair]: '',
258
264
  [Amms.glacier]: '',
259
265
  [Amms.thorus]: '',
266
+ [Amms.blackhole]: '',
267
+ [Amms.blackhole1]: '',
260
268
  },
261
269
  [types_1.Networks.Moonriver]: {
262
270
  [Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-exchange',
@@ -323,6 +331,8 @@ exports.ADD_LIQUIDITY_URLS = {
323
331
  [Amms.flair]: 'https://app.flairdex.xyz/liquidity/',
324
332
  [Amms.glacier]: 'https://www.glacier.exchange/liquidity/',
325
333
  [Amms.thorus]: 'https://app.thorus.fi/add/',
334
+ [Amms.blackhole]: 'https://blackhole.xyz/liquidity/',
335
+ [Amms.blackhole1]: 'https://blackhole.xyz/liquidity/',
326
336
  },
327
337
  [types_1.Networks.Moonriver]: {
328
338
  [Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
@@ -421,6 +431,8 @@ exports.AMM_LP_FEE = {
421
431
  [Amms.flair]: 0,
422
432
  [Amms.glacier]: 0,
423
433
  [Amms.thorus]: 0,
434
+ [Amms.blackhole]: 0,
435
+ [Amms.blackhole1]: 0
424
436
  },
425
437
  [types_1.Networks.Moonriver]: {
426
438
  [Amms.sushiswap]: 0.0025,
@@ -7,7 +7,7 @@ exports.IMPERMAX_CONFIG_MANAGER = {
7
7
  [types_1.Networks.Mainnet]: '',
8
8
  [types_1.Networks.Polygon]: '0xB72A79979D9CDbBB5BA6FF7d8E99D5e274154794',
9
9
  [types_1.Networks.Arbitrum]: '',
10
- [types_1.Networks.Avalanche]: '',
10
+ [types_1.Networks.Avalanche]: '0xDC2037D10f3A10F02B8Cf8d3e373c0924b300f7D',
11
11
  [types_1.Networks.Moonriver]: '',
12
12
  [types_1.Networks.Aurora]: '',
13
13
  [types_1.Networks.Cronos]: '',
@@ -206,7 +206,7 @@ exports.BLOCKS_SUBGRAPH_URL = {
206
206
  [types_1.Networks.Mainnet]: 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks',
207
207
  [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/matthewlilley/polygon-blocks',
208
208
  [types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-blocks',
209
- [types_1.Networks.Avalanche]: 'https://api.thegraph.com/subgraphs/name/dasconnor/avalanche-blocks',
209
+ [types_1.Networks.Avalanche]: '',
210
210
  [types_1.Networks.Moonriver]: 'https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-blocks',
211
211
  [types_1.Networks.Aurora]: '',
212
212
  [types_1.Networks.Cronos]: '',
@@ -75,8 +75,8 @@ class OffchainAPRHelper {
75
75
  this.llamaAllPools = filteredPools.reduce((acc, i) => {
76
76
  const pool = i.pool_old.split("-")[0];
77
77
  let llamaChain = i.chain.toLowerCase();
78
- if (llamaChain === 'op mainnet')
79
- llamaChain = 'optimism';
78
+ if (llamaChain.includes('op mainnet'))
79
+ llamaChain = llamaChain.replace('op mainnet', 'optimism');
80
80
  const llamaId = pool.concat("-", llamaChain).toLowerCase();
81
81
  acc[llamaId] = i;
82
82
  return acc;
@@ -99,15 +99,15 @@ class OffchainAPRHelper {
99
99
  // Get the chain tvls
100
100
  this.chainTvls = Object.entries(currentChainTvls).reduce((acc, [chain, tvl]) => {
101
101
  let llamaChain = chain.toLowerCase();
102
- if (llamaChain === 'op mainnet')
103
- llamaChain = 'optimism';
102
+ if (llamaChain.includes('op mainnet'))
103
+ llamaChain = llamaChain.replace('op mainnet', 'optimism');
104
104
  acc[llamaChain.toLowerCase()] = tvl;
105
105
  return acc;
106
106
  }, {});
107
107
  this.chainTvlCharts = Object.entries(chainTvlCharts).reduce((acc, [chain, dayData]) => {
108
108
  let llamaChain = chain.toLowerCase();
109
- if (llamaChain === 'op mainnet')
110
- llamaChain = 'optimism';
109
+ if (llamaChain.includes('op mainnet'))
110
+ llamaChain = llamaChain.replace('op mainnet', 'optimism');
111
111
  acc[llamaChain.toLowerCase()] = dayData.tvl;
112
112
  return acc;
113
113
  }, {});
@@ -128,8 +128,8 @@ class OffchainAPRHelper {
128
128
  this.chainsTotalSupplied = impermaxPools.reduce((acc, pool) => {
129
129
  // OP is outdated, report to llama
130
130
  let chain = pool.chain.toLowerCase();
131
- if (chain === 'op mainnet')
132
- chain = 'optimism';
131
+ if (chain.includes('op mainnet'))
132
+ chain = chain.replace('op mainnet', 'optimism');
133
133
  acc[chain] = (acc[chain] || 0) + pool.totalSupplyUsd;
134
134
  return acc;
135
135
  }, {});
@@ -84,7 +84,15 @@ const dexscreener_ids = {
84
84
  // fantom-bomb on scroll (removed from coingecko)
85
85
  "0x6b6882f7642ee1c15f12b51f1a4988b3e7e29f5c": "scroll",
86
86
  // EliteringssUSDC
87
- "0xd4aa386bfceeedd9de0875b3ba07f51808592e22": "sonic"
87
+ "0xd4aa386bfceeedd9de0875b3ba07f51808592e22": "sonic",
88
+ // Super on avalanche
89
+ "0x09fa58228bb791ea355c90da1e4783452b9bd8c3": "avalanche",
90
+ // Black on avalanche
91
+ "0xcd94a87696fac69edae3a70fe5725307ae1c43f6": "avalanche",
92
+ // KET on avalanche
93
+ "0xffff003a6bad9b743d658048742935fffe2b6ed7": "avalanche",
94
+ // CHAMP on avalanche
95
+ "0x6aa38edd7f32a28b7b2c2dc86fc5b0bf2ae61579": "avalanche"
88
96
  };
89
97
  const fantom_ids = {
90
98
  // uponly on ftm
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "1.2.140",
3
+ "version": "1.2.142",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",