@magmaprotocol/magma-clmm-sdk 0.5.105 → 0.5.107
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.d.ts +4 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10857,8 +10857,18 @@ var AlmmModule = class {
|
|
|
10857
10857
|
});
|
|
10858
10858
|
return tx;
|
|
10859
10859
|
}
|
|
10860
|
-
async
|
|
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);
|
|
@@ -11216,7 +11226,9 @@ var AlmmModule = class {
|
|
|
11216
11226
|
liquidity: positionLiquidity,
|
|
11217
11227
|
rewards: positionRewards || { position_id: item.pos_object_id, reward: [], amount: [] },
|
|
11218
11228
|
fees: positionFees,
|
|
11219
|
-
contractPool: pool
|
|
11229
|
+
contractPool: pool,
|
|
11230
|
+
coin_type_a: pool?.coin_a || "",
|
|
11231
|
+
coin_type_b: pool?.coin_b || ""
|
|
11220
11232
|
});
|
|
11221
11233
|
}
|
|
11222
11234
|
return out;
|