@magmaprotocol/magma-clmm-sdk 0.5.67 → 0.5.69

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.d.ts CHANGED
@@ -1752,8 +1752,6 @@ type DlmmPoolInfo = {
1752
1752
  base_factor: number;
1753
1753
  base_fee: number;
1754
1754
  active_index: number;
1755
- coinAmountA: string;
1756
- coinAmountB: string;
1757
1755
  };
1758
1756
  type DlmmAddLiquidityParams = {
1759
1757
  pool_id: string;
package/dist/index.js CHANGED
@@ -6895,7 +6895,7 @@ var RewarderModule = class {
6895
6895
  let coinAInput = coinIdMaps[coinTypeA];
6896
6896
  if (coinAInput == null) {
6897
6897
  if (inputCoinA == null) {
6898
- coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false);
6898
+ coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false, true);
6899
6899
  } else {
6900
6900
  coinAInput = {
6901
6901
  targetCoin: inputCoinA,
@@ -6909,7 +6909,7 @@ var RewarderModule = class {
6909
6909
  let coinBInput = coinIdMaps[coinTypeB];
6910
6910
  if (coinBInput == null) {
6911
6911
  if (inputCoinB == null) {
6912
- coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false);
6912
+ coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false, true);
6913
6913
  } else {
6914
6914
  coinBInput = {
6915
6915
  targetCoin: inputCoinB,
@@ -6937,7 +6937,7 @@ var RewarderModule = class {
6937
6937
  const coinType = normalizeCoinType(type);
6938
6938
  let coinInput = coinIdMaps[type];
6939
6939
  if (coinInput === void 0) {
6940
- coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false);
6940
+ coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false, true);
6941
6941
  coinIdMaps[coinType] = coinInput;
6942
6942
  }
6943
6943
  primaryCoinInputs.push(coinInput.targetCoin);
@@ -10566,9 +10566,7 @@ var DlmmModule = class {
10566
10566
  coin_b: fields.y.fields.name,
10567
10567
  base_factor: fields.params.fields.base_factor,
10568
10568
  base_fee: fields.params.fields.base_factor / 1e4 * (fields.bin_step / 1e4),
10569
- active_index: fields.params.fields.active_index,
10570
- coinAmountA: fields.reserve_x,
10571
- coinAmountB: fields.reserve_y
10569
+ active_index: fields.params.fields.active_index
10572
10570
  });
10573
10571
  });
10574
10572
  return poolList;