@stableflow/bridges 3.1.4 → 3.1.5

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.mjs CHANGED
@@ -222,7 +222,7 @@ var OneClickService = class {
222
222
  slippageTolerance: slippageTolerance * 100
223
223
  };
224
224
  for (const k in restParams) {
225
- if (["evmAddress", "evmWallet", "destinationChain", "originChain"].includes(k)) {
225
+ if (["evmAddress", "evmWallet", "destinationChain", "originChain", "evmGasFees"].includes(k)) {
226
226
  continue;
227
227
  }
228
228
  quoteParams[k] = restParams[k];
@@ -5080,7 +5080,7 @@ var OneClick2FraxZeroService = class extends FraxZeroService {
5080
5080
  price: getPrice(prices, FRAXZERO_MIDDLE_TOKEN_USDC.nativeToken.symbol),
5081
5081
  nativeToken: FRAXZERO_MIDDLE_TOKEN_USDC.nativeToken,
5082
5082
  provider,
5083
- gasPrice: dry ? evmGasFees[FRAXZERO_MIDDLE_TOKEN_USDC.chainId].gasPrice : void 0
5083
+ gasPrice: dry ? evmGasFees?.[FRAXZERO_MIDDLE_TOKEN_USDC.chainId]?.gasPrice : void 0
5084
5084
  });
5085
5085
  execTime.log("middleChainWallet.getEstimateGas");
5086
5086
  const secondStepGasToAmount = Big(usd || 0).div(getPrice(prices, fromToken.symbol) || 1).toFixed(fromToken.decimals);
@@ -6223,7 +6223,8 @@ var BridgeSFA = class _BridgeSFA {
6223
6223
  prices: params.prices,
6224
6224
  slippageTolerance: params.slippageTolerance,
6225
6225
  evmWallet: params.evmWallet,
6226
- evmAddress: params.evmAddress
6226
+ evmAddress: params.evmAddress,
6227
+ evmGasFees: params.evmGasFees
6227
6228
  };
6228
6229
  if ([
6229
6230
  Service.OneClick,