bet-test-sdk 1.3.1 → 1.3.3
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/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/cjs/bet.js +1 -1
- package/dist/cjs/bet.js.map +1 -1
- package/dist/esm/bet.js +1 -1
- package/dist/esm/bet.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -18953,7 +18953,7 @@ class BetSDK {
|
|
18953
18953
|
if (!curveStateAccount) {
|
18954
18954
|
return 0n;
|
18955
18955
|
}
|
18956
|
-
let minTokenAmountIn = curveStateAccount.
|
18956
|
+
let minTokenAmountIn = curveStateAccount.getSellPriceBySol(solAmountOut, false);
|
18957
18957
|
if (slippageBasisPoints) {
|
18958
18958
|
minTokenAmountIn += (minTokenAmountIn * slippageBasisPoints) / DENOMINATOR;
|
18959
18959
|
}
|