@meteora-ag/dlmm 1.0.47-rc.0 → 1.0.47-rc.1
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4739,7 +4739,7 @@ interface StrategyParameters {
|
|
|
4739
4739
|
maxBinId: number;
|
|
4740
4740
|
minBinId: number;
|
|
4741
4741
|
strategyType: StrategyType;
|
|
4742
|
-
|
|
4742
|
+
singleSidedX?: boolean;
|
|
4743
4743
|
}
|
|
4744
4744
|
interface TQuoteCreatePositionParams {
|
|
4745
4745
|
strategy: StrategyParameters;
|
|
@@ -5464,7 +5464,7 @@ declare function toAmountsBothSideByStrategy(activeId: number, binStep: number,
|
|
|
5464
5464
|
}[];
|
|
5465
5465
|
declare function autoFillYByStrategy(activeId: number, binStep: number, amountX: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, minBinId: number, maxBinId: number, strategyType: StrategyType): BN;
|
|
5466
5466
|
declare function autoFillXByStrategy(activeId: number, binStep: number, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, minBinId: number, maxBinId: number, strategyType: StrategyType): BN;
|
|
5467
|
-
declare function toStrategyParameters({ maxBinId, minBinId, strategyType,
|
|
5467
|
+
declare function toStrategyParameters({ maxBinId, minBinId, strategyType, singleSidedX, }: StrategyParameters): {
|
|
5468
5468
|
minBinId: number;
|
|
5469
5469
|
maxBinId: number;
|
|
5470
5470
|
strategyType: {
|
package/dist/index.js
CHANGED
|
@@ -6569,9 +6569,9 @@ function toStrategyParameters({
|
|
|
6569
6569
|
maxBinId,
|
|
6570
6570
|
minBinId,
|
|
6571
6571
|
strategyType,
|
|
6572
|
-
|
|
6572
|
+
singleSidedX
|
|
6573
6573
|
}) {
|
|
6574
|
-
const parameters = [
|
|
6574
|
+
const parameters = [singleSidedX ? 1 : 0, ...new Array(63).fill(0)];
|
|
6575
6575
|
switch (strategyType) {
|
|
6576
6576
|
case 0 /* SpotOneSide */: {
|
|
6577
6577
|
return {
|