@meteora-ag/cp-amm-sdk 1.1.5-rc.0 → 1.1.5-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.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.js
CHANGED
|
@@ -9114,8 +9114,8 @@ function calculateAtoBFromAmountIn(poolState, amountIn) {
|
|
|
9114
9114
|
throw new Error("Price range is violated");
|
|
9115
9115
|
}
|
|
9116
9116
|
const outputAmount = getAmountBFromLiquidityDelta(
|
|
9117
|
-
poolState.sqrtPrice,
|
|
9118
9117
|
nextSqrtPrice,
|
|
9118
|
+
poolState.sqrtPrice,
|
|
9119
9119
|
poolState.liquidity,
|
|
9120
9120
|
1 /* Down */
|
|
9121
9121
|
);
|
|
@@ -10675,7 +10675,7 @@ var CpAmm = class {
|
|
|
10675
10675
|
tokenBDecimal,
|
|
10676
10676
|
hasReferral
|
|
10677
10677
|
} = params;
|
|
10678
|
-
const {
|
|
10678
|
+
const { activationType } = poolState;
|
|
10679
10679
|
const aToB = poolState.tokenAMint.equals(inputTokenMint);
|
|
10680
10680
|
const currentPoint = activationType ? new (0, _bnjs2.default)(currentTime) : new (0, _bnjs2.default)(currentSlot);
|
|
10681
10681
|
const swapResult = swapQuoteExactInput(
|