@ferra-labs/damm 1.0.4 → 1.0.5

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 CHANGED
@@ -5748,8 +5748,8 @@ var _PositionModule = class _PositionModule {
5748
5748
  "InvalidSendAddress" /* InvalidSendAddress */
5749
5749
  );
5750
5750
  }
5751
- asUintN2(BigInt(params.tick_lower)).toString();
5752
- asUintN2(BigInt(params.tick_upper)).toString();
5751
+ const tick_lower = asUintN2(BigInt(params.tick_lower)).toString();
5752
+ const tick_upper = asUintN2(BigInt(params.tick_upper)).toString();
5753
5753
  const typeArguments = [params.coinTypeA, params.coinTypeB];
5754
5754
  tx = tx || new transactions.Transaction();
5755
5755
  const needOpenPosition = !utils.isValidSuiObjectId(params.pos_id);
@@ -5786,6 +5786,8 @@ var _PositionModule = class _PositionModule {
5786
5786
  primaryCoinBInputs.targetCoin,
5787
5787
  tx.pure.u64(params.max_amount_a),
5788
5788
  tx.pure.u64(params.max_amount_b),
5789
+ tx.pure.u32(Number(tick_lower)),
5790
+ tx.pure.u32(Number(tick_upper)),
5789
5791
  tx.pure.u128(params.delta_liquidity),
5790
5792
  tx.object(CLOCK_ADDRESS)
5791
5793
  ]