@magmaprotocol/magma-clmm-sdk 0.5.113 → 0.5.115
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 +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -11095,14 +11095,17 @@ 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
|
-
|
|
11098
|
+
if (ownerRes.data) {
|
|
11099
|
+
const type = extractStructTagFromType(ownerRes.data.type);
|
|
11100
|
+
if (type.full_address === this.buildPositionType()) {
|
|
11101
|
+
const position = this.buildPosition(ownerRes);
|
|
11102
|
+
const cacheKey = `${position.pos_object_id}_getPositionList`;
|
|
11103
|
+
this.updateCache(cacheKey, position, cacheTime24h);
|
|
11104
|
+
allPosition.push(position);
|
|
11105
|
+
}
|
|
11106
|
+
return await this.getUserPositionInfo(allPosition);
|
|
11104
11107
|
}
|
|
11105
|
-
return
|
|
11108
|
+
return [];
|
|
11106
11109
|
}
|
|
11107
11110
|
/**
|
|
11108
11111
|
* Gets a list of positions for the given account address.
|