Updated on 2026-08-14
This commit is contained in:
parent
6b4ddb1845
commit
5bf0bc85ad
1 changed files with 9 additions and 4 deletions
|
|
@ -155,11 +155,16 @@ internal class DefaultCurrenciesRepository(
|
|||
}
|
||||
|
||||
return buildList {
|
||||
networkToTokens.forEach { (network, networkTokens) ->
|
||||
val networkCoin = networkToCoin[network] ?: cryptoCurrencyFactory.createCoin(network)
|
||||
if (networkToTokens.isEmpty()) {
|
||||
// add only coin here
|
||||
addAll(networkToCoin.values)
|
||||
} else {
|
||||
networkToTokens.forEach { (network, networkTokens) ->
|
||||
val networkCoin = networkToCoin[network] ?: cryptoCurrencyFactory.createCoin(network)
|
||||
|
||||
add(networkCoin)
|
||||
addAll(networkTokens)
|
||||
add(networkCoin)
|
||||
addAll(networkTokens)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue