@magmaprotocol/magma-clmm-sdk 0.5.112 → 0.5.114
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/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11308,14 +11308,12 @@ var AlmmModule = class {
|
|
|
11308
11308
|
id: positionId,
|
|
11309
11309
|
options: { showContent: true, showType: true, showDisplay, showOwner: true }
|
|
11310
11310
|
});
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
allPosition.push(position);
|
|
11318
|
-
}
|
|
11311
|
+
const type = extractStructTagFromType(ownerRes.data.type);
|
|
11312
|
+
if (type.full_address === this.buildPositionType()) {
|
|
11313
|
+
const position = this.buildPosition(ownerRes);
|
|
11314
|
+
const cacheKey = `${position.pos_object_id}_getPositionList`;
|
|
11315
|
+
this.updateCache(cacheKey, position, cacheTime24h);
|
|
11316
|
+
allPosition.push(position);
|
|
11319
11317
|
}
|
|
11320
11318
|
return await this.getUserPositionInfo(allPosition);
|
|
11321
11319
|
}
|