impermax-sdk 2.1.279 → 2.1.280

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.
@@ -3,6 +3,7 @@ import { Address, NetworkVaultTypeIndex, NetworkFactoryIndex } from "./types";
3
3
  * Private API Endpoints which we might need to use in future for non-core
4
4
  * things (ie. charts, leaderboards, etc.). The app must function well
5
5
  * without any of these endpoints, so just nice to haves.
6
+ * TODO: make sure that the app still works when one of these endpoints is down
6
7
  */
7
8
  export declare const IMPERMAX_POOLS_API: NetworkFactoryIndex<string>;
8
9
  export declare const IMPERMAX_VAULT_API: NetworkVaultTypeIndex<string>;
@@ -6,6 +6,7 @@ const types_1 = require("./types");
6
6
  * Private API Endpoints which we might need to use in future for non-core
7
7
  * things (ie. charts, leaderboards, etc.). The app must function well
8
8
  * without any of these endpoints, so just nice to haves.
9
+ * TODO: make sure that the app still works when one of these endpoints is down
9
10
  */
10
11
  // For lending pools
11
12
  exports.IMPERMAX_POOLS_API = {
@@ -126,7 +126,10 @@ exports.WHITELISTED_PAIRS = {
126
126
  // scale stable
127
127
  "0x656629d6921B9697BBFD791e7e4e8c09E160459E",
128
128
  "0x4c7c80Cb67e88486442474F518876819dcEa8A00", // eth/superoethb stakedlp
129
- ]
129
+ ],
130
+ [types_1.Factory.V3]: [
131
+ "0xa68f6075ae62ebd514d1600cb5035fa0e2210ef8", // ETH-USDC uniV3
132
+ ],
130
133
  },
131
134
  [types_1.Networks.Mantle]: {
132
135
  [types_1.Factory.V2V2]: [
@@ -128,7 +128,6 @@ class OffchainLendingPool {
128
128
  const apr = await this.offchain
129
129
  .getAPRHelper()
130
130
  .getLlamaAPR(uniswapV2Pair, this.offchain.network);
131
- console.log("totalAPR llama", apr);
132
131
  if (apr > 0)
133
132
  return apr;
134
133
  // Try shadow on Sonic network
@@ -195,7 +195,6 @@ class OffchainAPRHelper {
195
195
  for (let i in params) {
196
196
  values[i] = llamaAllPools[llamaId]?.[params[i]] ?? 0;
197
197
  }
198
- console.log("values", values, params);
199
198
  }
200
199
  catch (err) { }
201
200
  return values;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.279",
3
+ "version": "2.1.280",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",