@magmaprotocol/magma-clmm-sdk 0.5.124 → 0.5.126
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 +0 -2
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5373,9 +5373,6 @@ var PoolModule = class {
|
|
|
5373
5373
|
const swpaCoinTypeB = params.coinTypeB;
|
|
5374
5374
|
params.coinTypeB = params.coinTypeA;
|
|
5375
5375
|
params.coinTypeA = swpaCoinTypeB;
|
|
5376
|
-
const metadataB = params.metadata_b;
|
|
5377
|
-
params.metadata_b = params.metadata_a;
|
|
5378
|
-
params.metadata_a = metadataB;
|
|
5379
5376
|
}
|
|
5380
5377
|
return await this.createPoolAndAddLiquidity(params);
|
|
5381
5378
|
}
|
|
@@ -5389,9 +5386,6 @@ var PoolModule = class {
|
|
|
5389
5386
|
const swpaCoinTypeB = params.coinTypeB;
|
|
5390
5387
|
params.coinTypeB = params.coinTypeA;
|
|
5391
5388
|
params.coinTypeA = swpaCoinTypeB;
|
|
5392
|
-
const metadataB = params.metadata_b;
|
|
5393
|
-
params.metadata_b = params.metadata_a;
|
|
5394
|
-
params.metadata_a = metadataB;
|
|
5395
5389
|
}
|
|
5396
5390
|
return await this.createPoolAndAddLiquidity(params);
|
|
5397
5391
|
}
|
|
@@ -11391,11 +11385,12 @@ var AlmmModule = class {
|
|
|
11391
11385
|
}
|
|
11392
11386
|
const fields = getObjectFields(object);
|
|
11393
11387
|
const ownerWarp = getObjectOwner(object);
|
|
11388
|
+
const bin_real_ids = new Array(fields.bin_count).map((_, index) => get_real_id(fields.bin_start + index));
|
|
11394
11389
|
return {
|
|
11395
11390
|
pos_object_id: fields.id.id,
|
|
11396
11391
|
owner: ownerWarp.AddressOwner,
|
|
11397
11392
|
pool: fields.pair_id,
|
|
11398
|
-
bin_real_ids
|
|
11393
|
+
bin_real_ids,
|
|
11399
11394
|
type: ""
|
|
11400
11395
|
};
|
|
11401
11396
|
}
|