@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.js CHANGED
@@ -5625,7 +5625,8 @@ var Assets = class {
5625
5625
  tokenAmount: this.account.walletAdapter?.parseUnits(amount, decimals)
5626
5626
  };
5627
5627
  if (this.isSolana()) {
5628
- depositData["tokenAddress"] = tokenAddress;
5628
+ const isNativeSol = token === "SOL" || !tokenAddress || (0, import_types3.isNativeTokenChecker)(tokenAddress);
5629
+ depositData["tokenAddress"] = isNativeSol ? contractInfo.solanaUSDCAddress : tokenAddress;
5629
5630
  }
5630
5631
  const userAddress = this.account.stateValue.address;
5631
5632
  let contractMethod = "deposit";