@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.mjs CHANGED
@@ -2677,7 +2677,7 @@ var _TransactionUtil = class {
2677
2677
  { amountSecond: BigInt(reverSlippageAmount(amount, slippage)), amountFirst: BigInt(amount) },
2678
2678
  coinType,
2679
2679
  buildVector
2680
- ) : _TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(amount), coinType, buildVector);
2680
+ ) : _TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(amount), coinType, false, true);
2681
2681
  }
2682
2682
  /**
2683
2683
  * fix add liquidity fix token for coin amount
@@ -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),