Updated on 2026-08-14
This commit is contained in:
parent
6ed1946ac3
commit
aac48015b3
88 changed files with 335 additions and 239 deletions
|
|
@ -6,6 +6,7 @@ import com.tangem.domain.account.producer.SingleAccountProducer
|
|||
import com.tangem.domain.account.status.usecase.ManageCryptoCurrenciesUseCase
|
||||
import com.tangem.domain.account.supplier.SingleAccountSupplier
|
||||
import com.tangem.domain.models.PortfolioId
|
||||
import com.tangem.domain.models.account.Account
|
||||
import com.tangem.domain.models.account.DerivationIndex
|
||||
import com.tangem.domain.models.currency.CryptoCurrency
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
|
|
@ -55,7 +56,10 @@ internal class ReferralInteractorImpl(
|
|||
)
|
||||
?: error("Account not found: ${portfolioId.accountId}")
|
||||
|
||||
account.derivationIndex
|
||||
when (account) {
|
||||
is Account.CryptoPortfolio -> account.derivationIndex
|
||||
is Account.Payment -> TODO("[REDACTED_JIRA]")
|
||||
}
|
||||
}
|
||||
is PortfolioId.Wallet -> null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ internal class ReferralModel @Inject constructor(
|
|||
|
||||
val cryptoPortfolio = when (selectedAccount) {
|
||||
is AccountStatus.CryptoPortfolio -> selectedAccount
|
||||
is AccountStatus.Payment -> TODO("[REDACTED_JIRA]")
|
||||
}
|
||||
|
||||
val awardCryptoCurrency = referralInteractor.getCryptoCurrency(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue