@velora-dex/sdk 9.4.3-dev.1 → 9.5.1

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.
@@ -3627,7 +3627,7 @@ function _resolvePartnerFee() {
3627
3627
  case 0:
3628
3628
  // externally supplied partner fee data takes precedence
3629
3629
  partnerAddress = options.partnerAddress;
3630
- partnerFeeBps = (_options$partnerFeeBp = options.partnerFeeBps) != null ? _options$partnerFeeBp : options.deltaPrice.partnerFee ? options.deltaPrice.partnerFee * 100 : undefined;
3630
+ partnerFeeBps = (_options$partnerFeeBp = options.partnerFeeBps) != null ? _options$partnerFeeBp : options.deltaPrice.partnerFee !== undefined ? options.deltaPrice.partnerFee * 100 : undefined;
3631
3631
  partnerTakesSurplus = options.partnerTakesSurplus; // if fee given, takeSurplus is ignored
3632
3632
  feeOrTakeSurplusSupplied = partnerFeeBps !== undefined || partnerTakesSurplus !== undefined;
3633
3633
  if (!(partnerAddress === undefined || feeOrTakeSurplusSupplied)) {
@@ -5967,7 +5967,7 @@ var constructDeltaTokenModule = function constructDeltaTokenModule(options) {
5967
5967
  throw new Error("Delta is not available on chain " + options.chainId);
5968
5968
  case 7:
5969
5969
  orderWithSig = {
5970
- order: order,
5970
+ order: sanitizeDeltaOrderData(order),
5971
5971
  signature: signature,
5972
5972
  // bridgeOverride and cosignature are not used by the contract,
5973
5973
  // can always provide defaults
@@ -6138,7 +6138,7 @@ var constructDeltaTokenModule = function constructDeltaTokenModule(options) {
6138
6138
  address: ParaswapDelta,
6139
6139
  abi: DeltaTokenModuleAbi,
6140
6140
  contractMethod: 'cancelTWAPAndWithdraw',
6141
- args: [order],
6141
+ args: [sanitizeTWAPOrderData(order)],
6142
6142
  overrides: overrides
6143
6143
  });
6144
6144
  case 8:
@@ -6178,7 +6178,7 @@ var constructDeltaTokenModule = function constructDeltaTokenModule(options) {
6178
6178
  address: ParaswapDelta,
6179
6179
  abi: DeltaTokenModuleAbi,
6180
6180
  contractMethod: 'cancelTWAPBuyAndWithdraw',
6181
- args: [order],
6181
+ args: [sanitizeTWAPOrderData(order)],
6182
6182
  overrides: overrides
6183
6183
  });
6184
6184
  case 8: