Updated on 2026-08-14
This commit is contained in:
parent
f804226a55
commit
cf23903378
3 changed files with 6 additions and 2 deletions
|
|
@ -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() }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue