@magmaprotocol/magma-clmm-sdk 0.5.80 → 0.5.81
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10456,7 +10456,7 @@ var DlmmModule = class {
|
|
|
10456
10456
|
let amount_min = 0;
|
|
10457
10457
|
let amount_max = 0;
|
|
10458
10458
|
if (params.fixCoinA && params.fixCoinB) {
|
|
10459
|
-
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(params.amountATotal), params.
|
|
10459
|
+
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(params.amountATotal), params.coinTypeA, false, true);
|
|
10460
10460
|
primaryCoinBInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(params.amountBTotal), params.coinTypeB, false, true);
|
|
10461
10461
|
} else if (params.fixCoinA) {
|
|
10462
10462
|
amount_min = new Decimal10(params.amountBTotal).mul(lower_slippage).toDecimalPlaces(0).toNumber();
|
|
@@ -10465,7 +10465,7 @@ var DlmmModule = class {
|
|
|
10465
10465
|
} else if (params.fixCoinB) {
|
|
10466
10466
|
amount_min = new Decimal10(params.amountATotal).mul(lower_slippage).toDecimalPlaces(0).toNumber();
|
|
10467
10467
|
amount_max = new Decimal10(params.amountATotal).mul(upper_slippage).toDecimalPlaces(0).toNumber();
|
|
10468
|
-
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(amount_max), params.
|
|
10468
|
+
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(amount_max), params.coinTypeA, false, true);
|
|
10469
10469
|
}
|
|
10470
10470
|
if (params.fixCoinA && params.fixCoinB) {
|
|
10471
10471
|
} else if (params.fixCoinA) {
|