@magmaprotocol/magma-clmm-sdk 0.5.112 → 0.5.113
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.mjs
CHANGED
|
@@ -11095,14 +11095,12 @@ var AlmmModule = class {
|
|
|
11095
11095
|
id: positionId,
|
|
11096
11096
|
options: { showContent: true, showType: true, showDisplay, showOwner: true }
|
|
11097
11097
|
});
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
allPosition.push(position);
|
|
11105
|
-
}
|
|
11098
|
+
const type = extractStructTagFromType(ownerRes.data.type);
|
|
11099
|
+
if (type.full_address === this.buildPositionType()) {
|
|
11100
|
+
const position = this.buildPosition(ownerRes.data);
|
|
11101
|
+
const cacheKey = `${position.pos_object_id}_getPositionList`;
|
|
11102
|
+
this.updateCache(cacheKey, position, cacheTime24h);
|
|
11103
|
+
allPosition.push(position);
|
|
11106
11104
|
}
|
|
11107
11105
|
return await this.getUserPositionInfo(allPosition);
|
|
11108
11106
|
}
|