fix select bridge

This commit is contained in:
2026-07-02 20:17:20 +03:00
parent 8b3dbb4846
commit 68e9df3246
6 changed files with 173 additions and 167 deletions

161
dist/assets/index-CI1EaW5Q.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/assets/index-CLXpUMJi.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/index.html vendored
View File

@@ -5,8 +5,8 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ЭКСА — Ваш мост в мир цифровых активов</title> <title>ЭКСА — Ваш мост в мир цифровых активов</title>
<script type="module" crossorigin src="/assets/index-D5Tcezge.js"></script> <script type="module" crossorigin src="/assets/index-CI1EaW5Q.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-uJVkjhvb.css"> <link rel="stylesheet" crossorigin href="/assets/index-CLXpUMJi.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@@ -63,10 +63,16 @@ export function SwapForm() {
// ── Relay (ETH / BSC / SOL) ───────────────────────────────────────────── // ── Relay (ETH / BSC / SOL) ─────────────────────────────────────────────
const chainId = CHAIN_ID[fromNetwork] const chainId = CHAIN_ID[fromNetwork]
const walletAddress = addresses?.find(a => a.chain === fromNetwork)?.address const walletAddress = addresses?.find(a => a.chain === fromNetwork)?.address
const fromContract = tokensList?.find(t => t.chain === fromNetwork && t.symbol === fromToken.symbol)?.contract ?? nativeAddr(fromNetwork) const isNativeFrom = fromToken.symbol === fromNetwork
const toContract = tokensList?.find(t => t.chain === fromNetwork && t.symbol === toToken.symbol)?.contract ?? nativeAddr(fromNetwork) const isNativeTo = toToken.symbol === fromNetwork
const fromContract = isNativeFrom
? nativeAddr(fromNetwork)
: tokensList?.find(t => t.chain === fromNetwork && t.symbol === fromToken.symbol)?.contract ?? undefined
const toContract = isNativeTo
? nativeAddr(fromNetwork)
: tokensList?.find(t => t.chain === fromNetwork && t.symbol === toToken.symbol)?.contract ?? undefined
const quotePayload = !isTrxNetwork && chainId && walletAddress && parsedAmount > 0 const quotePayload = !isTrxNetwork && chainId && walletAddress && fromContract && toContract && parsedAmount > 0
? { ? {
user: walletAddress, user: walletAddress,
recipient: walletAddress, recipient: walletAddress,