@magmaprotocol/magma-clmm-sdk 0.5.22 → 0.5.23

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
@@ -9235,18 +9235,20 @@ var GaugeModule = class {
9235
9235
  stakedPositionOfPool.forEach((value) => {
9236
9236
  ;
9237
9237
  value.infos.forEach((info) => {
9238
- res.push({
9239
- coin_type_a: coins[0],
9240
- coin_type_b: coins[1],
9241
- liquidity: info.info.fields.liquidity,
9242
- tick_lower_index: asIntN(BigInt(info.info.fields.tick_lower_index.fields.bits)),
9243
- tick_upper_index: asIntN(BigInt(info.info.fields.tick_upper_index.fields.bits)),
9244
- pos_object_id: info.info.fields.position_id,
9245
- magma_distribution_staked: info.info.fields.magma_distribution_staked,
9246
- pool: info.pool_id,
9247
- earned: info.earned,
9248
- name: info.name
9249
- });
9238
+ if (info.info) {
9239
+ res.push({
9240
+ coin_type_a: coins[0],
9241
+ coin_type_b: coins[1],
9242
+ liquidity: info.info.fields.liquidity,
9243
+ tick_lower_index: asIntN(BigInt(info.info.fields.tick_lower_index.fields.bits)),
9244
+ tick_upper_index: asIntN(BigInt(info.info.fields.tick_upper_index.fields.bits)),
9245
+ pos_object_id: info.info.fields.position_id,
9246
+ magma_distribution_staked: info.info.fields.magma_distribution_staked,
9247
+ pool: info.pool_id,
9248
+ earned: info.earned,
9249
+ name: info.name
9250
+ });
9251
+ }
9250
9252
  });
9251
9253
  });
9252
9254
  }