@meteora-ag/dlmm 1.3.4 → 1.3.5

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 CHANGED
@@ -12041,7 +12041,7 @@ var DLMM = class {
12041
12041
  const [lowerBinId2] = getBinArrayLowerUpperBinId(index);
12042
12042
  return bins.map((b, i) => [lowerBinId2.toNumber() + i, b]);
12043
12043
  }));
12044
- const version = binArrays.length !== 0 ? binArrays[0].version : 1;
12044
+ const version = _nullishCoalesce(_optionalChain([binArrays, 'access', _83 => _83.find, 'call', _84 => _84((binArray) => binArray != null), 'optionalAccess', _85 => _85.version]), () => ( 1));
12045
12045
  return Array.from(enumerateBins(
12046
12046
  binsById,
12047
12047
  lowerBinId,