@magmaprotocol/magma-clmm-sdk 0.5.68 → 0.5.70

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
@@ -6667,6 +6667,7 @@ var RewarderModule = class {
6667
6667
  }
6668
6668
  const allCoinAsset = await this._sdk.getOwnerCoinAssets(this._sdk.senderAddress, null);
6669
6669
  tx = tx || new Transaction6();
6670
+ tx.setGasBudget(1e8);
6670
6671
  const coinIdMaps = {};
6671
6672
  params.forEach((item) => {
6672
6673
  const coinTypeA = normalizeCoinType(item.coinTypeA);
@@ -6675,7 +6676,7 @@ var RewarderModule = class {
6675
6676
  let coinAInput = coinIdMaps[coinTypeA];
6676
6677
  if (coinAInput == null) {
6677
6678
  if (inputCoinA == null) {
6678
- coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false);
6679
+ coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false, true);
6679
6680
  } else {
6680
6681
  coinAInput = {
6681
6682
  targetCoin: inputCoinA,
@@ -6689,7 +6690,7 @@ var RewarderModule = class {
6689
6690
  let coinBInput = coinIdMaps[coinTypeB];
6690
6691
  if (coinBInput == null) {
6691
6692
  if (inputCoinB == null) {
6692
- coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false);
6693
+ coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false, true);
6693
6694
  } else {
6694
6695
  coinBInput = {
6695
6696
  targetCoin: inputCoinB,
@@ -6717,7 +6718,7 @@ var RewarderModule = class {
6717
6718
  const coinType = normalizeCoinType(type);
6718
6719
  let coinInput = coinIdMaps[type];
6719
6720
  if (coinInput === void 0) {
6720
- coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false);
6721
+ coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false, true);
6721
6722
  coinIdMaps[coinType] = coinInput;
6722
6723
  }
6723
6724
  primaryCoinInputs.push(coinInput.targetCoin);
@@ -10353,9 +10354,7 @@ var DlmmModule = class {
10353
10354
  coin_b: fields.y.fields.name,
10354
10355
  base_factor: fields.params.fields.base_factor,
10355
10356
  base_fee: fields.params.fields.base_factor / 1e4 * (fields.bin_step / 1e4),
10356
- active_index: fields.params.fields.active_index,
10357
- coinAmountA: fields.reserve_x,
10358
- coinAmountB: fields.reserve_y
10357
+ active_index: fields.params.fields.active_index
10359
10358
  });
10360
10359
  });
10361
10360
  return poolList;