@hawksightco/hawk-sdk 1.3.171 → 1.3.172

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.
@@ -1012,9 +1012,9 @@ class Transactions {
1012
1012
  pdaTokenType: types_1.TokenType.ATA,
1013
1013
  }, hsToMeteora_1.meteoraToHawksightAutomationIxs);
1014
1014
  // Re-deposit fees (TODO: How to re-deposit reward tokens that is not X or Y token?)
1015
- // Get slippage amount that returns a 6 bin slippage (meteora defaults to 3 bins if not provided)
1015
+ // Get slippage amount that returns a 10 bin slippage (meteora defaults to 3 bins if not provided)
1016
1016
  const binStep = yield dlmmPool.dlmm.lbPair.binStep;
1017
- let slippageAmount = Math.round(6 * (binStep / 100) * 100) / 100; // 2 decimal places round
1017
+ let slippageAmount = Math.round(10 * (binStep / 100) * 100) / 100; // 2 decimal places round
1018
1018
  const addLiquidityBuilder = yield dlmmPool.addLiquidityByStrategy(connection, params.userWallet, addresses_1.HS_AUTHORITY, {
1019
1019
  positionPubKey: params.position,
1020
1020
  user: userPda,
@@ -1099,9 +1099,9 @@ class Transactions {
1099
1099
  removeLiquidityBuilder.replaceClaimRewardToSTA();
1100
1100
  }
1101
1101
  // Step 2: Add liquidity back to the SAME position with specified distribution
1102
- // Get slippage amount (6 bin slippage like compound)
1102
+ // Get slippage amount (10 bin slippage like compound)
1103
1103
  const binStep = dlmmPool.dlmm.lbPair.binStep;
1104
- let slippageAmount = Math.round(6 * (binStep / 100) * 100) / 100;
1104
+ let slippageAmount = Math.round(10 * (binStep / 100) * 100) / 100;
1105
1105
  const addLiquidityBuilder = yield dlmmPool.addLiquidityByStrategy(connection, params.userWallet, addresses_1.HS_AUTHORITY, {
1106
1106
  positionPubKey: params.position,
1107
1107
  user: userPda,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.3.171",
3
+ "version": "1.3.172",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",