From 610f807f0616bd0c825d178fd7c608e17b437e1a Mon Sep 17 00:00:00 2001 From: Tangem Date: Sun, 10 Sep 2023 17:57:23 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../main/java/com/tangem/domain/tokens/models/CryptoCurrency.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/tokens/models/src/main/java/com/tangem/domain/tokens/models/CryptoCurrency.kt b/domain/tokens/models/src/main/java/com/tangem/domain/tokens/models/CryptoCurrency.kt index 970edc26f5..8422e6035a 100644 --- a/domain/tokens/models/src/main/java/com/tangem/domain/tokens/models/CryptoCurrency.kt +++ b/domain/tokens/models/src/main/java/com/tangem/domain/tokens/models/CryptoCurrency.kt @@ -159,7 +159,7 @@ sealed class CryptoCurrency : Serializable { require(name.isNotBlank()) { "Crypto currency name must not be blank" } require(symbol.isNotBlank()) { "Crypto currency symbol must not be blank" } require(iconUrl?.isNotBlank() ?: true) { "Crypto currency icon URL must not be blank" } - require(decimals > 0) { "Crypto currency decimal must not be less then zero, but it is: $decimals" } + require(decimals >= 0) { "Crypto currency decimal must not be less then zero, but it is: $decimals" } require(derivationPath?.isNotBlank() ?: true) { "Crypto currency derivation path must not be blank" } } } \ No newline at end of file