f
This commit is contained in:
@@ -94,6 +94,8 @@ export function SwapForm() {
|
||||
|
||||
const isProcessing = isSigning || isExecutingTrxSwap
|
||||
|
||||
const insufficientBalance = (parseFloat(fromAmount) || 0) > fromToken.balance
|
||||
|
||||
// ── Display values ───────────────────────────────────────────────────────
|
||||
const displayToAmount = isTrxNetwork
|
||||
? (trxQuoteData?.expectedOutFormatted ?? '0')
|
||||
@@ -162,6 +164,7 @@ export function SwapForm() {
|
||||
{modalData && (
|
||||
<SwapConfirmModal
|
||||
data={modalData}
|
||||
insufficientBalance={insufficientBalance}
|
||||
onClose={() => setModalData(null)}
|
||||
onConfirm={() => {
|
||||
const txData = modalData.steps[0]?.items[0]?.data
|
||||
@@ -192,6 +195,7 @@ export function SwapForm() {
|
||||
fromSymbol={fromToken.symbol}
|
||||
toSymbol={toToken.symbol}
|
||||
amountHuman={fromAmount}
|
||||
insufficientBalance={insufficientBalance}
|
||||
onClose={() => setTrxModalQuote(null)}
|
||||
onConfirm={() => {
|
||||
setErrorMessage(null)
|
||||
|
||||
Reference in New Issue
Block a user