@meteora-ag/dlmm 1.4.7 → 1.4.9
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/README.md +2 -1
- 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/README.md
CHANGED
|
@@ -222,7 +222,8 @@ const binIdsToRemove = userPosition.positionData.positionBinData.map(
|
|
|
222
222
|
const removeLiquidityTx = await dlmmPool.removeLiquidity({
|
|
223
223
|
position: userPosition.publicKey,
|
|
224
224
|
user: user.publicKey,
|
|
225
|
-
|
|
225
|
+
fromBinId: binIdsToRemove[0],
|
|
226
|
+
toBinId: binIdsToRemove[binIdsToRemove.length - 1],
|
|
226
227
|
liquiditiesBpsToRemove: new Array(binIdsToRemove.length).fill(
|
|
227
228
|
new BN(100 * 100)
|
|
228
229
|
), // 100% (range from 0 to 100)
|
package/dist/index.js
CHANGED
|
@@ -11826,9 +11826,6 @@ var DLMM = class {
|
|
|
11826
11826
|
])
|
|
11827
11827
|
]);
|
|
11828
11828
|
const [activeBin, positionsV2] = promiseResults;
|
|
11829
|
-
const positions = [
|
|
11830
|
-
...positionsV2.map((p) => new PositionV2Wrapper(p.publicKey, p.account))
|
|
11831
|
-
];
|
|
11832
11829
|
if (!activeBin) {
|
|
11833
11830
|
throw new Error("Error fetching active bin");
|
|
11834
11831
|
}
|
|
@@ -11838,6 +11835,9 @@ var DLMM = class {
|
|
|
11838
11835
|
userPositions: []
|
|
11839
11836
|
};
|
|
11840
11837
|
}
|
|
11838
|
+
const positions = [
|
|
11839
|
+
...positionsV2.map((p) => new PositionV2Wrapper(p.publicKey, p.account))
|
|
11840
|
+
];
|
|
11841
11841
|
if (!positions) {
|
|
11842
11842
|
throw new Error("Error fetching positions");
|
|
11843
11843
|
}
|