@meteora-ag/dlmm 1.6.0-rc.7 → 1.6.0-rc.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/dist/index.d.ts +1 -2
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10302,8 +10302,7 @@ declare class DLMM {
|
|
|
10302
10302
|
quoteCreatePosition({ strategy }: TQuoteCreatePositionParams): Promise<{
|
|
10303
10303
|
binArraysCount: number;
|
|
10304
10304
|
binArrayCost: number;
|
|
10305
|
-
|
|
10306
|
-
positionCost: number;
|
|
10305
|
+
transactionCount: number;
|
|
10307
10306
|
}>;
|
|
10308
10307
|
/**
|
|
10309
10308
|
* Creates an empty position and initializes the corresponding bin arrays if needed.
|
package/dist/index.js
CHANGED
|
@@ -15107,16 +15107,14 @@ var DLMM = class {
|
|
|
15107
15107
|
lowerBinArrayIndex.add(new (0, _anchor.BN)(1))
|
|
15108
15108
|
);
|
|
15109
15109
|
const binArraysCount = (await this.binArraysToBeCreate(lowerBinArrayIndex, upperBinArrayIndex)).length;
|
|
15110
|
-
const
|
|
15111
|
-
(maxBinId - minBinId + 1) /
|
|
15110
|
+
const transactionCount = Math.ceil(
|
|
15111
|
+
(maxBinId - minBinId + 1) / DEFAULT_BIN_PER_POSITION.toNumber()
|
|
15112
15112
|
);
|
|
15113
15113
|
const binArrayCost = binArraysCount * BIN_ARRAY_FEE;
|
|
15114
|
-
const positionCost = positionCount * POSITION_FEE;
|
|
15115
15114
|
return {
|
|
15116
15115
|
binArraysCount,
|
|
15117
15116
|
binArrayCost,
|
|
15118
|
-
|
|
15119
|
-
positionCost
|
|
15117
|
+
transactionCount
|
|
15120
15118
|
};
|
|
15121
15119
|
}
|
|
15122
15120
|
/**
|