@magmaprotocol/magma-clmm-sdk 0.5.60 → 0.5.62
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 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10506,7 +10506,7 @@ var GaugeModule = class {
|
|
|
10506
10506
|
|
|
10507
10507
|
// src/modules/dlmm.ts
|
|
10508
10508
|
import { Transaction as Transaction12 } from "@mysten/sui/transactions";
|
|
10509
|
-
import { get_real_id_from_price_x128 as get_real_id_from_price_x1282, get_storage_id_from_real_id } from "@magmaprotocol/calc_dlmm";
|
|
10509
|
+
import { get_real_id, get_real_id_from_price_x128 as get_real_id_from_price_x1282, get_storage_id_from_real_id } from "@magmaprotocol/calc_dlmm";
|
|
10510
10510
|
import Decimal10 from "decimal.js";
|
|
10511
10511
|
var DlmmModule = class {
|
|
10512
10512
|
_sdk;
|
|
@@ -10986,7 +10986,7 @@ var DlmmModule = class {
|
|
|
10986
10986
|
pos_object_id: fields.id.id,
|
|
10987
10987
|
owner: ownerWarp.AddressOwner,
|
|
10988
10988
|
pool: fields.pair_id,
|
|
10989
|
-
|
|
10989
|
+
bin_real_ids: fields.bin_ids.map((id) => get_real_id(id)),
|
|
10990
10990
|
type: ""
|
|
10991
10991
|
};
|
|
10992
10992
|
}
|
|
@@ -11029,7 +11029,7 @@ var DlmmModule = class {
|
|
|
11029
11029
|
liquidity: 0,
|
|
11030
11030
|
x_equivalent: 0,
|
|
11031
11031
|
y_equivalent: 0,
|
|
11032
|
-
|
|
11032
|
+
bin_real_ids: [],
|
|
11033
11033
|
bin_x_eq: [],
|
|
11034
11034
|
bin_y_eq: [],
|
|
11035
11035
|
bin_liquidity: []
|
|
@@ -11040,7 +11040,7 @@ var DlmmModule = class {
|
|
|
11040
11040
|
out.liquidity = item.parsedJson.liquidity;
|
|
11041
11041
|
out.x_equivalent = item.parsedJson.x_equivalent;
|
|
11042
11042
|
out.y_equivalent = item.parsedJson.y_equivalent;
|
|
11043
|
-
out.
|
|
11043
|
+
out.bin_real_ids = item.parsedJson.bin_ids.map((id) => get_real_id(id));
|
|
11044
11044
|
out.bin_x_eq = item.parsedJson.bin_x_eq;
|
|
11045
11045
|
out.bin_y_eq = item.parsedJson.bin_y_eq;
|
|
11046
11046
|
out.bin_liquidity = item.parsedJson.bin_liquidity;
|