@sodax/sdk 1.4.5-beta → 1.5.0-beta

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
@@ -8714,7 +8714,7 @@ var universalRouterAbi = [
8714
8714
  ];
8715
8715
 
8716
8716
  // ../types/dist/constants/index.js
8717
- var CONFIG_VERSION = 34;
8717
+ var CONFIG_VERSION = 35;
8718
8718
  var AVALANCHE_MAINNET_CHAIN_ID = "0xa86a.avax";
8719
8719
  var ARBITRUM_MAINNET_CHAIN_ID = "0xa4b1.arbitrum";
8720
8720
  var BASE_MAINNET_CHAIN_ID = "0x2105.base";
@@ -11792,7 +11792,8 @@ var moneyMarketSupportedTokens = {
11792
11792
  spokeChainConfig[SONIC_MAINNET_CHAIN_ID].supportedTokens.USDC,
11793
11793
  spokeChainConfig[SONIC_MAINNET_CHAIN_ID].supportedTokens.USDT,
11794
11794
  spokeChainConfig[SONIC_MAINNET_CHAIN_ID].supportedTokens.wS,
11795
- spokeChainConfig[SONIC_MAINNET_CHAIN_ID].supportedTokens.SODA
11795
+ spokeChainConfig[SONIC_MAINNET_CHAIN_ID].supportedTokens.SODA,
11796
+ ...Object.values(SodaTokens)
11796
11797
  ],
11797
11798
  [NEAR_MAINNET_CHAIN_ID]: [
11798
11799
  spokeChainConfig[NEAR_MAINNET_CHAIN_ID].supportedTokens.NEAR,
@@ -27810,8 +27811,10 @@ var MoneyMarketService = class _MoneyMarketService {
27810
27811
  }
27811
27812
  calls.push(EvmVaultTokenService.encodeWithdraw(bnUSDVault, bnUSD, translatedAmountIn));
27812
27813
  } else {
27813
- calls.push(Erc20Service.encodeApprove(assetAddress, vaultAddress, amount));
27814
- calls.push(EvmVaultTokenService.encodeDeposit(vaultAddress, assetAddress, amount));
27814
+ if (!this.configService.isValidVault(fromHubAsset.asset)) {
27815
+ calls.push(Erc20Service.encodeApprove(assetAddress, vaultAddress, amount));
27816
+ calls.push(EvmVaultTokenService.encodeDeposit(vaultAddress, assetAddress, amount));
27817
+ }
27815
27818
  }
27816
27819
  calls.push(Erc20Service.encodeApprove(repayToken, this.config.lendingPool, translatedAmountIn));
27817
27820
  calls.push(