rubic-sdk 4.48.4 → 4.48.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.
@@ -186599,7 +186599,7 @@ class LifiCrossChainTrade extends evm_cross_chain_trade_1.EvmCrossChainTrade {
186599
186599
  };
186600
186600
  const swapResponse = await this.getResponseFromApiToTransactionRequest(step);
186601
186601
  if (!skipAmountChangeCheck) {
186602
- evm_cross_chain_trade_1.EvmCrossChainTrade.checkAmountChange(swapResponse.transactionRequest, swapResponse.estimate.toAmount, this.to.stringWeiAmount);
186602
+ evm_cross_chain_trade_1.EvmCrossChainTrade.checkAmountChange(swapResponse.transactionRequest, swapResponse.estimate.toAmountMin, web3_pure_1.Web3Pure.toWei(this.toTokenAmountMin, this.to.decimals));
186603
186603
  }
186604
186604
  return swapResponse.transactionRequest;
186605
186605
  }
@@ -217201,11 +217201,11 @@ class LifiTrade extends evm_on_chain_trade_1.EvmOnChainTrade {
217201
217201
  const gasLimit = transactionRequest.gasLimit && parseInt(transactionRequest.gasLimit, 16).toString();
217202
217202
  const gasPrice = transactionRequest.gasPrice && parseInt(transactionRequest.gasPrice, 16).toString();
217203
217203
  const value = transactionRequest.value && parseInt(transactionRequest.value, 16).toString();
217204
- await evm_on_chain_trade_1.EvmOnChainTrade.checkAmountChange({
217204
+ evm_on_chain_trade_1.EvmOnChainTrade.checkAmountChange({
217205
217205
  data: transactionRequest.data,
217206
217206
  value: value,
217207
217207
  to: transactionRequest.to
217208
- }, estimate.toAmount, this.to.stringWeiAmount);
217208
+ }, estimate.toAmountMin, this.toTokenAmountMin.stringWeiAmount);
217209
217209
  return {
217210
217210
  to: transactionRequest.to,
217211
217211
  data: transactionRequest.data,