impermax-sdk 2.1.583 → 2.1.584

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.
@@ -47,10 +47,10 @@ exports.NFTLP_SUBGRAPH_URL = {
47
47
  ]*/
48
48
  },
49
49
  [types_1.Networks.HyperEVM]: {
50
- [types_1.Extension.HyperswapV3]: [
51
- //"https://hyperevm-nftlp-hyperswapv3.up.railway.app/",
52
- "https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-v3-nftlp-hyperswap-hyperevm/1.0.0/gn",
53
- ]
50
+ /*[Extension.HyperswapV3]: [
51
+ //"https://hyperevm-nftlp-hyperswapv3.up.railway.app/",
52
+ "https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-v3-nftlp-hyperswap-hyperevm/1.0.0/gn",
53
+ ]*/
54
54
  }
55
55
  };
56
56
  // NFTLP Factory addresses for each network
@@ -50,6 +50,8 @@ class OffchainLendingVault extends offchainVault_1.default {
50
50
  // Available Liquidity
51
51
  async getAvailableLiquidity() {
52
52
  const entity = await this.getLendingVaultObject();
53
+ if (entity.positions.length === 0)
54
+ return this.getVaultSupply();
53
55
  return entity.getAvailableLiquidity();
54
56
  /*return Math.min(
55
57
  await this.getPoolTokenParamFloat("availableLiquidity"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.583",
3
+ "version": "2.1.584",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",