@magmaprotocol/magma-clmm-sdk 0.5.96 → 0.5.98
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- 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
|
}
|
|
@@ -11665,7 +11665,6 @@ var DlmmModule = class {
|
|
|
11665
11665
|
}
|
|
11666
11666
|
// return pool_id => reward_tokens
|
|
11667
11667
|
async getPairRewarders(params) {
|
|
11668
|
-
params = [params[0]];
|
|
11669
11668
|
let tx = new import_transactions12.Transaction();
|
|
11670
11669
|
for (const param of params) {
|
|
11671
11670
|
tx = await this._getPairRewarders(param, tx);
|