Updated on 2026-08-14
This commit is contained in:
parent
76e17fc21f
commit
f9cc3decfb
12 changed files with 353 additions and 144 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue