@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.mjs
CHANGED
|
@@ -10433,7 +10433,6 @@ var DlmmModule = class {
|
|
|
10433
10433
|
return this._sdk;
|
|
10434
10434
|
}
|
|
10435
10435
|
async getPoolInfo(pools) {
|
|
10436
|
-
const objects = await this._sdk.fullClient.batchGetObjects(pools, { showContent: true });
|
|
10437
10436
|
const cachePoolList = [];
|
|
10438
10437
|
pools = pools.filter((poolID) => {
|
|
10439
10438
|
const cacheData = this.getCache(`${poolID}_getPoolObject`, false);
|
|
@@ -10443,6 +10442,7 @@ var DlmmModule = class {
|
|
|
10443
10442
|
}
|
|
10444
10443
|
return true;
|
|
10445
10444
|
});
|
|
10445
|
+
const objects = await this._sdk.fullClient.batchGetObjects(pools, { showContent: true });
|
|
10446
10446
|
const poolList = [];
|
|
10447
10447
|
objects.forEach((obj) => {
|
|
10448
10448
|
if (obj.error != null || obj.data?.content?.dataType !== "moveObject") {
|
|
@@ -10462,7 +10462,7 @@ var DlmmModule = class {
|
|
|
10462
10462
|
coinAmountB: fields.reserve_y
|
|
10463
10463
|
};
|
|
10464
10464
|
poolList.push(poolInfo);
|
|
10465
|
-
this.updateCache(`${fields.id.id}_getPoolObject`,
|
|
10465
|
+
this.updateCache(`${fields.id.id}_getPoolObject`, poolInfo, cacheTime24h);
|
|
10466
10466
|
});
|
|
10467
10467
|
return [...cachePoolList, ...poolList];
|
|
10468
10468
|
}
|