@magmaprotocol/magma-clmm-sdk 0.5.57 → 0.5.59
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 +6 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11161,17 +11161,13 @@ var DlmmModule = class {
|
|
|
11161
11161
|
this.updateCache(`${DlmmScript}_positionList_poolList`, poolList, cacheTime24h);
|
|
11162
11162
|
const pool_reward_coins = await this.getPairRewarders(_params);
|
|
11163
11163
|
const out = [];
|
|
11164
|
-
for (let index = 0; index < allPosition.length; index++) {
|
|
11165
|
-
const item = allPosition[index];
|
|
11166
|
-
}
|
|
11167
11164
|
for (const item of allPosition) {
|
|
11168
11165
|
const pool = poolList.find((pool2) => pool2.pool_id === item.pool);
|
|
11169
|
-
const coins = pool_coins.get(item.pool) || ["", ""];
|
|
11170
11166
|
const positionLiquidity = await this.getPositionLiquidity({
|
|
11171
11167
|
pair: item.pool,
|
|
11172
11168
|
positionId: item.pos_object_id,
|
|
11173
|
-
coinTypeA:
|
|
11174
|
-
coinTypeB:
|
|
11169
|
+
coinTypeA: pool?.coin_a,
|
|
11170
|
+
coinTypeB: pool?.coin_b
|
|
11175
11171
|
});
|
|
11176
11172
|
const rewards_token = pool_reward_coins.get(item.pool) || [];
|
|
11177
11173
|
let positionRewards = { position_id: item.pos_object_id, reward: [], amount: [] };
|
|
@@ -11179,16 +11175,16 @@ var DlmmModule = class {
|
|
|
11179
11175
|
positionRewards = await this.getEarnedRewards({
|
|
11180
11176
|
pool_id: item.pool,
|
|
11181
11177
|
position_id: item.pos_object_id,
|
|
11182
|
-
coin_a:
|
|
11183
|
-
coin_b:
|
|
11178
|
+
coin_a: pool?.coin_a,
|
|
11179
|
+
coin_b: pool?.coin_b,
|
|
11184
11180
|
rewards_token: pool_reward_coins.get(item.pool) || []
|
|
11185
11181
|
});
|
|
11186
11182
|
}
|
|
11187
11183
|
const positionFees = await this.getEarnedFees({
|
|
11188
11184
|
pool_id: item.pool,
|
|
11189
11185
|
position_id: item.pos_object_id,
|
|
11190
|
-
coin_a:
|
|
11191
|
-
coin_b:
|
|
11186
|
+
coin_a: pool?.coin_a,
|
|
11187
|
+
coin_b: pool?.coin_b
|
|
11192
11188
|
});
|
|
11193
11189
|
out.push({
|
|
11194
11190
|
position: item,
|