@stableflow/bridges 3.0.0 → 3.0.1-rc-d44cd0c127-20260527
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 +18 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -5262,7 +5262,8 @@ var Usdt0OneClickService = class {
|
|
|
5262
5262
|
dry,
|
|
5263
5263
|
evmWallet,
|
|
5264
5264
|
evmAddress,
|
|
5265
|
-
fromToken
|
|
5265
|
+
fromToken,
|
|
5266
|
+
toToken
|
|
5266
5267
|
} = params;
|
|
5267
5268
|
const cs = new Csl(OpenAPI.DEBUG);
|
|
5268
5269
|
const csl = cs.log;
|
|
@@ -5286,31 +5287,24 @@ var Usdt0OneClickService = class {
|
|
|
5286
5287
|
refundTo: MIDDLE_CHAIN_REFOUND_ADDRESS,
|
|
5287
5288
|
wallet: middleChainWallet
|
|
5288
5289
|
};
|
|
5289
|
-
|
|
5290
|
-
let usdt0Result;
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
}
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
execTime.log("oneClickService.quote");
|
|
5305
|
-
if (oneClickResult.errMsg) {
|
|
5306
|
-
return oneClickResult;
|
|
5307
|
-
}
|
|
5308
|
-
if (!dry) {
|
|
5309
|
-
usdt0Params.recipient = oneClickResult.quote.depositAddress;
|
|
5310
|
-
}
|
|
5290
|
+
execTime.breakpoint();
|
|
5291
|
+
let usdt0Result = await usdt0_default.quote(usdt0Params);
|
|
5292
|
+
execTime.log("usdt0Service.quote: %o", usdt0Result);
|
|
5293
|
+
if (usdt0Result.errMsg) {
|
|
5294
|
+
return usdt0Result;
|
|
5295
|
+
}
|
|
5296
|
+
oneClickParams.amountWei = Big(usdt0Result.outputAmount || 0).times(10 ** MIDDLE_TOKEN_CHAIN.decimals).toFixed(0, 0);
|
|
5297
|
+
execTime.breakpoint();
|
|
5298
|
+
const oneClickResult = await oneclick_default.quote(oneClickParams);
|
|
5299
|
+
execTime.log("oneClickService.quote: %o", oneClickResult);
|
|
5300
|
+
if (oneClickResult.errMsg) {
|
|
5301
|
+
return oneClickResult;
|
|
5302
|
+
}
|
|
5303
|
+
if (!dry) {
|
|
5304
|
+
usdt0Params.recipient = oneClickResult.quote.depositAddress;
|
|
5311
5305
|
execTime.breakpoint();
|
|
5312
5306
|
usdt0Result = await usdt0_default.quote(usdt0Params);
|
|
5313
|
-
execTime.log("usdt0Service.quote");
|
|
5307
|
+
execTime.log("usdt0Service.quote again: %o", usdt0Result);
|
|
5314
5308
|
}
|
|
5315
5309
|
csl("Usdt0OneClickService quote", "rose-600", "oneClickResult: %o", oneClickResult);
|
|
5316
5310
|
csl("Usdt0OneClickService quote", "rose-600", "usdt0Result: %o", usdt0Result);
|