@magmaprotocol/magma-clmm-sdk 0.5.14 → 0.5.16

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
@@ -9070,7 +9070,23 @@ var GaugeModule = class {
9070
9070
  continue;
9071
9071
  }
9072
9072
  const stakedPositionOfPool = await this.getUserStakedPositionInfoOfPool(userAddr, pool, gauger, coins[0], coins[1]);
9073
- res.push(...stakedPositionOfPool);
9073
+ console.log("stakedPositionOfPool", stakedPositionOfPool);
9074
+ stakedPositionOfPool.forEach((value) => {
9075
+ value.infos.forEach((info) => {
9076
+ res.push({
9077
+ coin_type_a: coins[0],
9078
+ coin_type_b: coins[1],
9079
+ liquidity: info.info.liquidity,
9080
+ tick_lower_index: asIntN(BigInt(info.info.tick_lower_index.bits)),
9081
+ tick_upper_index: asIntN(BigInt(info.info.tick_upper_index.bits)),
9082
+ pos_object_id: info.info.position_id,
9083
+ magma_distribution_staked: info.info.magma_distribution_staked,
9084
+ pool: info.pool_id,
9085
+ earned: info.earned,
9086
+ name: info.name
9087
+ });
9088
+ });
9089
+ });
9074
9090
  }
9075
9091
  return res;
9076
9092
  }
@@ -9114,7 +9130,7 @@ var GaugeModule = class {
9114
9130
  sender: simulationAccount.address
9115
9131
  });
9116
9132
  if (simulateRes.error != null) {
9117
- throw new Error(`all_lock_summary error code: ${simulateRes.error ?? "unknown error"}`);
9133
+ throw new Error(`getPoolGaguers error code: ${simulateRes.error ?? "unknown error"}`);
9118
9134
  }
9119
9135
  const poolGauger = /* @__PURE__ */ new Map();
9120
9136
  simulateRes.events?.forEach((item) => {