@meteora-ag/cp-amm-sdk 1.2.5 → 1.2.6
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 +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11774,15 +11774,15 @@ var CpAmm = class {
|
|
|
11774
11774
|
}
|
|
11775
11775
|
let { poolState } = params;
|
|
11776
11776
|
poolState = poolState != null ? poolState : yield this.fetchPoolState(pool);
|
|
11777
|
-
const currentPoint = yield getCurrentPoint(
|
|
11778
|
-
this._program.provider.connection,
|
|
11779
|
-
poolState.activationType
|
|
11780
|
-
);
|
|
11781
11777
|
const { maxLimiterDuration, maxFeeBps } = parseRateLimiterSecondFactor(
|
|
11782
11778
|
poolState.poolFees.baseFee.secondFactor
|
|
11783
11779
|
);
|
|
11784
11780
|
let rateLimiterApplied = false;
|
|
11785
11781
|
if (poolState.poolFees.baseFee.baseFeeMode === 2 /* RateLimiter */) {
|
|
11782
|
+
const currentPoint = yield getCurrentPoint(
|
|
11783
|
+
this._program.provider.connection,
|
|
11784
|
+
poolState.activationType
|
|
11785
|
+
);
|
|
11786
11786
|
rateLimiterApplied = isRateLimiterApplied(
|
|
11787
11787
|
poolState.poolFees.baseFee.thirdFactor,
|
|
11788
11788
|
maxLimiterDuration,
|
|
@@ -11884,15 +11884,15 @@ var CpAmm = class {
|
|
|
11884
11884
|
}
|
|
11885
11885
|
let { poolState } = params;
|
|
11886
11886
|
poolState = poolState != null ? poolState : yield this.fetchPoolState(pool);
|
|
11887
|
-
const currentPoint = yield getCurrentPoint(
|
|
11888
|
-
this._program.provider.connection,
|
|
11889
|
-
poolState.activationType
|
|
11890
|
-
);
|
|
11891
11887
|
const { maxLimiterDuration, maxFeeBps } = parseRateLimiterSecondFactor(
|
|
11892
11888
|
poolState.poolFees.baseFee.secondFactor
|
|
11893
11889
|
);
|
|
11894
11890
|
let rateLimiterApplied = false;
|
|
11895
11891
|
if (poolState.poolFees.baseFee.baseFeeMode === 2 /* RateLimiter */) {
|
|
11892
|
+
const currentPoint = yield getCurrentPoint(
|
|
11893
|
+
this._program.provider.connection,
|
|
11894
|
+
poolState.activationType
|
|
11895
|
+
);
|
|
11896
11896
|
rateLimiterApplied = isRateLimiterApplied(
|
|
11897
11897
|
poolState.poolFees.baseFee.thirdFactor,
|
|
11898
11898
|
maxLimiterDuration,
|