@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.d.ts +0 -3
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6887,6 +6887,7 @@ var RewarderModule = class {
|
|
|
6887
6887
|
}
|
|
6888
6888
|
const allCoinAsset = await this._sdk.getOwnerCoinAssets(this._sdk.senderAddress, null);
|
|
6889
6889
|
tx = tx || new import_transactions6.Transaction();
|
|
6890
|
+
tx.setGasBudget(1e8);
|
|
6890
6891
|
const coinIdMaps = {};
|
|
6891
6892
|
params.forEach((item) => {
|
|
6892
6893
|
const coinTypeA = normalizeCoinType(item.coinTypeA);
|
|
@@ -6895,7 +6896,7 @@ var RewarderModule = class {
|
|
|
6895
6896
|
let coinAInput = coinIdMaps[coinTypeA];
|
|
6896
6897
|
if (coinAInput == null) {
|
|
6897
6898
|
if (inputCoinA == null) {
|
|
6898
|
-
coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false);
|
|
6899
|
+
coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false, true);
|
|
6899
6900
|
} else {
|
|
6900
6901
|
coinAInput = {
|
|
6901
6902
|
targetCoin: inputCoinA,
|
|
@@ -6909,7 +6910,7 @@ var RewarderModule = class {
|
|
|
6909
6910
|
let coinBInput = coinIdMaps[coinTypeB];
|
|
6910
6911
|
if (coinBInput == null) {
|
|
6911
6912
|
if (inputCoinB == null) {
|
|
6912
|
-
coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false);
|
|
6913
|
+
coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false, true);
|
|
6913
6914
|
} else {
|
|
6914
6915
|
coinBInput = {
|
|
6915
6916
|
targetCoin: inputCoinB,
|
|
@@ -6937,7 +6938,7 @@ var RewarderModule = class {
|
|
|
6937
6938
|
const coinType = normalizeCoinType(type);
|
|
6938
6939
|
let coinInput = coinIdMaps[type];
|
|
6939
6940
|
if (coinInput === void 0) {
|
|
6940
|
-
coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false);
|
|
6941
|
+
coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false, true);
|
|
6941
6942
|
coinIdMaps[coinType] = coinInput;
|
|
6942
6943
|
}
|
|
6943
6944
|
primaryCoinInputs.push(coinInput.targetCoin);
|
|
@@ -10566,9 +10567,7 @@ var DlmmModule = class {
|
|
|
10566
10567
|
coin_b: fields.y.fields.name,
|
|
10567
10568
|
base_factor: fields.params.fields.base_factor,
|
|
10568
10569
|
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
|
|
10570
|
+
active_index: fields.params.fields.active_index
|
|
10572
10571
|
});
|
|
10573
10572
|
});
|
|
10574
10573
|
return poolList;
|