@magmaprotocol/magma-clmm-sdk 0.5.2 → 0.5.4
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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2772,6 +2772,11 @@ var _TransactionUtil = class {
|
|
|
2772
2772
|
max_amount_a = params.amount_a;
|
|
2773
2773
|
min_amount_a = new Decimal4(params.amount_a).div(new Decimal4(1).plus(new Decimal4(params.slippage))).mul(new Decimal4(1).minus(new Decimal4(params.slippage))).toDecimalPlaces(0).toNumber();
|
|
2774
2774
|
}
|
|
2775
|
+
console.log("min_amount_a", min_amount_a);
|
|
2776
|
+
console.log("max_amount_a", max_amount_a);
|
|
2777
|
+
console.log("min_amount_b", min_amount_b);
|
|
2778
|
+
console.log("max_amount_b", max_amount_b);
|
|
2779
|
+
console.log("params.fix_amount_a", params.fix_amount_a);
|
|
2775
2780
|
const args = params.is_open ? [
|
|
2776
2781
|
tx.object(clmmConfig.global_config_id),
|
|
2777
2782
|
tx.object(params.pool_id),
|
|
@@ -2796,7 +2801,6 @@ var _TransactionUtil = class {
|
|
|
2796
2801
|
tx.pure.u64(min_amount_a),
|
|
2797
2802
|
tx.pure.u64(min_amount_b),
|
|
2798
2803
|
tx.pure.bool(params.fix_amount_a),
|
|
2799
|
-
tx.object(CLOCK_ADDRESS),
|
|
2800
2804
|
tx.object(CLOCK_ADDRESS)
|
|
2801
2805
|
];
|
|
2802
2806
|
tx.moveCall({
|