@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.js
CHANGED
|
@@ -2975,6 +2975,11 @@ var _TransactionUtil = class {
|
|
|
2975
2975
|
max_amount_a = params.amount_a;
|
|
2976
2976
|
min_amount_a = new import_decimal7.default(params.amount_a).div(new import_decimal7.default(1).plus(new import_decimal7.default(params.slippage))).mul(new import_decimal7.default(1).minus(new import_decimal7.default(params.slippage))).toDecimalPlaces(0).toNumber();
|
|
2977
2977
|
}
|
|
2978
|
+
console.log("min_amount_a", min_amount_a);
|
|
2979
|
+
console.log("max_amount_a", max_amount_a);
|
|
2980
|
+
console.log("min_amount_b", min_amount_b);
|
|
2981
|
+
console.log("max_amount_b", max_amount_b);
|
|
2982
|
+
console.log("params.fix_amount_a", params.fix_amount_a);
|
|
2978
2983
|
const args = params.is_open ? [
|
|
2979
2984
|
tx.object(clmmConfig.global_config_id),
|
|
2980
2985
|
tx.object(params.pool_id),
|
|
@@ -2999,7 +3004,6 @@ var _TransactionUtil = class {
|
|
|
2999
3004
|
tx.pure.u64(min_amount_a),
|
|
3000
3005
|
tx.pure.u64(min_amount_b),
|
|
3001
3006
|
tx.pure.bool(params.fix_amount_a),
|
|
3002
|
-
tx.object(CLOCK_ADDRESS),
|
|
3003
3007
|
tx.object(CLOCK_ADDRESS)
|
|
3004
3008
|
];
|
|
3005
3009
|
tx.moveCall({
|