@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.js
CHANGED
|
@@ -11308,14 +11308,17 @@ 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
|
-
|
|
11311
|
+
if (ownerRes.data) {
|
|
11312
|
+
const type = extractStructTagFromType(ownerRes.data.type);
|
|
11313
|
+
if (type.full_address === this.buildPositionType()) {
|
|
11314
|
+
const position = this.buildPosition(ownerRes);
|
|
11315
|
+
const cacheKey = `${position.pos_object_id}_getPositionList`;
|
|
11316
|
+
this.updateCache(cacheKey, position, cacheTime24h);
|
|
11317
|
+
allPosition.push(position);
|
|
11318
|
+
}
|
|
11319
|
+
return await this.getUserPositionInfo(allPosition);
|
|
11317
11320
|
}
|
|
11318
|
-
return
|
|
11321
|
+
return [];
|
|
11319
11322
|
}
|
|
11320
11323
|
/**
|
|
11321
11324
|
* Gets a list of positions for the given account address.
|