Updated on 2026-08-14

This commit is contained in:
Tangem 2023-01-09 21:52:11 +03:00
commit b59ca3f8b8
22 changed files with 107 additions and 170 deletions

View file

@ -31,6 +31,12 @@ val CardDTO.isMultiwalletAllowed: Boolean
val CardDTO.isHdWalletAllowedByApp: Boolean
get() = settings.isHDWalletAllowed && !isSaltPay
val CardDTO.isTangemWallet: Boolean
get() = settings.isBackupAllowed
&& settings.isHDWalletAllowed
&& firmwareVersion >= FirmwareVersion.MultiWalletAvailable
&& !isSaltPay
fun CardDTO.hasSignedHashes(): Boolean {
return wallets.any { (it.totalSignedHashes ?: 0) > 0 }
}