Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-24 21:40:36 +05:00
parent 55b6b57963
commit 60e697282b
2 changed files with 24 additions and 3 deletions

View file

@ -73,7 +73,17 @@ internal class ReferralInteractorImpl(
when (portfolioId) {
is PortfolioId.Account -> {
manageCryptoCurrenciesUseCase(accountId = portfolioId.accountId, add = cryptoCurrency)
manageCryptoCurrenciesUseCase(
accountId = portfolioId.accountId,
add = cryptoCurrency,
skipDerivationErrors = false,
).mapLeft {
it.mapToDomainError()
}.onLeft { error ->
if (error is ReferralError.UserCancelledException) {
throw error
}
}
}
is PortfolioId.Wallet -> {
derivePublicKeysUseCase(userWallet.walletId, listOf(cryptoCurrency)).getOrElse { throwable ->