@rhinestone/deposit-modal 0.0.0-dev-20260622151249 → 0.0.0-dev-20260623152729
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/{DepositModalReown-MCDIOJLT.cjs → DepositModalReown-FZLI5XUD.cjs} +6 -6
- package/dist/{DepositModalReown-ORSBSEMO.mjs → DepositModalReown-JGTQ5NCW.mjs} +3 -3
- package/dist/{WithdrawModalReown-KKGW62YO.cjs → WithdrawModalReown-INCGFPTH.cjs} +6 -6
- package/dist/{WithdrawModalReown-XPB53FKZ.mjs → WithdrawModalReown-TBCYVVQ2.mjs} +3 -3
- package/dist/{chunk-EDUWRMQI.cjs → chunk-ALDNHEMH.cjs} +43 -29
- package/dist/{chunk-PQDHZZ2B.cjs → chunk-FUXVTNUS.cjs} +2 -2
- package/dist/{chunk-7EQQD7B4.mjs → chunk-FXZDNC4X.mjs} +20 -6
- package/dist/{chunk-ANPDY6NJ.mjs → chunk-HEQLPY45.mjs} +40 -9
- package/dist/{chunk-36R7XKXP.cjs → chunk-IVVIMPH5.cjs} +346 -315
- package/dist/{chunk-V72YVCR6.mjs → chunk-JM7VOQKJ.mjs} +1 -1
- package/dist/{chunk-3NZUMDST.cjs → chunk-JZAKMS23.cjs} +54 -54
- package/dist/{chunk-IDJBMNV2.mjs → chunk-ZWVBVAU2.mjs} +2 -2
- package/dist/deposit.cjs +3 -3
- package/dist/deposit.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +3 -3
- package/dist/styles.css +59 -31
- package/dist/withdraw.cjs +3 -3
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIVVIMPH5cjs = require('./chunk-IVVIMPH5.cjs');
|
|
4
4
|
require('./chunk-NRNJAQUA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkFUXVTNUScjs = require('./chunk-FUXVTNUS.cjs');
|
|
9
|
+
require('./chunk-ALDNHEMH.cjs');
|
|
10
10
|
require('./chunk-UEKPBRBY.cjs');
|
|
11
11
|
require('./chunk-ABVRVW3P.cjs');
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ var _react3 = require('@reown/appkit/react');
|
|
|
16
16
|
var _react5 = require('@reown/appkit-adapter-solana/react');
|
|
17
17
|
var _jsxruntime = require('react/jsx-runtime');
|
|
18
18
|
function DepositModalWithReown(props) {
|
|
19
|
-
const reown =
|
|
19
|
+
const reown = _chunkFUXVTNUScjs.useReownWallet.call(void 0, );
|
|
20
20
|
const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
|
|
21
21
|
const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
|
|
22
22
|
enableSolana ? "solana" : "eip155"
|
|
@@ -37,7 +37,7 @@ function DepositModalWithReown(props) {
|
|
|
37
37
|
reown.disconnect();
|
|
38
38
|
}, [reown.disconnect]);
|
|
39
39
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunkIVVIMPH5cjs.DepositModalInner,
|
|
41
41
|
{
|
|
42
42
|
...props,
|
|
43
43
|
reownWallet: reownWithSolana,
|
|
@@ -48,7 +48,7 @@ function DepositModalWithReown(props) {
|
|
|
48
48
|
}
|
|
49
49
|
function DepositModalReown(props) {
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkFUXVTNUScjs.ReownWalletProvider,
|
|
52
52
|
{
|
|
53
53
|
projectId: props.reownAppId,
|
|
54
54
|
theme: props.theme,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HEQLPY45.mjs";
|
|
4
4
|
import "./chunk-FJWLC4AM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ReownWalletProvider,
|
|
7
7
|
useReownWallet
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-JM7VOQKJ.mjs";
|
|
9
|
+
import "./chunk-FXZDNC4X.mjs";
|
|
10
10
|
import "./chunk-F7P4MV72.mjs";
|
|
11
11
|
import "./chunk-WJX3TJFK.mjs";
|
|
12
12
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJZAKMS23cjs = require('./chunk-JZAKMS23.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkFUXVTNUScjs = require('./chunk-FUXVTNUS.cjs');
|
|
8
|
+
require('./chunk-ALDNHEMH.cjs');
|
|
9
9
|
require('./chunk-UEKPBRBY.cjs');
|
|
10
10
|
require('./chunk-ABVRVW3P.cjs');
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ require('./chunk-ABVRVW3P.cjs');
|
|
|
13
13
|
var _react = require('react');
|
|
14
14
|
var _jsxruntime = require('react/jsx-runtime');
|
|
15
15
|
function WithdrawModalWithReown(props) {
|
|
16
|
-
const reown =
|
|
16
|
+
const reown = _chunkFUXVTNUScjs.useReownWallet.call(void 0, );
|
|
17
17
|
const handleConnect = _react.useCallback.call(void 0, () => {
|
|
18
18
|
reown.openConnect();
|
|
19
19
|
}, [reown.openConnect]);
|
|
@@ -21,7 +21,7 @@ function WithdrawModalWithReown(props) {
|
|
|
21
21
|
reown.disconnect();
|
|
22
22
|
}, [reown.disconnect]);
|
|
23
23
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24
|
-
|
|
24
|
+
_chunkJZAKMS23cjs.WithdrawModalInner,
|
|
25
25
|
{
|
|
26
26
|
...props,
|
|
27
27
|
reownWallet: reown,
|
|
@@ -31,7 +31,7 @@ function WithdrawModalWithReown(props) {
|
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
function WithdrawModalReown(props) {
|
|
34
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFUXVTNUScjs.ReownWalletProvider, { projectId: props.reownAppId, theme: props.theme, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawModalWithReown, { ...props }) });
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZWVBVAU2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ReownWalletProvider,
|
|
6
6
|
useReownWallet
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JM7VOQKJ.mjs";
|
|
8
|
+
import "./chunk-FXZDNC4X.mjs";
|
|
9
9
|
import "./chunk-F7P4MV72.mjs";
|
|
10
10
|
import "./chunk-WJX3TJFK.mjs";
|
|
11
11
|
|
|
@@ -2789,6 +2789,7 @@ FeesAccordion.displayName = "FeesAccordion";
|
|
|
2789
2789
|
|
|
2790
2790
|
function SwappedReceipt({
|
|
2791
2791
|
onrampMethod,
|
|
2792
|
+
onrampMethodIcon,
|
|
2792
2793
|
amountPaid,
|
|
2793
2794
|
depositedAmount,
|
|
2794
2795
|
depositedIcon,
|
|
@@ -2804,14 +2805,17 @@ function SwappedReceipt({
|
|
|
2804
2805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
|
|
2805
2806
|
onrampMethod && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
2806
2807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Onramp method" }),
|
|
2807
|
-
/* @__PURE__ */ _jsxruntime.
|
|
2808
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
2809
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: onrampMethod }),
|
|
2810
|
+
onrampMethodIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon rs-review-detail-icon--square", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: onrampMethodIcon, alt: "" }) })
|
|
2811
|
+
] })
|
|
2808
2812
|
] }),
|
|
2809
2813
|
amountPaid && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
2810
2814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Amount paid" }),
|
|
2811
2815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: amountPaid })
|
|
2812
2816
|
] }),
|
|
2813
2817
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
2814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "
|
|
2818
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
|
|
2815
2819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
2816
2820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: depositedAmount }),
|
|
2817
2821
|
depositedIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: depositedIcon, alt: "" }) })
|
|
@@ -3327,6 +3331,7 @@ function ProcessingStep({
|
|
|
3327
3331
|
quotedFeeSymbol,
|
|
3328
3332
|
balanceAfterUsd,
|
|
3329
3333
|
isSwappedOrder,
|
|
3334
|
+
swappedContext,
|
|
3330
3335
|
onClose,
|
|
3331
3336
|
onNewDeposit,
|
|
3332
3337
|
onRetry,
|
|
@@ -3437,10 +3442,12 @@ function ProcessingStep({
|
|
|
3437
3442
|
if (cancelled || !res) return;
|
|
3438
3443
|
if (res.transactionId != null) {
|
|
3439
3444
|
if (res.transactionId.toLowerCase() !== txHash.toLowerCase()) return;
|
|
3440
|
-
} else if (!isSwappedOrder) {
|
|
3445
|
+
} else if (!isSwappedOrder || _optionalChain([swappedContext, 'optionalAccess', _133 => _133.variant]) === "connect") {
|
|
3441
3446
|
return;
|
|
3442
3447
|
}
|
|
3443
3448
|
setSwappedFiatContext({
|
|
3449
|
+
orderCrypto: res.orderCrypto,
|
|
3450
|
+
orderCryptoAmount: res.orderCryptoAmount,
|
|
3444
3451
|
paidAmountUsd: res.paidAmountUsd,
|
|
3445
3452
|
paidAmountEur: res.paidAmountEur,
|
|
3446
3453
|
onrampFeeUsd: res.onrampFeeUsd,
|
|
@@ -3451,7 +3458,7 @@ function ProcessingStep({
|
|
|
3451
3458
|
return () => {
|
|
3452
3459
|
cancelled = true;
|
|
3453
3460
|
};
|
|
3454
|
-
}, [service, smartAccount, txHash, isSwappedOrder]);
|
|
3461
|
+
}, [service, smartAccount, txHash, isSwappedOrder, _optionalChain([swappedContext, 'optionalAccess', _134 => _134.variant])]);
|
|
3455
3462
|
_react.useEffect.call(void 0, () => {
|
|
3456
3463
|
if (directTransfer) return;
|
|
3457
3464
|
if (state.type !== "processing") {
|
|
@@ -3476,21 +3483,21 @@ function ProcessingStep({
|
|
|
3476
3483
|
debugLog(debug, "processing", "poll:event", {
|
|
3477
3484
|
type: lastEvent2.type,
|
|
3478
3485
|
matchesTx: eventMatchesTx,
|
|
3479
|
-
intentId: _optionalChain([eventData, 'optionalAccess',
|
|
3486
|
+
intentId: _optionalChain([eventData, 'optionalAccess', _135 => _135.intentId])
|
|
3480
3487
|
});
|
|
3481
3488
|
}
|
|
3482
3489
|
if (!isMounted) return;
|
|
3483
3490
|
const awaitingPostBridgeSwap = processingContextRef.current.hasPostBridgeActions;
|
|
3484
|
-
if (_optionalChain([eventForCurrentTx, 'optionalAccess',
|
|
3491
|
+
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _136 => _136.type]) === "post-bridge-swap-complete") {
|
|
3485
3492
|
setState({ type: "complete", lastEvent: eventForCurrentTx });
|
|
3486
|
-
const swapTxHash = _optionalChain([eventForCurrentTx, 'access',
|
|
3493
|
+
const swapTxHash = _optionalChain([eventForCurrentTx, 'access', _137 => _137.data, 'optionalAccess', _138 => _138.swap, 'optionalAccess', _139 => _139.transactionHash]);
|
|
3487
3494
|
debugLog(debug, "processing", "state:complete", {
|
|
3488
3495
|
txHash,
|
|
3489
3496
|
destinationTxHash: swapTxHash,
|
|
3490
3497
|
event: eventForCurrentTx.type
|
|
3491
3498
|
});
|
|
3492
3499
|
const context = processingContextRef.current;
|
|
3493
|
-
_optionalChain([onDepositCompleteRef, 'access',
|
|
3500
|
+
_optionalChain([onDepositCompleteRef, 'access', _140 => _140.current, 'optionalCall', _141 => _141(txHash, swapTxHash, {
|
|
3494
3501
|
amount: context.amount,
|
|
3495
3502
|
sourceChain: context.sourceChain,
|
|
3496
3503
|
sourceToken: context.sourceToken,
|
|
@@ -3501,7 +3508,7 @@ function ProcessingStep({
|
|
|
3501
3508
|
})]);
|
|
3502
3509
|
return;
|
|
3503
3510
|
}
|
|
3504
|
-
if (_optionalChain([eventForCurrentTx, 'optionalAccess',
|
|
3511
|
+
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _142 => _142.type]) === "post-bridge-swap-failed") {
|
|
3505
3512
|
const formatted = formatBridgeFailedMessage(eventForCurrentTx);
|
|
3506
3513
|
setState({
|
|
3507
3514
|
type: "failed",
|
|
@@ -3513,19 +3520,19 @@ function ProcessingStep({
|
|
|
3513
3520
|
message: formatted.message,
|
|
3514
3521
|
code: formatted.code
|
|
3515
3522
|
});
|
|
3516
|
-
_optionalChain([onDepositFailedRef, 'access',
|
|
3523
|
+
_optionalChain([onDepositFailedRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144(txHash, formatted.message)]);
|
|
3517
3524
|
return;
|
|
3518
3525
|
}
|
|
3519
|
-
if (_optionalChain([eventForCurrentTx, 'optionalAccess',
|
|
3526
|
+
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _145 => _145.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
|
|
3520
3527
|
setState({ type: "complete", lastEvent: eventForCurrentTx });
|
|
3521
|
-
const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access',
|
|
3528
|
+
const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _146 => _146.data, 'optionalAccess', _147 => _147.destination, 'optionalAccess', _148 => _148.transactionHash]);
|
|
3522
3529
|
debugLog(debug, "processing", "state:complete", {
|
|
3523
3530
|
txHash,
|
|
3524
3531
|
destinationTxHash: destinationTxHash2,
|
|
3525
3532
|
event: eventForCurrentTx.type
|
|
3526
3533
|
});
|
|
3527
3534
|
const context = processingContextRef.current;
|
|
3528
|
-
_optionalChain([onDepositCompleteRef, 'access',
|
|
3535
|
+
_optionalChain([onDepositCompleteRef, 'access', _149 => _149.current, 'optionalCall', _150 => _150(txHash, destinationTxHash2, {
|
|
3529
3536
|
amount: context.amount,
|
|
3530
3537
|
sourceChain: context.sourceChain,
|
|
3531
3538
|
sourceToken: context.sourceToken,
|
|
@@ -3536,7 +3543,7 @@ function ProcessingStep({
|
|
|
3536
3543
|
})]);
|
|
3537
3544
|
return;
|
|
3538
3545
|
}
|
|
3539
|
-
if (_optionalChain([eventForCurrentTx, 'optionalAccess',
|
|
3546
|
+
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _151 => _151.type]) === "bridge-failed") {
|
|
3540
3547
|
const formatted = formatBridgeFailedMessage(eventForCurrentTx);
|
|
3541
3548
|
setState({
|
|
3542
3549
|
type: "failed",
|
|
@@ -3548,11 +3555,11 @@ function ProcessingStep({
|
|
|
3548
3555
|
message: formatted.message,
|
|
3549
3556
|
code: formatted.code
|
|
3550
3557
|
});
|
|
3551
|
-
_optionalChain([onDepositFailedRef, 'access',
|
|
3558
|
+
_optionalChain([onDepositFailedRef, 'access', _152 => _152.current, 'optionalCall', _153 => _153(txHash, formatted.message)]);
|
|
3552
3559
|
return;
|
|
3553
3560
|
}
|
|
3554
|
-
if (_optionalChain([eventForCurrentTx, 'optionalAccess',
|
|
3555
|
-
const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access',
|
|
3561
|
+
if (_optionalChain([eventForCurrentTx, 'optionalAccess', _154 => _154.type]) === "error") {
|
|
3562
|
+
const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _155 => _155.data, 'optionalAccess', _156 => _156.message]), () => ( "Unknown error"));
|
|
3556
3563
|
setState({
|
|
3557
3564
|
type: "failed",
|
|
3558
3565
|
message: errorMessage,
|
|
@@ -3562,7 +3569,7 @@ function ProcessingStep({
|
|
|
3562
3569
|
txHash,
|
|
3563
3570
|
message: errorMessage
|
|
3564
3571
|
});
|
|
3565
|
-
_optionalChain([onDepositFailedRef, 'access',
|
|
3572
|
+
_optionalChain([onDepositFailedRef, 'access', _157 => _157.current, 'optionalCall', _158 => _158(txHash, errorMessage)]);
|
|
3566
3573
|
return;
|
|
3567
3574
|
}
|
|
3568
3575
|
setState((previous) => ({
|
|
@@ -3623,7 +3630,7 @@ function ProcessingStep({
|
|
|
3623
3630
|
txHash,
|
|
3624
3631
|
timeoutMs: ESCALATED_DELAY_MS
|
|
3625
3632
|
});
|
|
3626
|
-
_optionalChain([onErrorRef, 'access',
|
|
3633
|
+
_optionalChain([onErrorRef, 'access', _159 => _159.current, 'optionalCall', _160 => _160(message, "PROCESS_TIMEOUT")]);
|
|
3627
3634
|
}, ESCALATED_DELAY_MS);
|
|
3628
3635
|
return () => clearTimeout(timeoutId);
|
|
3629
3636
|
}, [debug, directTransfer, onErrorRef, state.type, txHash]);
|
|
@@ -3635,8 +3642,8 @@ function ProcessingStep({
|
|
|
3635
3642
|
const timelineNowMs = _nullishCoalesce(phaseTimings.endedAt, () => ( Date.now()));
|
|
3636
3643
|
const flowNoun = flowLabel === "withdraw" ? "withdrawal" : "deposit";
|
|
3637
3644
|
const flowCapitalized = flowLabel === "withdraw" ? "Withdrawal" : "Deposit";
|
|
3638
|
-
const isPostBridgeSwapEvent = _optionalChain([lastEvent, 'optionalAccess',
|
|
3639
|
-
const destinationTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess',
|
|
3645
|
+
const isPostBridgeSwapEvent = _optionalChain([lastEvent, 'optionalAccess', _161 => _161.type]) === "post-bridge-swap-complete" || _optionalChain([lastEvent, 'optionalAccess', _162 => _162.type]) === "post-bridge-swap-failed";
|
|
3646
|
+
const destinationTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _163 => _163.data, 'optionalAccess', _164 => _164.swap, 'optionalAccess', _165 => _165.transactionHash]) || null : _optionalChain([lastEvent, 'optionalAccess', _166 => _166.data, 'optionalAccess', _167 => _167.destination, 'optionalAccess', _168 => _168.transactionHash]) || null;
|
|
3640
3647
|
const sourceDetails = getEventSourceDetails(lastEvent);
|
|
3641
3648
|
const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
|
|
3642
3649
|
const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
|
|
@@ -3656,7 +3663,7 @@ function ProcessingStep({
|
|
|
3656
3663
|
const sourceSymbol = sourceDisplay.symbol;
|
|
3657
3664
|
const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(formatRawTokenAmount(displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
|
|
3658
3665
|
formatTokenAmount(Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
|
|
3659
|
-
const isBridgeHopDestination = hasPostBridgeActions && (_optionalChain([lastEvent, 'optionalAccess',
|
|
3666
|
+
const isBridgeHopDestination = hasPostBridgeActions && (_optionalChain([lastEvent, 'optionalAccess', _169 => _169.type]) === "bridge-started" || _optionalChain([lastEvent, 'optionalAccess', _170 => _170.type]) === "bridge-complete");
|
|
3660
3667
|
const eventDestination = isBridgeHopDestination ? {} : getEventDestinationDetails(lastEvent);
|
|
3661
3668
|
const targetDisplay = resolveTokenDisplay(
|
|
3662
3669
|
_nullishCoalesce(eventDestination.token, () => ( targetToken)),
|
|
@@ -3715,8 +3722,8 @@ function ProcessingStep({
|
|
|
3715
3722
|
const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, displaySourceChain);
|
|
3716
3723
|
const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
|
|
3717
3724
|
const timerText = formatTimer(elapsedSeconds);
|
|
3718
|
-
const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
3719
|
-
const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess',
|
|
3725
|
+
const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _171 => _171.feeSponsored]), () => ( false));
|
|
3726
|
+
const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _172 => _172.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
|
|
3720
3727
|
const stateTitle = isComplete ? `${flowCapitalized} successful` : isFailed ? `${flowCapitalized} failed` : "Processing...";
|
|
3721
3728
|
const handleRetry = _nullishCoalesce(onRetry, () => ( onNewDeposit));
|
|
3722
3729
|
const headerContent = isComplete ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-body-header", children: [
|
|
@@ -3727,10 +3734,16 @@ function ProcessingStep({
|
|
|
3727
3734
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-body-header-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-body-header-title", children: stateTitle }) })
|
|
3728
3735
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletIcon, {}), title: stateTitle });
|
|
3729
3736
|
if (isComplete && isSwappedOrder) {
|
|
3730
|
-
const
|
|
3731
|
-
const
|
|
3737
|
+
const effectivePaymentMethod = _nullishCoalesce(_nullishCoalesce(_optionalChain([swappedContext, 'optionalAccess', _173 => _173.method]), () => ( _optionalChain([swappedFiatContext, 'optionalAccess', _174 => _174.paymentMethod]))), () => ( null));
|
|
3738
|
+
const onrampMethod = effectivePaymentMethod ? formatPaymentMethod(effectivePaymentMethod) : null;
|
|
3739
|
+
const onrampMethodIcon = _optionalChain([swappedContext, 'optionalAccess', _175 => _175.variant]) === "connect" && effectivePaymentMethod ? getExchangeLogoSrc(
|
|
3740
|
+
_nullishCoalesce(onrampMethod, () => ( effectivePaymentMethod)),
|
|
3741
|
+
effectivePaymentMethod
|
|
3742
|
+
) : null;
|
|
3743
|
+
const connectPaidAmount = _optionalChain([swappedContext, 'optionalAccess', _176 => _176.variant]) === "connect" ? `${formattedSentAmount} ${sourceSymbol}` : null;
|
|
3744
|
+
const amountPaid = _nullishCoalesce(connectPaidAmount, () => ( (_optionalChain([swappedFiatContext, 'optionalAccess', _177 => _177.paidAmountUsd]) != null ? `$${swappedFiatContext.paidAmountUsd.toFixed(2)}` : null)));
|
|
3732
3745
|
const depositedAmount = receiveDisplay;
|
|
3733
|
-
const onrampFeeUsd = _nullishCoalesce(_optionalChain([swappedFiatContext, 'optionalAccess',
|
|
3746
|
+
const onrampFeeUsd = _nullishCoalesce(_optionalChain([swappedFiatContext, 'optionalAccess', _178 => _178.onrampFeeUsd]), () => ( null));
|
|
3734
3747
|
const networkFeeUsd = quotedFeeAmount !== void 0 && Number.isFinite(Number(quotedFeeAmount)) ? Number(quotedFeeAmount) : null;
|
|
3735
3748
|
const feeRows = [];
|
|
3736
3749
|
if (onrampFeeUsd != null) {
|
|
@@ -3750,6 +3763,7 @@ function ProcessingStep({
|
|
|
3750
3763
|
SwappedReceipt,
|
|
3751
3764
|
{
|
|
3752
3765
|
onrampMethod,
|
|
3766
|
+
onrampMethodIcon,
|
|
3753
3767
|
amountPaid,
|
|
3754
3768
|
depositedAmount,
|
|
3755
3769
|
depositedIcon: targetTokenIcon,
|
|
@@ -3806,7 +3820,7 @@ function ProcessingStep({
|
|
|
3806
3820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Ticker, { value: timerText }) })
|
|
3807
3821
|
] }),
|
|
3808
3822
|
isSwappedOrder ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3809
|
-
_optionalChain([swappedFiatContext, 'optionalAccess',
|
|
3823
|
+
_optionalChain([swappedFiatContext, 'optionalAccess', _179 => _179.paidAmountUsd]) != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
3810
3824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "You pay" }),
|
|
3811
3825
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
3812
3826
|
"$",
|
|
@@ -3818,7 +3832,7 @@ function ProcessingStep({
|
|
|
3818
3832
|
] })
|
|
3819
3833
|
] })
|
|
3820
3834
|
] }),
|
|
3821
|
-
_optionalChain([swappedFiatContext, 'optionalAccess',
|
|
3835
|
+
_optionalChain([swappedFiatContext, 'optionalAccess', _180 => _180.onrampFeeUsd]) != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
3822
3836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "On-ramp fee" }),
|
|
3823
3837
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
3824
3838
|
"$",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkALDNHEMHcjs = require('./chunk-ALDNHEMH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -155,7 +155,7 @@ function useReownWallet() {
|
|
|
155
155
|
await switchChainAsync({ chainId });
|
|
156
156
|
}
|
|
157
157
|
} catch (err) {
|
|
158
|
-
if (
|
|
158
|
+
if (_chunkALDNHEMHcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
159
159
|
throw new Error(
|
|
160
160
|
`Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
|
|
161
161
|
);
|
|
@@ -2789,6 +2789,7 @@ FeesAccordion.displayName = "FeesAccordion";
|
|
|
2789
2789
|
import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2790
2790
|
function SwappedReceipt({
|
|
2791
2791
|
onrampMethod,
|
|
2792
|
+
onrampMethodIcon,
|
|
2792
2793
|
amountPaid,
|
|
2793
2794
|
depositedAmount,
|
|
2794
2795
|
depositedIcon,
|
|
@@ -2804,14 +2805,17 @@ function SwappedReceipt({
|
|
|
2804
2805
|
/* @__PURE__ */ jsxs20("div", { className: "rs-review-details", children: [
|
|
2805
2806
|
onrampMethod && /* @__PURE__ */ jsxs20("div", { className: "rs-review-detail-row", children: [
|
|
2806
2807
|
/* @__PURE__ */ jsx22("span", { children: "Onramp method" }),
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
+
/* @__PURE__ */ jsxs20("span", { className: "rs-review-detail-value", children: [
|
|
2809
|
+
/* @__PURE__ */ jsx22("span", { children: onrampMethod }),
|
|
2810
|
+
onrampMethodIcon && /* @__PURE__ */ jsx22("span", { className: "rs-review-detail-icon rs-review-detail-icon--square", children: /* @__PURE__ */ jsx22("img", { src: onrampMethodIcon, alt: "" }) })
|
|
2811
|
+
] })
|
|
2808
2812
|
] }),
|
|
2809
2813
|
amountPaid && /* @__PURE__ */ jsxs20("div", { className: "rs-review-detail-row", children: [
|
|
2810
2814
|
/* @__PURE__ */ jsx22("span", { children: "Amount paid" }),
|
|
2811
2815
|
/* @__PURE__ */ jsx22("span", { className: "rs-review-detail-value", children: amountPaid })
|
|
2812
2816
|
] }),
|
|
2813
2817
|
/* @__PURE__ */ jsxs20("div", { className: "rs-review-detail-row", children: [
|
|
2814
|
-
/* @__PURE__ */ jsx22("span", { children: "
|
|
2818
|
+
/* @__PURE__ */ jsx22("span", { children: "Receive" }),
|
|
2815
2819
|
/* @__PURE__ */ jsxs20("span", { className: "rs-review-detail-value", children: [
|
|
2816
2820
|
/* @__PURE__ */ jsx22("span", { children: depositedAmount }),
|
|
2817
2821
|
depositedIcon && /* @__PURE__ */ jsx22("span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ jsx22("img", { src: depositedIcon, alt: "" }) })
|
|
@@ -3327,6 +3331,7 @@ function ProcessingStep({
|
|
|
3327
3331
|
quotedFeeSymbol,
|
|
3328
3332
|
balanceAfterUsd,
|
|
3329
3333
|
isSwappedOrder,
|
|
3334
|
+
swappedContext,
|
|
3330
3335
|
onClose,
|
|
3331
3336
|
onNewDeposit,
|
|
3332
3337
|
onRetry,
|
|
@@ -3437,10 +3442,12 @@ function ProcessingStep({
|
|
|
3437
3442
|
if (cancelled || !res) return;
|
|
3438
3443
|
if (res.transactionId != null) {
|
|
3439
3444
|
if (res.transactionId.toLowerCase() !== txHash.toLowerCase()) return;
|
|
3440
|
-
} else if (!isSwappedOrder) {
|
|
3445
|
+
} else if (!isSwappedOrder || swappedContext?.variant === "connect") {
|
|
3441
3446
|
return;
|
|
3442
3447
|
}
|
|
3443
3448
|
setSwappedFiatContext({
|
|
3449
|
+
orderCrypto: res.orderCrypto,
|
|
3450
|
+
orderCryptoAmount: res.orderCryptoAmount,
|
|
3444
3451
|
paidAmountUsd: res.paidAmountUsd,
|
|
3445
3452
|
paidAmountEur: res.paidAmountEur,
|
|
3446
3453
|
onrampFeeUsd: res.onrampFeeUsd,
|
|
@@ -3451,7 +3458,7 @@ function ProcessingStep({
|
|
|
3451
3458
|
return () => {
|
|
3452
3459
|
cancelled = true;
|
|
3453
3460
|
};
|
|
3454
|
-
}, [service, smartAccount, txHash, isSwappedOrder]);
|
|
3461
|
+
}, [service, smartAccount, txHash, isSwappedOrder, swappedContext?.variant]);
|
|
3455
3462
|
useEffect5(() => {
|
|
3456
3463
|
if (directTransfer) return;
|
|
3457
3464
|
if (state.type !== "processing") {
|
|
@@ -3727,8 +3734,14 @@ function ProcessingStep({
|
|
|
3727
3734
|
/* @__PURE__ */ jsx23("div", { className: "rs-body-header-text", children: /* @__PURE__ */ jsx23("h2", { className: "rs-body-header-title", children: stateTitle }) })
|
|
3728
3735
|
] }) : /* @__PURE__ */ jsx23(BodyHeader, { icon: /* @__PURE__ */ jsx23(WalletIcon, {}), title: stateTitle });
|
|
3729
3736
|
if (isComplete && isSwappedOrder) {
|
|
3730
|
-
const
|
|
3731
|
-
const
|
|
3737
|
+
const effectivePaymentMethod = swappedContext?.method ?? swappedFiatContext?.paymentMethod ?? null;
|
|
3738
|
+
const onrampMethod = effectivePaymentMethod ? formatPaymentMethod(effectivePaymentMethod) : null;
|
|
3739
|
+
const onrampMethodIcon = swappedContext?.variant === "connect" && effectivePaymentMethod ? getExchangeLogoSrc(
|
|
3740
|
+
onrampMethod ?? effectivePaymentMethod,
|
|
3741
|
+
effectivePaymentMethod
|
|
3742
|
+
) : null;
|
|
3743
|
+
const connectPaidAmount = swappedContext?.variant === "connect" ? `${formattedSentAmount} ${sourceSymbol}` : null;
|
|
3744
|
+
const amountPaid = connectPaidAmount ?? (swappedFiatContext?.paidAmountUsd != null ? `$${swappedFiatContext.paidAmountUsd.toFixed(2)}` : null);
|
|
3732
3745
|
const depositedAmount = receiveDisplay;
|
|
3733
3746
|
const onrampFeeUsd = swappedFiatContext?.onrampFeeUsd ?? null;
|
|
3734
3747
|
const networkFeeUsd = quotedFeeAmount !== void 0 && Number.isFinite(Number(quotedFeeAmount)) ? Number(quotedFeeAmount) : null;
|
|
@@ -3750,6 +3763,7 @@ function ProcessingStep({
|
|
|
3750
3763
|
SwappedReceipt,
|
|
3751
3764
|
{
|
|
3752
3765
|
onrampMethod,
|
|
3766
|
+
onrampMethodIcon,
|
|
3753
3767
|
amountPaid,
|
|
3754
3768
|
depositedAmount,
|
|
3755
3769
|
depositedIcon: targetTokenIcon,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
tokenFormatter,
|
|
65
65
|
txRefsMatch,
|
|
66
66
|
useLatestRef
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FXZDNC4X.mjs";
|
|
68
68
|
import {
|
|
69
69
|
SAFE_ABI
|
|
70
70
|
} from "./chunk-F7P4MV72.mjs";
|
|
@@ -2108,7 +2108,15 @@ function SwappedOrderTracker({
|
|
|
2108
2108
|
{
|
|
2109
2109
|
className: "rs-swapped-tracker-step-marker",
|
|
2110
2110
|
"aria-hidden": "true",
|
|
2111
|
-
children: status === "complete" ? /* @__PURE__ */ jsx8(CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ jsx8(CloseIcon, {}) : status === "active" ? /* @__PURE__ */ jsx8(Spinner, {}) :
|
|
2111
|
+
children: status === "complete" ? /* @__PURE__ */ jsx8(CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ jsx8(CloseIcon, {}) : status === "active" ? /* @__PURE__ */ jsx8(Spinner, {}) : /* @__PURE__ */ jsx8(
|
|
2112
|
+
"svg",
|
|
2113
|
+
{
|
|
2114
|
+
className: "rs-swapped-tracker-step-ring",
|
|
2115
|
+
viewBox: "0 0 16 16",
|
|
2116
|
+
"aria-hidden": "true",
|
|
2117
|
+
children: /* @__PURE__ */ jsx8("circle", { cx: "8", cy: "8", r: "7" })
|
|
2118
|
+
}
|
|
2119
|
+
)
|
|
2112
2120
|
}
|
|
2113
2121
|
)
|
|
2114
2122
|
]
|
|
@@ -2154,6 +2162,7 @@ var DEPOSIT_POLL_FAST_INITIAL_DELAY_MS = 1e3;
|
|
|
2154
2162
|
var DEPOSIT_POLL_FAST_INTERVAL_MS = 500;
|
|
2155
2163
|
var IFRAME_LOAD_TIMEOUT_MS = 15e3;
|
|
2156
2164
|
var SWAPPED_IFRAME_ORIGINS = /* @__PURE__ */ new Set([
|
|
2165
|
+
"https://connect.swapped.com",
|
|
2157
2166
|
"https://sandbox.swapped.com",
|
|
2158
2167
|
"https://widget.swapped.com"
|
|
2159
2168
|
]);
|
|
@@ -2213,6 +2222,7 @@ function SwappedIframeStep({
|
|
|
2213
2222
|
const [orderState, setOrderState] = useState6(null);
|
|
2214
2223
|
const [latestEvent, setLatestEvent] = useState6(null);
|
|
2215
2224
|
const [phase, setPhase] = useState6("iframe");
|
|
2225
|
+
const iframeRef = useRef6(null);
|
|
2216
2226
|
const completeFiredRef = useRef6(false);
|
|
2217
2227
|
const failedFiredRef = useRef6(false);
|
|
2218
2228
|
const expectedOrderUuidRef = useRef6(null);
|
|
@@ -2335,10 +2345,15 @@ function SwappedIframeStep({
|
|
|
2335
2345
|
useEffect6(() => {
|
|
2336
2346
|
function onMessage(e) {
|
|
2337
2347
|
if (!SWAPPED_IFRAME_ORIGINS.has(e.origin)) return;
|
|
2348
|
+
if (e.source !== iframeRef.current?.contentWindow) return;
|
|
2338
2349
|
const parsed = parseSwappedIframeMessage(e.data);
|
|
2339
2350
|
if (!parsed) return;
|
|
2351
|
+
const orderId = parsed.orderId;
|
|
2352
|
+
if (!orderId || orderId !== expectedOrderUuidRef.current) {
|
|
2353
|
+
return;
|
|
2354
|
+
}
|
|
2340
2355
|
setOrderState((prev) => ({
|
|
2341
|
-
orderId
|
|
2356
|
+
orderId,
|
|
2342
2357
|
status: parsed.status,
|
|
2343
2358
|
orderCrypto: parsed.orderCrypto ?? prev?.orderCrypto ?? null,
|
|
2344
2359
|
orderCryptoAmount: parsed.orderCryptoAmount ?? prev?.orderCryptoAmount ?? null,
|
|
@@ -2438,6 +2453,7 @@ function SwappedIframeStep({
|
|
|
2438
2453
|
widgetUrl && !loadError && /* @__PURE__ */ jsx9(
|
|
2439
2454
|
"iframe",
|
|
2440
2455
|
{
|
|
2456
|
+
ref: iframeRef,
|
|
2441
2457
|
src: widgetUrl,
|
|
2442
2458
|
title: iframeTitle,
|
|
2443
2459
|
className: "rs-fiat-onramp-iframe",
|
|
@@ -4584,7 +4600,8 @@ function applyAction(state, action) {
|
|
|
4584
4600
|
processing: {
|
|
4585
4601
|
...state.processing,
|
|
4586
4602
|
txHash: action.txHash,
|
|
4587
|
-
directTransfer: action.directTransfer ?? false
|
|
4603
|
+
directTransfer: action.directTransfer ?? false,
|
|
4604
|
+
swappedContext: action.swappedContext ?? null
|
|
4588
4605
|
},
|
|
4589
4606
|
flow: { ...state.flow, step: "processing" }
|
|
4590
4607
|
};
|
|
@@ -4753,7 +4770,8 @@ function applyAction(state, action) {
|
|
|
4753
4770
|
deposit: { ...state.deposit, ...RESET_DEPOSIT_FIELDS },
|
|
4754
4771
|
processing: {
|
|
4755
4772
|
txHash: null,
|
|
4756
|
-
directTransfer: false
|
|
4773
|
+
directTransfer: false,
|
|
4774
|
+
swappedContext: null
|
|
4757
4775
|
},
|
|
4758
4776
|
// Drop fetched availability wholesale. The fetch effect refetches
|
|
4759
4777
|
// unconditionally on remount (so keeping the map saves nothing),
|
|
@@ -4834,7 +4852,8 @@ function createInitialState(overrides) {
|
|
|
4834
4852
|
},
|
|
4835
4853
|
processing: {
|
|
4836
4854
|
txHash: null,
|
|
4837
|
-
directTransfer: false
|
|
4855
|
+
directTransfer: false,
|
|
4856
|
+
swappedContext: null
|
|
4838
4857
|
},
|
|
4839
4858
|
dappImport: {
|
|
4840
4859
|
activeProviderId: null,
|
|
@@ -5300,7 +5319,8 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
|
|
|
5300
5319
|
sourceSymbol: d.sourceSymbol ?? void 0,
|
|
5301
5320
|
sourceDecimals: d.sourceDecimals ?? void 0,
|
|
5302
5321
|
inputAmountUsd: d.inputAmountUsd ?? void 0,
|
|
5303
|
-
directTransfer: p.directTransfer
|
|
5322
|
+
directTransfer: p.directTransfer,
|
|
5323
|
+
swappedContext: p.swappedContext ?? void 0
|
|
5304
5324
|
};
|
|
5305
5325
|
}
|
|
5306
5326
|
}
|
|
@@ -6394,6 +6414,14 @@ function DepositFlow({
|
|
|
6394
6414
|
orderCrypto: info.orderCrypto
|
|
6395
6415
|
});
|
|
6396
6416
|
const amount = info.amount ?? "0";
|
|
6417
|
+
const stateAtComplete = storeApi.getState();
|
|
6418
|
+
const swappedContext = stateAtComplete.flow.mode === "exchange-connect" ? {
|
|
6419
|
+
variant: "connect",
|
|
6420
|
+
method: stateAtComplete.exchange.selectedConnection
|
|
6421
|
+
} : stateAtComplete.flow.mode === "fiat-onramp" ? {
|
|
6422
|
+
variant: "fiat",
|
|
6423
|
+
method: stateAtComplete.fiat.selectedMethod
|
|
6424
|
+
} : void 0;
|
|
6397
6425
|
storeApi.dispatch({
|
|
6398
6426
|
type: "deposit/submitted",
|
|
6399
6427
|
txHash: info.txHash,
|
|
@@ -6401,7 +6429,8 @@ function DepositFlow({
|
|
|
6401
6429
|
sourceToken: SWAPPED_SOURCE_TOKEN,
|
|
6402
6430
|
amount,
|
|
6403
6431
|
sourceSymbol: info.orderCrypto ?? "USDC",
|
|
6404
|
-
sourceDecimals: SWAPPED_SOURCE_DECIMALS
|
|
6432
|
+
sourceDecimals: SWAPPED_SOURCE_DECIMALS,
|
|
6433
|
+
swappedContext
|
|
6405
6434
|
});
|
|
6406
6435
|
onLifecycleRef.current?.({
|
|
6407
6436
|
type: "submitted",
|
|
@@ -6663,6 +6692,7 @@ function DepositFlow({
|
|
|
6663
6692
|
sourceSymbol: step.sourceSymbol,
|
|
6664
6693
|
sourceDecimals: step.sourceDecimals,
|
|
6665
6694
|
amountUsd: step.inputAmountUsd,
|
|
6695
|
+
swappedContext: step.swappedContext,
|
|
6666
6696
|
hasPostBridgeActions: Boolean(postBridgeActions?.length),
|
|
6667
6697
|
service,
|
|
6668
6698
|
directTransfer: step.directTransfer,
|
|
@@ -6730,6 +6760,7 @@ function DepositFlow({
|
|
|
6730
6760
|
sourceSymbol: step.sourceSymbol,
|
|
6731
6761
|
sourceDecimals: step.sourceDecimals,
|
|
6732
6762
|
amountUsd: step.inputAmountUsd,
|
|
6763
|
+
swappedContext: step.swappedContext,
|
|
6733
6764
|
hasPostBridgeActions: Boolean(postBridgeActions?.length),
|
|
6734
6765
|
service,
|
|
6735
6766
|
directTransfer: step.directTransfer,
|
|
@@ -7325,7 +7356,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
|
|
|
7325
7356
|
// src/DepositModal.tsx
|
|
7326
7357
|
import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7327
7358
|
var ReownDepositInner = lazy2(
|
|
7328
|
-
() => import("./DepositModalReown-
|
|
7359
|
+
() => import("./DepositModalReown-JGTQ5NCW.mjs").then((m) => ({ default: m.DepositModalReown }))
|
|
7329
7360
|
);
|
|
7330
7361
|
function sortByCreatedAtDesc(items) {
|
|
7331
7362
|
return [...items].sort((a, b) => {
|