Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-28 13:07:24 +04:00
parent a44f392d0a
commit 5315e04487
21 changed files with 199 additions and 177 deletions

View file

@ -0,0 +1,12 @@
package com.tangem.domain.markets
import com.tangem.domain.models.currency.CryptoCurrency
/**
* minimal token info for add-to-portfolio flow
*/
data class RawMarketToken(
val id: CryptoCurrency.RawID,
val name: String,
val symbol: String,
)

View file

@ -10,7 +10,7 @@ class GetTokenMarketCryptoCurrency(
) {
suspend operator fun invoke(
userWalletId: UserWalletId,
tokenMarketParams: TokenMarketParams,
tokenMarketParams: RawMarketToken,
network: TokenMarketInfo.Network,
accountIndex: DerivationIndex,
): CryptoCurrency? {

View file

@ -42,7 +42,7 @@ interface MarketsTokenRepository {
suspend fun createCryptoCurrency(
userWalletId: UserWalletId,
token: TokenMarketParams,
token: RawMarketToken,
network: TokenMarketInfo.Network,
accountIndex: DerivationIndex? = null,
): CryptoCurrency?