@orderly.network/core 2.11.0-alpha.0 → 2.11.1-alpha.0

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
@@ -5427,7 +5427,8 @@ import {
5427
5427
  ABSTRACT_CHAIN_ID_MAP as ABSTRACT_CHAIN_ID_MAP2,
5428
5428
  ApiError,
5429
5429
  ChainNamespace,
5430
- MaxUint256
5430
+ MaxUint256,
5431
+ isNativeTokenChecker
5431
5432
  } from "@orderly.network/types";
5432
5433
  var Assets = class {
5433
5434
  constructor(configStore, contractManger, account) {
@@ -5620,7 +5621,8 @@ var Assets = class {
5620
5621
  tokenAmount: this.account.walletAdapter?.parseUnits(amount, decimals)
5621
5622
  };
5622
5623
  if (this.isSolana()) {
5623
- depositData["tokenAddress"] = tokenAddress;
5624
+ const isNativeSol = token === "SOL" || !tokenAddress || isNativeTokenChecker(tokenAddress);
5625
+ depositData["tokenAddress"] = isNativeSol ? contractInfo.solanaUSDCAddress : tokenAddress;
5624
5626
  }
5625
5627
  const userAddress = this.account.stateValue.address;
5626
5628
  let contractMethod = "deposit";