Updated on 2026-08-14
This commit is contained in:
parent
ff2da3ec3e
commit
42cb399a12
3 changed files with 18 additions and 2 deletions
|
|
@ -17,6 +17,12 @@ class DefaultMarketCryptoCurrencyRepository(
|
|||
return userMarketCoinsStore.getSyncOrNull(userWalletId)?.coins
|
||||
?.firstOrNull { it.id == cryptoCurrencyId.rawCurrencyId }
|
||||
?.networks
|
||||
?.firstOrNull { it.networkId == apiNetworkId }?.exchangeable ?: false
|
||||
?.firstOrNull {
|
||||
if (it.contractAddress != null) {
|
||||
it.networkId == apiNetworkId && it.contractAddress == cryptoCurrencyId.contractAddress
|
||||
} else {
|
||||
it.networkId == apiNetworkId
|
||||
}
|
||||
}?.exchangeable ?: false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue