@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.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
- for (const item of ownerRes.data) {
11099
- const type = extractStructTagFromType(item.data.type);
11100
- if (type.full_address === this.buildPositionType()) {
11101
- const position = this.buildPosition(item);
11102
- const cacheKey = `${position.pos_object_id}_getPositionList`;
11103
- this.updateCache(cacheKey, position, cacheTime24h);
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
  }