rubic-sdk 4.28.3-alpha-symb-base-proxy.0 → 4.28.4-alpha-linea-oo-proxy.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -224558,7 +224558,9 @@ class SymbiosisCrossChainProvider extends cross_chain_provider_1.CrossChainProvi
224558
224558
  async calculate(from, toToken, options) {
224559
224559
  const fromBlockchain = from.blockchain;
224560
224560
  const toBlockchain = toToken.blockchain;
224561
- const useProxy = options?.useProxy?.[this.type] ?? true;
224561
+ const useProxy = from.blockchain === blockchain_name_1.BLOCKCHAIN_NAME.BASE
224562
+ ? false
224563
+ : options?.useProxy?.[this.type] ?? true;
224562
224564
  const config = blockchains_info_1.BlockchainsInfo.isTestBlockchainName(fromBlockchain) ? 'testnet' : 'mainnet';
224563
224565
  const symbiosis = new symbiosis_js_sdk_1.Symbiosis(config, 'rubic');
224564
224566
  if (!this.areSupportedBlockchains(fromBlockchain, toBlockchain)) {
@@ -248383,7 +248385,7 @@ class OpenOceanProvider {
248383
248385
  slippageTolerance: options.slippageTolerance,
248384
248386
  path: [from, to],
248385
248387
  toTokenWeiAmountMin,
248386
- useProxy: blockchain === blockchain_name_1.BLOCKCHAIN_NAME.LINEA ? false : options.useProxy,
248388
+ useProxy: options.useProxy,
248387
248389
  proxyFeeInfo,
248388
248390
  fromWithoutFee,
248389
248391
  withDeflation: options.withDeflation
@@ -248406,7 +248408,7 @@ class OpenOceanProvider {
248406
248408
  async handleProxyContract(from, fullOptions) {
248407
248409
  let fromWithoutFee;
248408
248410
  let proxyFeeInfo;
248409
- if (fullOptions.useProxy && from.blockchain !== blockchain_name_1.BLOCKCHAIN_NAME.LINEA) {
248411
+ if (fullOptions.useProxy) {
248410
248412
  proxyFeeInfo = await this.onChainProxyService.getFeeInfo(from, fullOptions.providerAddress);
248411
248413
  fromWithoutFee = (0, get_from_without_fee_1.getFromWithoutFee)(from, proxyFeeInfo.platformFee.percent);
248412
248414
  }