@across-protocol/sdk 4.3.50-alpha.0 → 4.3.50-alpha.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.
|
@@ -70,7 +70,7 @@ function _buildPoolRebalanceRoot(latestMainnetBlock, mainnetBundleEndBlock, bund
|
|
|
70
70
|
_a = _getMarginalRunningBalances(mainnetBundleEndBlock, bundleV3Deposits, bundleFillsV3, bundleSlowFillsV3, unexecutableSlowFills, expiredDepositsToRefundV3, clients), runningBalances = _a.runningBalances, realizedLpFees = _a.realizedLpFees, chainWithRefundsOnly = _a.chainWithRefundsOnly;
|
|
71
71
|
(0, PoolRebalanceUtils_1.addLastRunningBalance)(latestMainnetBlock, runningBalances, clients.hubPoolClient);
|
|
72
72
|
if (!(clients.hubPoolClient.hasPendingProposal() &&
|
|
73
|
-
clients.hubPoolClient.getPendingRootBundle().bundleEvaluationBlockNumbers[1]
|
|
73
|
+
clients.hubPoolClient.getPendingRootBundle().bundleEvaluationBlockNumbers[1] < mainnetBundleEndBlock)) return [3, 2];
|
|
74
74
|
mostRecentProposedRootBundle = clients.hubPoolClient.getLatestProposedRootBundle();
|
|
75
75
|
blockRangesForChains = (0, utils_1.getImpliedBundleBlockRanges)(clients.hubPoolClient, clients.configStoreClient, mostRecentProposedRootBundle);
|
|
76
76
|
return [4, clients.bundleDataClient.loadData(blockRangesForChains, clients.spokePoolClients, true)];
|
|
@@ -82,7 +82,7 @@ export function _buildPoolRebalanceRoot(latestMainnetBlock, mainnetBundleEndBloc
|
|
|
82
82
|
_a = _getMarginalRunningBalances(mainnetBundleEndBlock, bundleV3Deposits, bundleFillsV3, bundleSlowFillsV3, unexecutableSlowFills, expiredDepositsToRefundV3, clients), runningBalances = _a.runningBalances, realizedLpFees = _a.realizedLpFees, chainWithRefundsOnly = _a.chainWithRefundsOnly;
|
|
83
83
|
addLastRunningBalance(latestMainnetBlock, runningBalances, clients.hubPoolClient);
|
|
84
84
|
if (!(clients.hubPoolClient.hasPendingProposal() &&
|
|
85
|
-
clients.hubPoolClient.getPendingRootBundle().bundleEvaluationBlockNumbers[1]
|
|
85
|
+
clients.hubPoolClient.getPendingRootBundle().bundleEvaluationBlockNumbers[1] < mainnetBundleEndBlock)) return [3 /*break*/, 2];
|
|
86
86
|
mostRecentProposedRootBundle = clients.hubPoolClient.getLatestProposedRootBundle();
|
|
87
87
|
blockRangesForChains = getImpliedBundleBlockRanges(clients.hubPoolClient, clients.configStoreClient, mostRecentProposedRootBundle);
|
|
88
88
|
return [4 /*yield*/, clients.bundleDataClient.loadData(blockRangesForChains, clients.spokePoolClients, true)];
|
package/package.json
CHANGED
|
@@ -146,7 +146,7 @@ export async function _buildPoolRebalanceRoot(
|
|
|
146
146
|
addLastRunningBalance(latestMainnetBlock, runningBalances, clients.hubPoolClient);
|
|
147
147
|
if (
|
|
148
148
|
clients.hubPoolClient.hasPendingProposal() &&
|
|
149
|
-
clients.hubPoolClient.getPendingRootBundle()!.bundleEvaluationBlockNumbers[1]
|
|
149
|
+
clients.hubPoolClient.getPendingRootBundle()!.bundleEvaluationBlockNumbers[1] < mainnetBundleEndBlock
|
|
150
150
|
) {
|
|
151
151
|
// We need to get the pool rebalance root for the pending bundle.
|
|
152
152
|
// @dev It is safe to index the hub pool client's proposed root bundles here since there is guaranteed to be a pending proposal in this code block.
|