@magmaprotocol/magma-clmm-sdk 0.5.52 → 0.5.54

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
@@ -11069,7 +11069,7 @@ var DlmmModule = class {
11069
11069
  const tx = new Transaction12();
11070
11070
  const { integrate, simulationAccount } = this.sdk.sdkOptions;
11071
11071
  const typeArguments = [params.coin_a, params.coin_b];
11072
- const args = [tx.object(params.pool_id), tx.object(params.position_id)];
11072
+ const args = [tx.object(params.pool_id), tx.object(params.position_id), tx.object(CLOCK_ADDRESS)];
11073
11073
  tx.moveCall({
11074
11074
  target: `${integrate.published_at}::${DlmmScript}::earned_fees`,
11075
11075
  arguments: args,
@@ -11104,7 +11104,7 @@ var DlmmModule = class {
11104
11104
  const tx = new Transaction12();
11105
11105
  const { integrate, simulationAccount } = this.sdk.sdkOptions;
11106
11106
  const typeArguments = [params.coin_a, params.coin_b, ...params.rewards_token];
11107
- const args = [tx.object(params.pool_id), tx.object(params.position_id)];
11107
+ const args = [tx.object(params.pool_id), tx.object(params.position_id), tx.object(CLOCK_ADDRESS)];
11108
11108
  let target = `${integrate.published_at}::${DlmmScript}::earned_rewards`;
11109
11109
  if (params.rewards_token.length > 1) {
11110
11110
  target = `${integrate.published_at}::${DlmmScript}::earned_rewards${params.rewards_token.length}`;
@@ -11180,7 +11180,7 @@ var DlmmModule = class {
11180
11180
  tokens: []
11181
11181
  };
11182
11182
  pairRewards.pair_id = item.parsedJson.pair_id;
11183
- item.parsedJson.tokens.contents.forEach((token) => {
11183
+ item.parsedJson.tokens.forEach((token) => {
11184
11184
  pairRewards.tokens.push(token.name);
11185
11185
  });
11186
11186
  out.set(pairRewards.pair_id, pairRewards.tokens);