@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 +0 -2
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6675,7 +6675,7 @@ var RewarderModule = class {
|
|
|
6675
6675
|
let coinAInput = coinIdMaps[coinTypeA];
|
|
6676
6676
|
if (coinAInput == null) {
|
|
6677
6677
|
if (inputCoinA == null) {
|
|
6678
|
-
coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false);
|
|
6678
|
+
coinAInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeA, false, true);
|
|
6679
6679
|
} else {
|
|
6680
6680
|
coinAInput = {
|
|
6681
6681
|
targetCoin: inputCoinA,
|
|
@@ -6689,7 +6689,7 @@ var RewarderModule = class {
|
|
|
6689
6689
|
let coinBInput = coinIdMaps[coinTypeB];
|
|
6690
6690
|
if (coinBInput == null) {
|
|
6691
6691
|
if (inputCoinB == null) {
|
|
6692
|
-
coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false);
|
|
6692
|
+
coinBInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinTypeB, false, true);
|
|
6693
6693
|
} else {
|
|
6694
6694
|
coinBInput = {
|
|
6695
6695
|
targetCoin: inputCoinB,
|
|
@@ -6717,7 +6717,7 @@ var RewarderModule = class {
|
|
|
6717
6717
|
const coinType = normalizeCoinType(type);
|
|
6718
6718
|
let coinInput = coinIdMaps[type];
|
|
6719
6719
|
if (coinInput === void 0) {
|
|
6720
|
-
coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false);
|
|
6720
|
+
coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(0), coinType, false, true);
|
|
6721
6721
|
coinIdMaps[coinType] = coinInput;
|
|
6722
6722
|
}
|
|
6723
6723
|
primaryCoinInputs.push(coinInput.targetCoin);
|
|
@@ -10353,9 +10353,7 @@ var DlmmModule = class {
|
|
|
10353
10353
|
coin_b: fields.y.fields.name,
|
|
10354
10354
|
base_factor: fields.params.fields.base_factor,
|
|
10355
10355
|
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
|
|
10356
|
+
active_index: fields.params.fields.active_index
|
|
10359
10357
|
});
|
|
10360
10358
|
});
|
|
10361
10359
|
return poolList;
|