@magmaprotocol/magma-clmm-sdk 0.5.96 → 0.5.97
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10646,7 +10646,6 @@ var DlmmModule = class {
|
|
|
10646
10646
|
return this._sdk;
|
|
10647
10647
|
}
|
|
10648
10648
|
async getPoolInfo(pools) {
|
|
10649
|
-
const objects = await this._sdk.fullClient.batchGetObjects(pools, { showContent: true });
|
|
10650
10649
|
const cachePoolList = [];
|
|
10651
10650
|
pools = pools.filter((poolID) => {
|
|
10652
10651
|
const cacheData = this.getCache(`${poolID}_getPoolObject`, false);
|
|
@@ -10656,6 +10655,7 @@ var DlmmModule = class {
|
|
|
10656
10655
|
}
|
|
10657
10656
|
return true;
|
|
10658
10657
|
});
|
|
10658
|
+
const objects = await this._sdk.fullClient.batchGetObjects(pools, { showContent: true });
|
|
10659
10659
|
const poolList = [];
|
|
10660
10660
|
objects.forEach((obj) => {
|
|
10661
10661
|
if (obj.error != null || obj.data?.content?.dataType !== "moveObject") {
|
|
@@ -10675,7 +10675,7 @@ var DlmmModule = class {
|
|
|
10675
10675
|
coinAmountB: fields.reserve_y
|
|
10676
10676
|
};
|
|
10677
10677
|
poolList.push(poolInfo);
|
|
10678
|
-
this.updateCache(`${fields.id.id}_getPoolObject`,
|
|
10678
|
+
this.updateCache(`${fields.id.id}_getPoolObject`, poolInfo, cacheTime24h);
|
|
10679
10679
|
});
|
|
10680
10680
|
return [...cachePoolList, ...poolList];
|
|
10681
10681
|
}
|