@chainflip/bitcoin 1.2.3 → 1.2.4

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/index.cjs CHANGED
@@ -274,10 +274,7 @@ var findVaultSwapData = async (url, txId) => {
274
274
  affiliateFees: data.affiliates,
275
275
  ccmDepositMetadata: null,
276
276
  maxBoostFee: data.boostFee,
277
- dcaParams: data.numberOfChunks > 0 && data.chunkInterval > 0 ? {
278
- chunkInterval: data.chunkInterval,
279
- numberOfChunks: data.numberOfChunks
280
- } : null,
277
+ dcaParams: data.numberOfChunks === 1 && data.chunkInterval === 2 ? null : { chunkInterval: data.chunkInterval, numberOfChunks: data.numberOfChunks },
281
278
  depositChainBlockHeight: block && block.height
282
279
  };
283
280
  };
package/dist/index.js CHANGED
@@ -247,10 +247,7 @@ var findVaultSwapData = async (url, txId) => {
247
247
  affiliateFees: data.affiliates,
248
248
  ccmDepositMetadata: null,
249
249
  maxBoostFee: data.boostFee,
250
- dcaParams: data.numberOfChunks > 0 && data.chunkInterval > 0 ? {
251
- chunkInterval: data.chunkInterval,
252
- numberOfChunks: data.numberOfChunks
253
- } : null,
250
+ dcaParams: data.numberOfChunks === 1 && data.chunkInterval === 2 ? null : { chunkInterval: data.chunkInterval, numberOfChunks: data.numberOfChunks },
254
251
  depositChainBlockHeight: block && block.height
255
252
  };
256
253
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/bitcoin",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/chainflip-io/chainflip-product-toolkit.git",
6
6
  "publishConfig": {