@meteora-ag/dlmm 1.0.2 → 1.0.3

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
@@ -6141,15 +6141,17 @@ var DLMM = class {
6141
6141
  "lbPair",
6142
6142
  lbPairAccountInfo.data
6143
6143
  );
6144
- const binArrayBitmapExtensionState = this.program.coder.accounts.decode(
6145
- "binArrayBitmapExtension",
6146
- binArrayBitmapExtensionAccountInfo.data
6147
- );
6148
- if (binArrayBitmapExtensionState) {
6149
- this.binArrayBitmapExtension = {
6150
- account: binArrayBitmapExtensionState,
6151
- publicKey: binArrayBitmapExtensionPubkey
6152
- };
6144
+ if (binArrayBitmapExtensionAccountInfo) {
6145
+ const binArrayBitmapExtensionState = this.program.coder.accounts.decode(
6146
+ "binArrayBitmapExtension",
6147
+ binArrayBitmapExtensionAccountInfo.data
6148
+ );
6149
+ if (binArrayBitmapExtensionState) {
6150
+ this.binArrayBitmapExtension = {
6151
+ account: binArrayBitmapExtensionState,
6152
+ publicKey: binArrayBitmapExtensionPubkey
6153
+ };
6154
+ }
6153
6155
  }
6154
6156
  const reserveXBalance = _spltoken.AccountLayout.decode(reserveXAccountInfo.data);
6155
6157
  const reserveYBalance = _spltoken.AccountLayout.decode(reserveYAccountInfo.data);