@magmaprotocol/magma-clmm-sdk 0.5.58 → 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 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10945,12 +10945,11 @@ var DlmmModule = class {
|
|
|
10945
10945
|
const out = [];
|
|
10946
10946
|
for (const item of allPosition) {
|
|
10947
10947
|
const pool = poolList.find((pool2) => pool2.pool_id === item.pool);
|
|
10948
|
-
const coins = pool_coins.get(item.pool) || ["", ""];
|
|
10949
10948
|
const positionLiquidity = await this.getPositionLiquidity({
|
|
10950
10949
|
pair: item.pool,
|
|
10951
10950
|
positionId: item.pos_object_id,
|
|
10952
|
-
coinTypeA:
|
|
10953
|
-
coinTypeB:
|
|
10951
|
+
coinTypeA: pool?.coin_a,
|
|
10952
|
+
coinTypeB: pool?.coin_b
|
|
10954
10953
|
});
|
|
10955
10954
|
const rewards_token = pool_reward_coins.get(item.pool) || [];
|
|
10956
10955
|
let positionRewards = { position_id: item.pos_object_id, reward: [], amount: [] };
|
|
@@ -10958,16 +10957,16 @@ var DlmmModule = class {
|
|
|
10958
10957
|
positionRewards = await this.getEarnedRewards({
|
|
10959
10958
|
pool_id: item.pool,
|
|
10960
10959
|
position_id: item.pos_object_id,
|
|
10961
|
-
coin_a:
|
|
10962
|
-
coin_b:
|
|
10960
|
+
coin_a: pool?.coin_a,
|
|
10961
|
+
coin_b: pool?.coin_b,
|
|
10963
10962
|
rewards_token: pool_reward_coins.get(item.pool) || []
|
|
10964
10963
|
});
|
|
10965
10964
|
}
|
|
10966
10965
|
const positionFees = await this.getEarnedFees({
|
|
10967
10966
|
pool_id: item.pool,
|
|
10968
10967
|
position_id: item.pos_object_id,
|
|
10969
|
-
coin_a:
|
|
10970
|
-
coin_b:
|
|
10968
|
+
coin_a: pool?.coin_a,
|
|
10969
|
+
coin_b: pool?.coin_b
|
|
10971
10970
|
});
|
|
10972
10971
|
out.push({
|
|
10973
10972
|
position: item,
|