@dhedge/v2-sdk 1.4.2 → 1.4.3

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.
@@ -10746,7 +10746,7 @@ var Pool = /*#__PURE__*/function () {
10746
10746
  return getUniswapV3Liquidity(tokenId, this);
10747
10747
 
10748
10748
  case 7:
10749
- liquidity = _context28.sent.mul(amount).div(100);
10749
+ liquidity = _context28.sent.mul(Math.round(amount * 1e4)).div(1e6);
10750
10750
  decreaseLiquidityTxData = abi.encodeFunctionData(Transaction.DECREASE_LIQUIDITY, [[tokenId, liquidity, 0, 0, deadline]]);
10751
10751
  collectTxData = abi.encodeFunctionData(Transaction.COLLECT, [[tokenId, this.address, MaxUint128, MaxUint128]]);
10752
10752
  multicallParams = [decreaseLiquidityTxData, collectTxData];
@@ -10772,7 +10772,7 @@ var Pool = /*#__PURE__*/function () {
10772
10772
  return this.utils.getBalance(tokenId, this.address);
10773
10773
 
10774
10774
  case 20:
10775
- _liquidity = _context28.sent.mul(amount).div(100);
10775
+ _liquidity = _context28.sent.mul(Math.round(amount * 1e4)).div(1e6);
10776
10776
  txData = _abi.encodeFunctionData(Transaction.REMOVE_LIQUIDITY_UNSTAKE, [tokenId, _liquidity, 0, 0, this.address]);
10777
10777
  _context28.next = 25;
10778
10778
  break;