Updated on 2026-08-14

This commit is contained in:
Tangem 2025-06-26 13:22:19 +04:00
parent 73832d3e8e
commit 867d9fd735
9 changed files with 66 additions and 79 deletions

View file

@ -6,6 +6,7 @@ import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.scan.ScanResponse
import com.tangem.domain.tokens.model.CryptoCurrencyStatus
import com.tangem.domain.tokens.model.ScenarioUnavailabilityReason
import com.tangem.domain.wallets.models.UserWallet
import com.tangem.domain.wallets.models.UserWalletId
import kotlinx.coroutines.flow.Flow
@ -23,11 +24,11 @@ interface RampStateManager {
/**
* Check if [CryptoCurrency] is available for sell
*
* @param userWalletId id of multi-currency wallet
* @param status crypto currency status
* @param userWallet user wallet
* @param status crypto currency status
*/
suspend fun availableForSell(
userWalletId: UserWalletId,
userWallet: UserWallet,
status: CryptoCurrencyStatus,
): Either<ScenarioUnavailabilityReason, Unit>