@hawksightco/hawk-sdk 1.1.70 → 1.1.71

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.
@@ -124,7 +124,7 @@ class MeteoraDlmmIxGenerator {
124
124
  // it will handle overlapping tick arrays
125
125
  // if lower is 1 2 3 4 5 6 7 and upper is 3 4 5 6 7 8 9
126
126
  // we want to merge it to 1 2 3 4 5 6 7 8 9
127
- const tickArrays = [...lowerTickArrays, ...upperTickArrays].filter((value, index, self) => self.indexOf(value) === index);
127
+ const tickArrays = [...new Set([...lowerTickArrays, ...upperTickArrays])];
128
128
  // comment out for reference
129
129
  // const lowerBinArrayIndex = fn.binIdToBinArrayIndex(MAX_BIN_ARRAY_SIZE, new BN(activeBinId - relativeLowerBinId));
130
130
  // const binArrayLower = fn.deriveBinArray(lbPair, lowerBinArrayIndex);
@@ -165,7 +165,7 @@ class MeteoraDlmmIxGenerator {
165
165
  eventAuthority: METEORA_EVENT_AUTHORITY,
166
166
  meteoraDlmmProgram: METEORA_DLMM_PROGRAM,
167
167
  })
168
- .remainingAccounts(tickArrays.map(pubkey => {
168
+ .remainingAccounts(tickArrays.map((pubkey) => {
169
169
  return { pubkey, isSigner: false, isWritable: true };
170
170
  }))
171
171
  .instruction(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "1.1.70",
3
+ "version": "1.1.71",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",