@kodiak-finance/orderly-core 2.8.32-alpha.0 → 2.8.32-alpha.2

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.d.mts CHANGED
@@ -963,8 +963,6 @@ declare class Assets {
963
963
  token: string;
964
964
  amount: string | number;
965
965
  allowCrossChainWithdraw: boolean;
966
- /** destination EVM address (defaults to connected account) */
967
- receiver?: string;
968
966
  /** orderly withdraw decimals */
969
967
  decimals: number;
970
968
  }): Promise<any>;
package/dist/index.d.ts CHANGED
@@ -963,8 +963,6 @@ declare class Assets {
963
963
  token: string;
964
964
  amount: string | number;
965
965
  allowCrossChainWithdraw: boolean;
966
- /** destination EVM address (defaults to connected account) */
967
- receiver?: string;
968
966
  /** orderly withdraw decimals */
969
967
  decimals: number;
970
968
  }): Promise<any>;
package/dist/index.js CHANGED
@@ -5489,7 +5489,6 @@ var Assets = class {
5489
5489
  throw new Error("account address is required");
5490
5490
  }
5491
5491
  const { chainId, token, allowCrossChainWithdraw, decimals } = inputs;
5492
- const customReceiver = typeof inputs.receiver === "string" ? inputs.receiver.trim() : "";
5493
5492
  let { amount } = inputs;
5494
5493
  if (typeof amount === "number") {
5495
5494
  amount = amount.toString();
@@ -5501,7 +5500,7 @@ var Assets = class {
5501
5500
  const nonce = await this.getWithdrawalNonce();
5502
5501
  const timestamp = getTimestamp();
5503
5502
  const messageData = {
5504
- receiver: customReceiver || this.account.stateValue.address,
5503
+ receiver: this.account.stateValue.address,
5505
5504
  token,
5506
5505
  brokerId: this.configStore.get("brokerId"),
5507
5506
  amount: this.account.walletAdapter.parseUnits(amount, decimals),
@@ -5511,7 +5510,7 @@ var Assets = class {
5511
5510
  verifyContract: this.contractManger.getContractInfoByEnv().verifyContractAddress
5512
5511
  };
5513
5512
  const agwGobalAddress = this.account.getAdditionalInfo()?.AGWAddress ?? "";
5514
- if (!customReceiver && import_orderly_types3.ABSTRACT_CHAIN_ID_MAP.has(chainId) && agwGobalAddress) {
5513
+ if (import_orderly_types3.ABSTRACT_CHAIN_ID_MAP.has(chainId) && agwGobalAddress) {
5515
5514
  messageData.receiver = agwGobalAddress;
5516
5515
  }
5517
5516
  const { message, signatured, domain } = await this.account.walletAdapter.generateWithdrawMessage(messageData);