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.
package/lib/config/subgraphs.js
CHANGED
|
@@ -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/
|
|
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]: [
|
|
@@ -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
|