@meteora-ag/cp-amm-sdk 1.2.4 → 1.2.5
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 +24 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11781,15 +11781,18 @@ var CpAmm = class {
|
|
|
11781
11781
|
const { maxLimiterDuration, maxFeeBps } = parseRateLimiterSecondFactor(
|
|
11782
11782
|
poolState.poolFees.baseFee.secondFactor
|
|
11783
11783
|
);
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11784
|
+
let rateLimiterApplied = false;
|
|
11785
|
+
if (poolState.poolFees.baseFee.baseFeeMode === 2 /* RateLimiter */) {
|
|
11786
|
+
rateLimiterApplied = isRateLimiterApplied(
|
|
11787
|
+
poolState.poolFees.baseFee.thirdFactor,
|
|
11788
|
+
maxLimiterDuration,
|
|
11789
|
+
maxFeeBps,
|
|
11790
|
+
poolState.poolFees.baseFee.firstFactor,
|
|
11791
|
+
currentPoint,
|
|
11792
|
+
poolState.activationPoint,
|
|
11793
|
+
tradeDirection
|
|
11794
|
+
);
|
|
11795
|
+
}
|
|
11793
11796
|
const remainingAccounts = rateLimiterApplied ? [
|
|
11794
11797
|
{
|
|
11795
11798
|
isSigner: false,
|
|
@@ -11888,15 +11891,18 @@ var CpAmm = class {
|
|
|
11888
11891
|
const { maxLimiterDuration, maxFeeBps } = parseRateLimiterSecondFactor(
|
|
11889
11892
|
poolState.poolFees.baseFee.secondFactor
|
|
11890
11893
|
);
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11894
|
+
let rateLimiterApplied = false;
|
|
11895
|
+
if (poolState.poolFees.baseFee.baseFeeMode === 2 /* RateLimiter */) {
|
|
11896
|
+
rateLimiterApplied = isRateLimiterApplied(
|
|
11897
|
+
poolState.poolFees.baseFee.thirdFactor,
|
|
11898
|
+
maxLimiterDuration,
|
|
11899
|
+
maxFeeBps,
|
|
11900
|
+
poolState.poolFees.baseFee.firstFactor,
|
|
11901
|
+
currentPoint,
|
|
11902
|
+
poolState.activationPoint,
|
|
11903
|
+
tradeDirection
|
|
11904
|
+
);
|
|
11905
|
+
}
|
|
11900
11906
|
const remainingAccounts = rateLimiterApplied ? [
|
|
11901
11907
|
{
|
|
11902
11908
|
isSigner: false,
|