@meteora-ag/dlmm 1.4.8-rc.0 → 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 +0 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- 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,7 +11826,6 @@ var DLMM = class {
|
|
|
11826
11826
|
])
|
|
11827
11827
|
]);
|
|
11828
11828
|
const [activeBin, positionsV2] = promiseResults;
|
|
11829
|
-
console.log("\u{1F680} ~ DLMM ~ getPositionsByUserAndLbPair ~ positionsV2:", positionsV2);
|
|
11830
11829
|
if (!activeBin) {
|
|
11831
11830
|
throw new Error("Error fetching active bin");
|
|
11832
11831
|
}
|