@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.js
CHANGED
|
@@ -11163,12 +11163,11 @@ var DlmmModule = class {
|
|
|
11163
11163
|
const out = [];
|
|
11164
11164
|
for (const item of allPosition) {
|
|
11165
11165
|
const pool = poolList.find((pool2) => pool2.pool_id === item.pool);
|
|
11166
|
-
const coins = pool_coins.get(item.pool) || ["", ""];
|
|
11167
11166
|
const positionLiquidity = await this.getPositionLiquidity({
|
|
11168
11167
|
pair: item.pool,
|
|
11169
11168
|
positionId: item.pos_object_id,
|
|
11170
|
-
coinTypeA:
|
|
11171
|
-
coinTypeB:
|
|
11169
|
+
coinTypeA: pool?.coin_a,
|
|
11170
|
+
coinTypeB: pool?.coin_b
|
|
11172
11171
|
});
|
|
11173
11172
|
const rewards_token = pool_reward_coins.get(item.pool) || [];
|
|
11174
11173
|
let positionRewards = { position_id: item.pos_object_id, reward: [], amount: [] };
|
|
@@ -11176,16 +11175,16 @@ var DlmmModule = class {
|
|
|
11176
11175
|
positionRewards = await this.getEarnedRewards({
|
|
11177
11176
|
pool_id: item.pool,
|
|
11178
11177
|
position_id: item.pos_object_id,
|
|
11179
|
-
coin_a:
|
|
11180
|
-
coin_b:
|
|
11178
|
+
coin_a: pool?.coin_a,
|
|
11179
|
+
coin_b: pool?.coin_b,
|
|
11181
11180
|
rewards_token: pool_reward_coins.get(item.pool) || []
|
|
11182
11181
|
});
|
|
11183
11182
|
}
|
|
11184
11183
|
const positionFees = await this.getEarnedFees({
|
|
11185
11184
|
pool_id: item.pool,
|
|
11186
11185
|
position_id: item.pos_object_id,
|
|
11187
|
-
coin_a:
|
|
11188
|
-
coin_b:
|
|
11186
|
+
coin_a: pool?.coin_a,
|
|
11187
|
+
coin_b: pool?.coin_b
|
|
11189
11188
|
});
|
|
11190
11189
|
out.push({
|
|
11191
11190
|
position: item,
|