@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.d.ts +2 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3781,7 +3781,8 @@ declare class AlmmModule implements IModule {
|
|
|
3781
3781
|
private _raisePositionByAmountsReward;
|
|
3782
3782
|
burnPosition(params: AlmmBurnPositionParams): Promise<Transaction>;
|
|
3783
3783
|
shrinkPosition(params: AlmmShrinkPosition): Promise<Transaction>;
|
|
3784
|
-
|
|
3784
|
+
collectFeeAndRewardList(paramsList: AlmmCollectRewardParams[]): Promise<Transaction>;
|
|
3785
|
+
collectFeeAndReward(params: AlmmCollectRewardParams & AlmmCollectFeeParams, tx?: Transaction): Promise<Transaction>;
|
|
3785
3786
|
collectReward(params: AlmmCollectRewardParams, transaction?: Transaction): Promise<Transaction>;
|
|
3786
3787
|
collectFees(params: AlmmCollectFeeParams, transaction?: Transaction): Promise<Transaction>;
|
|
3787
3788
|
createPairAddLiquidity(params: AlmmCreatePairAddLiquidityParams): Promise<Transaction>;
|
package/dist/index.js
CHANGED
|
@@ -11070,8 +11070,18 @@ var AlmmModule = class {
|
|
|
11070
11070
|
});
|
|
11071
11071
|
return tx;
|
|
11072
11072
|
}
|
|
11073
|
-
async
|
|
11073
|
+
async collectFeeAndRewardList(paramsList) {
|
|
11074
11074
|
let tx = new import_transactions12.Transaction();
|
|
11075
|
+
for (let index = 0; index < paramsList.length; index++) {
|
|
11076
|
+
const params = paramsList[index];
|
|
11077
|
+
tx = await this.collectFeeAndReward(params);
|
|
11078
|
+
}
|
|
11079
|
+
return tx;
|
|
11080
|
+
}
|
|
11081
|
+
async collectFeeAndReward(params, tx) {
|
|
11082
|
+
if (!tx) {
|
|
11083
|
+
tx = new import_transactions12.Transaction();
|
|
11084
|
+
}
|
|
11075
11085
|
tx = await this.collectFees(params);
|
|
11076
11086
|
if (params.rewards_token.length > 0) {
|
|
11077
11087
|
tx = await this.collectReward(params, tx);
|