@stableflow/bridges 3.0.1 → 3.0.2-rc-b5a115567a-20260601

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
@@ -5279,6 +5279,10 @@ var Usdt0OneClickService = class {
5279
5279
  if (!middleChainWallet) {
5280
5280
  throw new Error("evmWallet is required");
5281
5281
  }
5282
+ let middleChainRecipientAddress = evmAddress;
5283
+ if (!middleChainRecipientAddress) {
5284
+ throw new Error("evmAddress is required");
5285
+ }
5282
5286
  const usdt0Params = {
5283
5287
  ...params,
5284
5288
  toToken: MIDDLE_TOKEN_CHAIN,
@@ -5291,7 +5295,7 @@ var Usdt0OneClickService = class {
5291
5295
  originAsset: MIDDLE_TOKEN_CHAIN.assetId,
5292
5296
  swapType: "FLEX_INPUT",
5293
5297
  isProxy: false,
5294
- refundTo: MIDDLE_CHAIN_REFOUND_ADDRESS,
5298
+ refundTo: middleChainRecipientAddress,
5295
5299
  wallet: middleChainWallet
5296
5300
  };
5297
5301
  execTime.breakpoint();
@@ -5377,11 +5381,11 @@ var OneClickUsdt0Service = class {
5377
5381
  } = params;
5378
5382
  const execTime = new core.ExecTime({ type: "OneClickUsdt0", logStyle: "lime-500", isDebug: core.OpenAPI.DEBUG });
5379
5383
  let middleChainWallet = evmWallet;
5380
- let destinationRecipientAddress = evmAddress;
5384
+ let middleChainRecipientAddress = evmAddress;
5381
5385
  if (!middleChainWallet) {
5382
5386
  throw new Error("evmWallet is required");
5383
5387
  }
5384
- if (!destinationRecipientAddress) {
5388
+ if (!middleChainRecipientAddress) {
5385
5389
  throw new Error("evmAddress is required");
5386
5390
  }
5387
5391
  const usdt0Params = {
@@ -5389,7 +5393,7 @@ var OneClickUsdt0Service = class {
5389
5393
  amountWei: Big__default.default(params.amountWei || 0).div(10 ** fromToken.decimals).times(10 ** MIDDLE_TOKEN_CHAIN.decimals).toFixed(0),
5390
5394
  fromToken: MIDDLE_TOKEN_CHAIN,
5391
5395
  originChain: MIDDLE_TOKEN_CHAIN.chainName,
5392
- refundTo: MIDDLE_CHAIN_REFOUND_ADDRESS,
5396
+ refundTo: middleChainRecipientAddress,
5393
5397
  wallet: middleChainWallet
5394
5398
  };
5395
5399
  execTime.breakpoint();
@@ -5414,7 +5418,7 @@ var OneClickUsdt0Service = class {
5414
5418
  destinationAsset: MIDDLE_TOKEN_CHAIN.assetId,
5415
5419
  swapType: "EXACT_OUTPUT",
5416
5420
  isProxy: true,
5417
- recipient: destinationRecipientAddress,
5421
+ recipient: middleChainRecipientAddress,
5418
5422
  appFees: [
5419
5423
  {
5420
5424
  recipient: "reffer.near",