@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.js
CHANGED
|
@@ -5269,7 +5269,8 @@ var Usdt0OneClickService = class {
|
|
|
5269
5269
|
dry,
|
|
5270
5270
|
evmWallet,
|
|
5271
5271
|
evmAddress,
|
|
5272
|
-
fromToken
|
|
5272
|
+
fromToken,
|
|
5273
|
+
toToken
|
|
5273
5274
|
} = params;
|
|
5274
5275
|
const cs = new core.Csl(core.OpenAPI.DEBUG);
|
|
5275
5276
|
const csl = cs.log;
|
|
@@ -5293,31 +5294,24 @@ var Usdt0OneClickService = class {
|
|
|
5293
5294
|
refundTo: MIDDLE_CHAIN_REFOUND_ADDRESS,
|
|
5294
5295
|
wallet: middleChainWallet
|
|
5295
5296
|
};
|
|
5296
|
-
|
|
5297
|
-
let usdt0Result;
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
}
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
execTime.log("oneClickService.quote");
|
|
5312
|
-
if (oneClickResult.errMsg) {
|
|
5313
|
-
return oneClickResult;
|
|
5314
|
-
}
|
|
5315
|
-
if (!dry) {
|
|
5316
|
-
usdt0Params.recipient = oneClickResult.quote.depositAddress;
|
|
5317
|
-
}
|
|
5297
|
+
execTime.breakpoint();
|
|
5298
|
+
let usdt0Result = await usdt0_default.quote(usdt0Params);
|
|
5299
|
+
execTime.log("usdt0Service.quote: %o", usdt0Result);
|
|
5300
|
+
if (usdt0Result.errMsg) {
|
|
5301
|
+
return usdt0Result;
|
|
5302
|
+
}
|
|
5303
|
+
oneClickParams.amountWei = Big__default.default(usdt0Result.outputAmount || 0).times(10 ** MIDDLE_TOKEN_CHAIN.decimals).toFixed(0, 0);
|
|
5304
|
+
execTime.breakpoint();
|
|
5305
|
+
const oneClickResult = await oneclick_default.quote(oneClickParams);
|
|
5306
|
+
execTime.log("oneClickService.quote: %o", oneClickResult);
|
|
5307
|
+
if (oneClickResult.errMsg) {
|
|
5308
|
+
return oneClickResult;
|
|
5309
|
+
}
|
|
5310
|
+
if (!dry) {
|
|
5311
|
+
usdt0Params.recipient = oneClickResult.quote.depositAddress;
|
|
5318
5312
|
execTime.breakpoint();
|
|
5319
5313
|
usdt0Result = await usdt0_default.quote(usdt0Params);
|
|
5320
|
-
execTime.log("usdt0Service.quote");
|
|
5314
|
+
execTime.log("usdt0Service.quote again: %o", usdt0Result);
|
|
5321
5315
|
}
|
|
5322
5316
|
csl("Usdt0OneClickService quote", "rose-600", "oneClickResult: %o", oneClickResult);
|
|
5323
5317
|
csl("Usdt0OneClickService quote", "rose-600", "usdt0Result: %o", usdt0Result);
|