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