Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-27 14:58:28 +02:00
parent b77f1fb448
commit 1e19ce06b8
4 changed files with 0 additions and 18 deletions

View file

@ -4,5 +4,4 @@ import com.squareup.moshi.Json
data class AssetsRequestBody(
@Json(name = "tokensList") val tokensList: List<LeastTokenInfo>?,
@Json(name = "onlyActive") val onlyActive: Boolean,
)

View file

@ -9,21 +9,6 @@ data class Asset(
@Json(name = "network")
val network: String,
@Json(name = "token")
val token: String,
@Json(name = "name")
val name: String,
@Json(name = "symbol")
val symbol: String,
@Json(name = "decimals")
val decimals: Int,
@Json(name = "isActive")
val isActive: Boolean,
@Json(name = "exchangeAvailable")
val exchangeAvailable: Boolean,
)

View file

@ -392,7 +392,6 @@ internal class DefaultCurrenciesRepository(
val response = tangemExpressApi.getAssets(
AssetsRequestBody(
tokensList = tokensList,
onlyActive = true,
),
)

View file

@ -15,7 +15,6 @@ class DefaultMarketCryptoCurrencyRepository(
return assetsStore.getSyncOrNull(userWalletId)?.find {
it.network == cryptoCurrency.network.backendId &&
it.token == cryptoCurrency.id.rawCurrencyId &&
it.contractAddress == contractAddress
}?.exchangeAvailable ?: false
}