Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-06 17:14:29 +03:00
parent 26e4fdc667
commit 57aba8f731

View file

@ -40,7 +40,13 @@ internal class SwapRepositoryImpl @Inject constructor(
override suspend fun getExchangeableTokens(networkId: String): List<Currency> {
return withContext(coroutineDispatcher.io) {
tokensConverter.convertList(tangemTechApi.getCoins(exchangeable = true, networkIds = networkId).coins)
tokensConverter.convertList(
tangemTechApi.getCoins(
exchangeable = true,
active = true,
networkIds = networkId,
).coins,
)
}
}
@ -49,7 +55,7 @@ internal class SwapRepositoryImpl @Inject constructor(
fromTokenAddress: String,
toTokenAddress: String,
amount:
String,
String,
): AggregatedSwapDataModel<QuoteModel> {
return withContext(coroutineDispatcher.io) {
try {