@meteora-ag/dlmm 1.0.7-abc1234.1 → 1.0.7
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 +12 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5684,7 +5684,12 @@ var DLMM = class {
|
|
|
5684
5684
|
}
|
|
5685
5685
|
const reserveAccountsInfo = await chunkedGetMultipleAccountInfos(
|
|
5686
5686
|
program.provider.connection,
|
|
5687
|
-
[
|
|
5687
|
+
[
|
|
5688
|
+
lbPairAccInfo.reserveX,
|
|
5689
|
+
lbPairAccInfo.reserveY,
|
|
5690
|
+
lbPairAccInfo.tokenXMint,
|
|
5691
|
+
lbPairAccInfo.tokenYMint
|
|
5692
|
+
]
|
|
5688
5693
|
);
|
|
5689
5694
|
let binArrayBitmapExtension;
|
|
5690
5695
|
if (binArrayBitMapExtensionAccInfo) {
|
|
@@ -5695,10 +5700,12 @@ var DLMM = class {
|
|
|
5695
5700
|
}
|
|
5696
5701
|
const reserveXBalance = _spltoken.AccountLayout.decode(reserveAccountsInfo[0].data);
|
|
5697
5702
|
const reserveYBalance = _spltoken.AccountLayout.decode(reserveAccountsInfo[1].data);
|
|
5698
|
-
const
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5703
|
+
const tokenXDecimal = _spltoken.MintLayout.decode(
|
|
5704
|
+
reserveAccountsInfo[2].data
|
|
5705
|
+
).decimals;
|
|
5706
|
+
const tokenYDecimal = _spltoken.MintLayout.decode(
|
|
5707
|
+
reserveAccountsInfo[3].data
|
|
5708
|
+
).decimals;
|
|
5702
5709
|
const tokenX = {
|
|
5703
5710
|
publicKey: lbPairAccInfo.tokenXMint,
|
|
5704
5711
|
reserve: lbPairAccInfo.reserveX,
|