@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.
- package/dist/test/constants.d.ts +16 -4
- package/dist/v2-sdk.cjs.development.js +2 -2
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +2 -2
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/entities/pool.ts +4 -4
- package/src/test/arrakis.test.ts +2 -2
- package/src/test/constants.ts +21 -19
package/dist/v2-sdk.esm.js
CHANGED
|
@@ -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(
|
|
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(
|
|
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;
|