@hawksightco/hawk-sdk 1.3.238 → 1.3.239
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.
|
@@ -6085,7 +6085,7 @@ class Transactions {
|
|
|
6085
6085
|
const newUpperBinId = activeId + params.relativeBinRange.upperRange;
|
|
6086
6086
|
const newWidth = newUpperBinId - newLowerBinId + 1;
|
|
6087
6087
|
const currentWidth = currentUpperBinId - currentLowerBinId + 1;
|
|
6088
|
-
const maxBinsPerDepositChunk = newWidth
|
|
6088
|
+
const maxBinsPerDepositChunk = newWidth <= 69 ? 69 : 45;
|
|
6089
6089
|
const useLayeredDepositsForSmallPosition = newWidth <= 69 && layers.length > 1;
|
|
6090
6090
|
// =========================================================================
|
|
6091
6091
|
// PHASE 1: TEARDOWN (withdraw from old position + close)
|
|
@@ -6380,7 +6380,7 @@ class Transactions {
|
|
|
6380
6380
|
skipClaim: true,
|
|
6381
6381
|
});
|
|
6382
6382
|
const positionWidth = upperBinId - lowerBinId + 1;
|
|
6383
|
-
const maxBinsPerDepositChunk = positionWidth
|
|
6383
|
+
const maxBinsPerDepositChunk = positionWidth <= 69 ? 69 : 45;
|
|
6384
6384
|
const useLayeredDepositsForSmallPosition = positionWidth <= 69 && layers.length > 1;
|
|
6385
6385
|
const effectiveAmountX = (_b = params.amountXOverride) !== null && _b !== void 0 ? _b : estimatedTotalX;
|
|
6386
6386
|
const effectiveAmountY = (_c = params.amountYOverride) !== null && _c !== void 0 ? _c : estimatedTotalY;
|