impermax-sdk 2.1.152 → 2.1.154

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.
@@ -95,7 +95,7 @@ exports.IMPERMAX_SUBGRAPH_URL = {
95
95
  },
96
96
  [types_1.Networks.Base]: {
97
97
  [types_1.Factory.SOLV2]: [
98
- "https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/EjB7Dsb7WnfFf1NPPr5rbGnGmk2Jqs42nWPVHjv9997u",
98
+ "https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8PC37V463j8CmiYiLv1SEKdeqbV1bBj1gPzwLa7xoHEG",
99
99
  "https://base-factory-production.up.railway.app/",
100
100
  ],
101
101
  [types_1.Factory.SOL_STABLE]: [
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface Position {
5
5
  readonly lockStateChange: boolean;
6
+ state: number;
6
7
  readonly initialDebtX: number;
7
8
  readonly initialDebtY: number;
8
9
  readonly marketPrice: number;
@@ -70,6 +70,7 @@
70
70
  //
71
71
  // private checkLock() {
72
72
  // if (this.lockStateChange) throw Error("Can't change state of original position object");
73
+ // else this.state++;
73
74
  // }
74
75
  //
75
76
  // /**
@@ -1,6 +1,7 @@
1
1
  import type { Position } from "../interface";
2
2
  export declare class UniswapV3Position implements Position {
3
3
  lockStateChange: boolean;
4
+ state: number;
4
5
  /**
5
6
  * NOTICE all values inside this class are normalized (no decimals or mantissa to take into account)
6
7
  */
@@ -35,10 +35,13 @@ class UniswapV3Position {
35
35
  this.safetyMargin = _safetyMargin;
36
36
  this.liquidationPenalty = _liquidationPenalty;
37
37
  this.lockStateChange = _lockStateChange;
38
+ this.state = 0;
38
39
  }
39
40
  checkLock() {
40
41
  if (this.lockStateChange)
41
42
  throw Error("Can't change state of original position object");
43
+ else
44
+ this.state++;
42
45
  }
43
46
  /**
44
47
  * PRIVATE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.152",
3
+ "version": "2.1.154",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",