fix commission preview

This commit is contained in:
2026-06-24 00:03:18 +03:00
parent b9b2d9fcf3
commit 036c4a36ef
17 changed files with 246 additions and 410 deletions

View File

@@ -109,6 +109,8 @@ export function SwapForm() {
? trxQuoteData?.fees.network.amountUsd?.toString()
: quoteData?.fees.gas.amountUsd
const serviceFee = quoteData?.appCommission?.usd?.toString()
const isButtonDisabled = isTrxNetwork
? parsedAmount <= 0 || isFetchingTrxQuote
: !quotePayload || isSwapping
@@ -153,7 +155,7 @@ export function SwapForm() {
onTokenChange={setToToken}
/>
<SwapInfoPanel gasFee={gasFee} />
<SwapInfoPanel gasFee={gasFee} serviceFee={serviceFee} />
<PrimaryButton
label={isSwapping || isFetchingTrxQuote ? 'Загрузка...' : undefined}