Updated on 2026-08-14
This commit is contained in:
commit
a3216e8e23
57 changed files with 532 additions and 468 deletions
|
|
@ -204,7 +204,7 @@ internal class TesterAccountsViewModel @Inject constructor(
|
|||
|
||||
var nextIndex = accountList.totalAccounts
|
||||
@Suppress("LoopWithTooManyJumpStatements") // never mind for Tester Menu
|
||||
while (accountList.canAddMoreAccounts) {
|
||||
while (accountList.canAddMoreCryptoAccounts) {
|
||||
val derivationIndex = DerivationIndex(nextIndex).getOrNull() ?: break
|
||||
|
||||
val newAccount = Account.CryptoPortfolio.invoke(
|
||||
|
|
@ -246,7 +246,7 @@ internal class TesterAccountsViewModel @Inject constructor(
|
|||
withContext(dispatchers.default) {
|
||||
val updatedAccountList = AccountList.invoke(
|
||||
userWalletId = accountList.userWalletId,
|
||||
accounts = if (possibleToArchive > AccountList.MAX_ACCOUNTS_COUNT - 1) {
|
||||
accounts = if (possibleToArchive > AccountList.MAX_CRYPTO_PORTFOLIO_ACCOUNTS_COUNT - 1) {
|
||||
listOf(accountList.mainAccount)
|
||||
} else {
|
||||
accountList.accounts.subList(fromIndex = 0, toIndex = accountList.accounts.size - possibleToArchive)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue