@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.js
CHANGED
|
@@ -10669,7 +10669,7 @@ var DlmmModule = class {
|
|
|
10669
10669
|
let amount_min = 0;
|
|
10670
10670
|
let amount_max = 0;
|
|
10671
10671
|
if (params.fixCoinA && params.fixCoinB) {
|
|
10672
|
-
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(params.amountATotal), params.
|
|
10672
|
+
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(params.amountATotal), params.coinTypeA, false, true);
|
|
10673
10673
|
primaryCoinBInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(params.amountBTotal), params.coinTypeB, false, true);
|
|
10674
10674
|
} else if (params.fixCoinA) {
|
|
10675
10675
|
amount_min = new import_decimal13.default(params.amountBTotal).mul(lower_slippage).toDecimalPlaces(0).toNumber();
|
|
@@ -10678,7 +10678,7 @@ var DlmmModule = class {
|
|
|
10678
10678
|
} else if (params.fixCoinB) {
|
|
10679
10679
|
amount_min = new import_decimal13.default(params.amountATotal).mul(lower_slippage).toDecimalPlaces(0).toNumber();
|
|
10680
10680
|
amount_max = new import_decimal13.default(params.amountATotal).mul(upper_slippage).toDecimalPlaces(0).toNumber();
|
|
10681
|
-
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(amount_max), params.
|
|
10681
|
+
primaryCoinAInputs = TransactionUtil.buildCoinForAmount(tx, allCoins, BigInt(amount_max), params.coinTypeA, false, true);
|
|
10682
10682
|
}
|
|
10683
10683
|
if (params.fixCoinA && params.fixCoinB) {
|
|
10684
10684
|
} else if (params.fixCoinA) {
|