Updated on 2026-08-14

This commit is contained in:
Tangem 2023-12-19 17:06:08 +03:00
parent aff4704274
commit 03009304d8
6 changed files with 79 additions and 19 deletions

View file

@ -27,6 +27,11 @@ internal class DefaultDerivationsRepository(
override suspend fun derivePublicKeys(userWalletId: UserWalletId, currencies: List<CryptoCurrency>) {
val userWallet = userWalletsStore.getSyncOrNull(userWalletId) ?: error("User wallet not found")
if (!userWallet.scanResponse.card.settings.isHDWalletAllowed) {
Timber.d("Nothing to derive")
return
}
val derivations = MissedDerivationsFinder(scanResponse = userWallet.scanResponse)
.find(currencies)
.ifEmpty {