@meteora-ag/dlmm 1.6.0-rc.10 → 1.6.0-rc.12
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 +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10680,7 +10680,7 @@ declare class DLMM {
|
|
|
10680
10680
|
*
|
|
10681
10681
|
* @returns An object containing the instructions to initialize new bin arrays and the instruction to rebalance the position.
|
|
10682
10682
|
*/
|
|
10683
|
-
rebalancePosition(rebalancePositionResponse: RebalancePositionResponse, maxActiveBinSlippage: BN$1, rentPayer?: PublicKey, slippage?: number): Promise<
|
|
10683
|
+
rebalancePosition(rebalancePositionResponse: RebalancePositionResponse, maxActiveBinSlippage: BN$1, rentPayer?: PublicKey, slippage?: number): Promise<TransactionInstruction[][]>;
|
|
10684
10684
|
/**
|
|
10685
10685
|
* Create an extended empty position.
|
|
10686
10686
|
*
|
package/dist/index.js
CHANGED
|
@@ -18291,10 +18291,12 @@ var DLMM = class {
|
|
|
18291
18291
|
chunk,
|
|
18292
18292
|
activeId
|
|
18293
18293
|
);
|
|
18294
|
+
console.log("\u{1F680} ~ DLMM ~ chunkedDepositParams:", chunkedDepositParams);
|
|
18294
18295
|
const chunkedWithdrawParams = splitWithdrawParamsForChunk(
|
|
18295
18296
|
withdrawParams,
|
|
18296
18297
|
chunk
|
|
18297
18298
|
);
|
|
18299
|
+
console.log("\u{1F680} ~ DLMM ~ chunkedWithdrawParams:", chunkedWithdrawParams);
|
|
18298
18300
|
if (chunkedDepositParams.length === 0 && chunkedWithdrawParams.length === 0)
|
|
18299
18301
|
continue;
|
|
18300
18302
|
const { slices, accounts: transferHookAccounts } = this.getPotentialToken2022IxDataAndAccounts(0 /* Liquidity */);
|
|
@@ -18518,15 +18520,12 @@ var DLMM = class {
|
|
|
18518
18520
|
);
|
|
18519
18521
|
const rebalancePositionInstruction = [
|
|
18520
18522
|
setCUIX,
|
|
18523
|
+
...initBinArrayInstructions,
|
|
18521
18524
|
...preInstructions,
|
|
18522
18525
|
instruction,
|
|
18523
18526
|
...postInstructions
|
|
18524
18527
|
];
|
|
18525
|
-
allInstructions.push(
|
|
18526
|
-
initBinArrayInstructions,
|
|
18527
|
-
rebalancePositionInstruction,
|
|
18528
|
-
chunk
|
|
18529
|
-
});
|
|
18528
|
+
allInstructions.push(rebalancePositionInstruction);
|
|
18530
18529
|
}
|
|
18531
18530
|
return allInstructions;
|
|
18532
18531
|
}
|