@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.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11287,7 +11287,7 @@ var DlmmModule = class {
|
|
|
11287
11287
|
const tx = new import_transactions12.Transaction();
|
|
11288
11288
|
const { integrate, simulationAccount } = this.sdk.sdkOptions;
|
|
11289
11289
|
const typeArguments = [params.coin_a, params.coin_b];
|
|
11290
|
-
const args = [tx.object(params.pool_id), tx.object(params.position_id)];
|
|
11290
|
+
const args = [tx.object(params.pool_id), tx.object(params.position_id), tx.object(CLOCK_ADDRESS)];
|
|
11291
11291
|
tx.moveCall({
|
|
11292
11292
|
target: `${integrate.published_at}::${DlmmScript}::earned_fees`,
|
|
11293
11293
|
arguments: args,
|
|
@@ -11322,7 +11322,7 @@ var DlmmModule = class {
|
|
|
11322
11322
|
const tx = new import_transactions12.Transaction();
|
|
11323
11323
|
const { integrate, simulationAccount } = this.sdk.sdkOptions;
|
|
11324
11324
|
const typeArguments = [params.coin_a, params.coin_b, ...params.rewards_token];
|
|
11325
|
-
const args = [tx.object(params.pool_id), tx.object(params.position_id)];
|
|
11325
|
+
const args = [tx.object(params.pool_id), tx.object(params.position_id), tx.object(CLOCK_ADDRESS)];
|
|
11326
11326
|
let target = `${integrate.published_at}::${DlmmScript}::earned_rewards`;
|
|
11327
11327
|
if (params.rewards_token.length > 1) {
|
|
11328
11328
|
target = `${integrate.published_at}::${DlmmScript}::earned_rewards${params.rewards_token.length}`;
|
|
@@ -11398,7 +11398,7 @@ var DlmmModule = class {
|
|
|
11398
11398
|
tokens: []
|
|
11399
11399
|
};
|
|
11400
11400
|
pairRewards.pair_id = item.parsedJson.pair_id;
|
|
11401
|
-
item.parsedJson.tokens.
|
|
11401
|
+
item.parsedJson.tokens.forEach((token) => {
|
|
11402
11402
|
pairRewards.tokens.push(token.name);
|
|
11403
11403
|
});
|
|
11404
11404
|
out.set(pairRewards.pair_id, pairRewards.tokens);
|