@magmaprotocol/magma-clmm-sdk 0.5.21 → 0.5.23
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 +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7199,8 +7199,6 @@ var SwapModule = class {
|
|
|
7199
7199
|
const { global_config_id } = getPackagerConfigs(this.sdk.sdkOptions.magma_config);
|
|
7200
7200
|
const tx = new import_transactions8.Transaction();
|
|
7201
7201
|
const typeArguments = [params.coinTypeA, params.coinTypeB];
|
|
7202
|
-
console.log("############ integrate.published_at", integrate.published_at, ClmmFetcherModule);
|
|
7203
|
-
console.log("####### global_config_id", global_config_id);
|
|
7204
7202
|
const args = [
|
|
7205
7203
|
tx.object(global_config_id),
|
|
7206
7204
|
tx.object(params.pool.poolAddress),
|
|
@@ -9440,18 +9438,20 @@ var GaugeModule = class {
|
|
|
9440
9438
|
stakedPositionOfPool.forEach((value) => {
|
|
9441
9439
|
;
|
|
9442
9440
|
value.infos.forEach((info) => {
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9441
|
+
if (info.info) {
|
|
9442
|
+
res.push({
|
|
9443
|
+
coin_type_a: coins[0],
|
|
9444
|
+
coin_type_b: coins[1],
|
|
9445
|
+
liquidity: info.info.fields.liquidity,
|
|
9446
|
+
tick_lower_index: asIntN(BigInt(info.info.fields.tick_lower_index.fields.bits)),
|
|
9447
|
+
tick_upper_index: asIntN(BigInt(info.info.fields.tick_upper_index.fields.bits)),
|
|
9448
|
+
pos_object_id: info.info.fields.position_id,
|
|
9449
|
+
magma_distribution_staked: info.info.fields.magma_distribution_staked,
|
|
9450
|
+
pool: info.pool_id,
|
|
9451
|
+
earned: info.earned,
|
|
9452
|
+
name: info.name
|
|
9453
|
+
});
|
|
9454
|
+
}
|
|
9455
9455
|
});
|
|
9456
9456
|
});
|
|
9457
9457
|
}
|