@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/test/constants.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
export declare const USDC = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
|
|
2
|
+
export declare const WETH = "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619";
|
|
3
|
+
export declare const USDT = "0xc2132D05D31c914a87C6611C10748AEb04B58e8F";
|
|
4
|
+
export declare const DAI = "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063";
|
|
5
|
+
export declare const TUSD = "0x2e1ad108ff1d8c782fcbbb89aad783ac49586756";
|
|
6
|
+
export declare const WBTC = "0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6";
|
|
7
|
+
export declare const SUSHI = "0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a";
|
|
8
|
+
export declare const WMATIC = "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270";
|
|
9
|
+
export declare const BAL = "0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3";
|
|
10
|
+
export declare const AMUSDC = "0x1a13f4ca1d028320a707d99520abfefca3998b7f";
|
|
11
|
+
export declare const VDEBTWETH = "0xede17e9d79fc6f9ff9250d9eefbdb88cc18038b5";
|
|
12
|
+
export declare const ARRAKIS_USDC_WETH_GAUGE = "0x33d1ad9Cd88A509397CD924C2d7613C285602C20";
|
|
13
|
+
export declare const STMATIC = "0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4";
|
|
14
|
+
export declare const WMATIC_STMATIC_LP = "0xaF5E0B5425dE1F5a630A8cB5AA9D97B8141C908D";
|
|
15
|
+
export declare const AARAKIS_WNATIC_STMATIC_GAUGE = "0x9928340f9E1aaAd7dF1D95E27bd9A5c715202a56";
|
|
16
|
+
export declare const TEST_POOL = "TEST_POOL";
|
|
@@ -10745,7 +10745,7 @@ var Pool = /*#__PURE__*/function () {
|
|
|
10745
10745
|
return getUniswapV3Liquidity(tokenId, this);
|
|
10746
10746
|
|
|
10747
10747
|
case 7:
|
|
10748
|
-
liquidity = _context28.sent.mul(amount).div(
|
|
10748
|
+
liquidity = _context28.sent.mul(Math.round(amount * 1e4)).div(1e6);
|
|
10749
10749
|
decreaseLiquidityTxData = abi.encodeFunctionData(exports.Transaction.DECREASE_LIQUIDITY, [[tokenId, liquidity, 0, 0, deadline]]);
|
|
10750
10750
|
collectTxData = abi.encodeFunctionData(exports.Transaction.COLLECT, [[tokenId, this.address, MaxUint128, MaxUint128]]);
|
|
10751
10751
|
multicallParams = [decreaseLiquidityTxData, collectTxData];
|
|
@@ -10771,7 +10771,7 @@ var Pool = /*#__PURE__*/function () {
|
|
|
10771
10771
|
return this.utils.getBalance(tokenId, this.address);
|
|
10772
10772
|
|
|
10773
10773
|
case 20:
|
|
10774
|
-
_liquidity = _context28.sent.mul(amount).div(
|
|
10774
|
+
_liquidity = _context28.sent.mul(Math.round(amount * 1e4)).div(1e6);
|
|
10775
10775
|
txData = _abi.encodeFunctionData(exports.Transaction.REMOVE_LIQUIDITY_UNSTAKE, [tokenId, _liquidity, 0, 0, this.address]);
|
|
10776
10776
|
_context28.next = 25;
|
|
10777
10777
|
break;
|