@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.mjs
CHANGED
|
@@ -11385,11 +11385,17 @@ var AlmmModule = class {
|
|
|
11385
11385
|
}
|
|
11386
11386
|
const fields = getObjectFields(object);
|
|
11387
11387
|
const ownerWarp = getObjectOwner(object);
|
|
11388
|
+
let bin_real_ids = [];
|
|
11389
|
+
if (fields.bin_count) {
|
|
11390
|
+
bin_real_ids = new Array(fields.bin_count).fill(1).map((_, index) => get_real_id(fields.bin_start + index));
|
|
11391
|
+
} else {
|
|
11392
|
+
bin_real_ids = fields.bin_ids.map((id) => get_real_id(id));
|
|
11393
|
+
}
|
|
11388
11394
|
return {
|
|
11389
11395
|
pos_object_id: fields.id.id,
|
|
11390
11396
|
owner: ownerWarp.AddressOwner,
|
|
11391
11397
|
pool: fields.pair_id,
|
|
11392
|
-
bin_real_ids
|
|
11398
|
+
bin_real_ids,
|
|
11393
11399
|
type: ""
|
|
11394
11400
|
};
|
|
11395
11401
|
}
|