Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-05 19:19:24 +03:00
commit 24ef1d4ed9
120 changed files with 6250 additions and 675 deletions

View file

@ -93,6 +93,13 @@ fun UserWallet.isImported(): Boolean {
}
}
fun UserWallet.isBackedUpForAnalytics(): Boolean {
return when (this) {
is UserWallet.Cold -> scanResponse.card.backupStatus?.isActive == true
is UserWallet.Hot -> backedUp
}
}
fun UserWallet.copy(name: String = this.name, walletId: UserWalletId = this.walletId): UserWallet = when (this) {
is UserWallet.Cold -> this.copy(name = name, walletId = walletId)
is UserWallet.Hot -> this.copy(name = name, walletId = walletId)