@magmaprotocol/magma-clmm-sdk 0.5.125 → 0.5.127
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11598,11 +11598,17 @@ var AlmmModule = class {
|
|
|
11598
11598
|
}
|
|
11599
11599
|
const fields = getObjectFields(object);
|
|
11600
11600
|
const ownerWarp = getObjectOwner(object);
|
|
11601
|
+
let bin_real_ids = [];
|
|
11602
|
+
if (fields.bin_count) {
|
|
11603
|
+
bin_real_ids = new Array(fields.bin_count).fill(1).map((_, index) => (0, import_calc_almm3.get_real_id)(fields.bin_start + index));
|
|
11604
|
+
} else {
|
|
11605
|
+
bin_real_ids = fields.bin_ids.map((id) => (0, import_calc_almm3.get_real_id)(id));
|
|
11606
|
+
}
|
|
11601
11607
|
return {
|
|
11602
11608
|
pos_object_id: fields.id.id,
|
|
11603
11609
|
owner: ownerWarp.AddressOwner,
|
|
11604
11610
|
pool: fields.pair_id,
|
|
11605
|
-
bin_real_ids
|
|
11611
|
+
bin_real_ids,
|
|
11606
11612
|
type: ""
|
|
11607
11613
|
};
|
|
11608
11614
|
}
|