@oydual31/more-vaults-sdk 0.1.2 → 0.1.4

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.
@@ -352,8 +352,9 @@ async function getVaultStatus(provider, vault) {
352
352
  const sharePrice = vaultIface.decodeFunctionResult("convertToAssets", b2[1].returnData)[0];
353
353
  const spokesDeployedBalance = totalAssets > hubLiquidBalance ? totalAssets - hubLiquidBalance : 0n;
354
354
  const MAX_UINT256 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
355
- const depositAccessRestricted = maxDepositRaw === null;
356
- const effectiveCapacity = depositAccessRestricted ? MAX_UINT256 : maxDepositRaw;
355
+ const isCrossChainAsync = isHub && !oraclesEnabled;
356
+ const depositAccessRestricted = maxDepositRaw === null && !isCrossChainAsync;
357
+ const effectiveCapacity = maxDepositRaw === null ? MAX_UINT256 : maxDepositRaw;
357
358
  let mode;
358
359
  if (isPaused) {
359
360
  mode = "paused";