Updated on 2026-08-14
This commit is contained in:
parent
aab0c74c6b
commit
0c6aa6f862
2 changed files with 6 additions and 4 deletions
|
|
@ -5,6 +5,10 @@ import com.tangem.feature.swap.domain.models.ui.FeeType
|
|||
|
||||
sealed class FeeItemState {
|
||||
|
||||
/**
|
||||
* @param amountCrypto - crypto amount formatted with symbol
|
||||
* @param amountFiatFormatted - formatted fiat amount
|
||||
*/
|
||||
data class Content(
|
||||
val feeType: FeeType,
|
||||
val title: TextReference,
|
||||
|
|
|
|||
|
|
@ -472,9 +472,7 @@ internal class StateBuilder(
|
|||
warnings.add(
|
||||
SwapWarning.GeneralWarning(
|
||||
createNetworkFeeCoverageNotificationConfig(
|
||||
quoteModel.fromTokenInfo.tokenAmount.getFormattedCryptoAmount(
|
||||
quoteModel.fromTokenInfo.cryptoCurrencyStatus.currency,
|
||||
),
|
||||
fee.feeCryptoFormatted,
|
||||
fee.feeFiatFormatted,
|
||||
),
|
||||
),
|
||||
|
|
@ -572,7 +570,7 @@ internal class StateBuilder(
|
|||
warnings.add(getWarningForError(dataError, fromToken.cryptoCurrencyStatus.currency))
|
||||
if (includeFeeInAmount is IncludeFeeInAmount.Included && uiStateHolder.fee is FeeItemState.Content) {
|
||||
val feeCoverageNotification = createNetworkFeeCoverageNotificationConfig(
|
||||
fromToken.tokenAmount.getFormattedCryptoAmount(fromToken.cryptoCurrencyStatus.currency),
|
||||
uiStateHolder.fee.amountCrypto,
|
||||
uiStateHolder.fee.amountFiatFormatted,
|
||||
)
|
||||
warnings.add(SwapWarning.GeneralWarning(feeCoverageNotification))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue