Updated on 2026-08-14

This commit is contained in:
Tangem 2025-02-27 19:43:34 +03:00
parent 76e17fc21f
commit f9cc3decfb
12 changed files with 353 additions and 144 deletions

View file

@ -0,0 +1,9 @@
package com.tangem.domain.exchange
sealed interface ExchangeableState {
data object Exchangeable : ExchangeableState
data object NotExchangeable : ExchangeableState
data object Loading : ExchangeableState
data object Error : ExchangeableState
data object AssetNotFound : ExchangeableState
}

View file

@ -31,7 +31,7 @@ interface RampStateManager {
status: CryptoCurrencyStatus,
): Either<ScenarioUnavailabilityReason, Unit>
suspend fun availableForSwap(userWalletId: UserWalletId, cryptoCurrency: CryptoCurrency): Boolean
suspend fun availableForSwap(userWalletId: UserWalletId, cryptoCurrency: CryptoCurrency): ExchangeableState
suspend fun fetchBuyServiceData()