Updated on 2026-08-14

This commit is contained in:
Tangem 2022-06-21 10:31:56 +03:00
parent f804226a55
commit cf23903378
3 changed files with 6 additions and 2 deletions

View file

@ -185,8 +185,9 @@ class CurrenciesRepository(
tokens.map {
async {
tangemNetworkService.getTokens(
it.contractAddress,
it.blockchainDao.toBlockchain().toNetworkId()
contractAddress = it.contractAddress,
networkId = it.blockchainDao.toBlockchain().toNetworkId(),
active = true,
)
}
}.map { it.await() }

View file

@ -53,6 +53,7 @@ class LoadAvailableCoinsService(
val networkIds = supportedBlockchains.toSet().map { it.toNetworkId() }
return networkService.getListOfCoins(
networkIds = networkIds,
active = true,
offset = offset,
limit = LOAD_PER_PAGE,
searchText = searchInput

View file

@ -16,11 +16,13 @@ suspend fun TangemTechService.getTokens(
suspend fun TangemTechService.getListOfCoins(
networkIds: List<String>,
active: Boolean? = null,
searchText: String? = null,
offset: Int? = null,
limit: Int? = null
): Result<CoinsResponse> = coins(
networkIds = networkIds.joinToString(","),
active = active,
searchText = searchText,
offset = offset,
limit = limit