Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-30 16:48:26 +03:00
parent acf110dbcc
commit 6910f74fd9
242 changed files with 866 additions and 732 deletions

View file

@ -29,5 +29,5 @@ fun TokensDataStateExpress.getGroupWithReverse(isReverseFromTo: Boolean): Curren
data class CurrenciesGroup(
val available: List<CryptoCurrencySwapInfo>,
val unavailable: List<CryptoCurrencySwapInfo>,
val afterSearch: Boolean,
val isAfterSearch: Boolean,
)

View file

@ -172,7 +172,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
return CurrenciesGroup(
available = availableCryptoCurrencies,
unavailable = unavailableCryptoCurrencies.map { CryptoCurrencySwapInfo(it, emptyList()) },
afterSearch = false,
isAfterSearch = false,
)
}

View file

@ -55,7 +55,7 @@ class TokensDataConverter(
.toImmutableList(),
onSearchEntered = onSearchEntered,
onTokenSelected = onTokenSelected,
afterSearch = group.afterSearch,
afterSearch = group.isAfterSearch,
)
}
@ -85,7 +85,7 @@ class TokensDataConverter(
url = currency.iconUrl,
fallbackResId = currency.networkIconResId,
isGrayscale = !isAvailable,
showCustomBadge = currency.isCustom,
shouldShowCustomBadge = currency.isCustom,
)
}
is CryptoCurrency.Token -> {
@ -95,7 +95,7 @@ class TokensDataConverter(
CurrencyIconState.TokenIcon(
url = currency.iconUrl,
isGrayscale = !isAvailable,
showCustomBadge = currency.isCustom,
shouldShowCustomBadge = currency.isCustom,
topBadgeIconResId = currency.networkIconResId,
fallbackTint = tint,
fallbackBackground = background,

View file

@ -785,7 +785,7 @@ internal class SwapModel @Inject constructor(
fromGroup = tokenDataState.fromGroup.copy(
available = available,
unavailable = unavailable,
afterSearch = true,
isAfterSearch = true,
),
)
} else {
@ -793,7 +793,7 @@ internal class SwapModel @Inject constructor(
toGroup = tokenDataState.toGroup.copy(
available = available,
unavailable = unavailable,
afterSearch = true,
isAfterSearch = true,
),
)
}

View file

@ -964,7 +964,7 @@ internal class StateBuilder(
spenderAddress = getShortAddressValue(permissionDataState.spenderAddress),
fee = TextReference.Str("${permissionFee.feeCryptoFormatted} (${permissionFee.feeFiatFormatted})"),
approveButton = ApprovePermissionButton(
enabled = true,
isEnabled = true,
onClick = onGivePermissionClick,
),
cancelButton = CancelPermissionButton(

View file

@ -287,7 +287,7 @@ private val token = TokenToSelectState.TokenToSelect(
url = "",
fallbackResId = 0,
isGrayscale = false,
showCustomBadge = false,
shouldShowCustomBadge = false,
),
id = "",
name = "Optimistic Ethereum (ETH)",