Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-16 17:52:57 +03:00
parent bbd1fc9ace
commit 472efdfc6b
10 changed files with 36 additions and 39 deletions

View file

@ -83,8 +83,7 @@ internal class OnrampOperationModel @Inject constructor(
fun onHotTokenClick(status: CryptoCurrencyStatus) {
modelScope.launch {
val unavailabilityReason = rampStateManager.availableForBuy(
scanResponse = selectedUserWallet.scanResponse,
userWalletId = params.userWalletId,
userWallet = selectedUserWallet,
cryptoCurrency = status.currency,
)

View file

@ -229,8 +229,7 @@ internal class OnrampTokenListModel @Inject constructor(
return when (params.filterOperation) {
OnrampOperation.BUY -> {
rampStateManager.availableForBuy(
scanResponse = userWallet.scanResponse,
userWalletId = params.userWalletId,
userWallet = userWallet,
cryptoCurrency = status.currency,
).isAvailable()
}