@xchainjs/xchain-aggregator 1.0.22 → 1.0.24

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/lib/index.esm.js CHANGED
@@ -45652,11 +45652,16 @@ class ChainflipProtocol {
45652
45652
  });
45653
45653
  toAddress = resp.depositAddress;
45654
45654
  }
45655
- else if (params.destinationAddress && (selectedQuote === null || selectedQuote === void 0 ? void 0 : selectedQuote.type) === 'REGULAR') {
45655
+ else if (params.destinationAddress && (selectedQuote === null || selectedQuote === void 0 ? void 0 : selectedQuote.type) === 'REGULAR' && params.fromAddress) {
45656
45656
  const resp = yield this.sdk.requestDepositAddressV2({
45657
45657
  quote: selectedQuote,
45658
45658
  destAddress: params.destinationAddress,
45659
45659
  srcAddress: params.fromAddress,
45660
+ fillOrKillParams: {
45661
+ slippageTolerancePercent: selectedQuote.recommendedSlippageTolerancePercent,
45662
+ refundAddress: params.fromAddress,
45663
+ retryDurationBlocks: 100,
45664
+ },
45660
45665
  });
45661
45666
  toAddress = resp.depositAddress;
45662
45667
  }