@magmaprotocol/magma-clmm-sdk 0.5.3 → 0.5.5
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 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2880,7 +2880,7 @@ var _TransactionUtil = class {
|
|
|
2880
2880
|
{ amountSecond: BigInt(reverSlippageAmount(amount, slippage)), amountFirst: BigInt(amount) },
|
|
2881
2881
|
coinType,
|
|
2882
2882
|
buildVector
|
|
2883
|
-
) : _TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(amount), coinType,
|
|
2883
|
+
) : _TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(amount), coinType, false, true);
|
|
2884
2884
|
}
|
|
2885
2885
|
/**
|
|
2886
2886
|
* fix add liquidity fix token for coin amount
|
|
@@ -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),
|