@magmaprotocol/magma-clmm-sdk 0.5.105 → 0.5.106

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
@@ -10857,8 +10857,18 @@ var AlmmModule = class {
10857
10857
  });
10858
10858
  return tx;
10859
10859
  }
10860
- async collectFeeAndReward(params) {
10860
+ async collectFeeAndRewardList(paramsList) {
10861
10861
  let tx = new Transaction12();
10862
+ for (let index = 0; index < paramsList.length; index++) {
10863
+ const params = paramsList[index];
10864
+ tx = await this.collectFeeAndReward(params);
10865
+ }
10866
+ return tx;
10867
+ }
10868
+ async collectFeeAndReward(params, tx) {
10869
+ if (!tx) {
10870
+ tx = new Transaction12();
10871
+ }
10862
10872
  tx = await this.collectFees(params);
10863
10873
  if (params.rewards_token.length > 0) {
10864
10874
  tx = await this.collectReward(params, tx);