From 23be1ab1d56ba308d03f8390ee965792f9af6906 Mon Sep 17 00:00:00 2001 From: Milan Cerovsky Date: Mon, 12 May 2025 13:22:46 +0200 Subject: [PATCH] Changelog update --- CHANGELOG.md | 10 ++++++++++ .../main/java/cash/z/ecc/sdk/extension/ZatoshiExt.kt | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a81743ce1..b3bc9245a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,16 @@ and this application adheres to [Semantic Versioning](https://semver.org/spec/v2 ## [Unreleased] +### Fixed +- Fiat text field on Send screen does not display anymore if fetching exchange rate fails + +### Changed +- When entering amount in USD in the Send or Request ZEC flow, we floor the Zatoshi amount automatically to the nearest 5000 Zatoshi to prevent creating unspendable dust notes in your wallet. +- Integrations dialog screen now displays a disclaimer +- Primary & secondary button order now follows UX best practices +- Receive screen design now aligns better with UX after home navigation changes +- Copy updated in a few places + ## [2.0.1 (941)] - 2025-04-29 ### Fixed diff --git a/sdk-ext-lib/src/main/java/cash/z/ecc/sdk/extension/ZatoshiExt.kt b/sdk-ext-lib/src/main/java/cash/z/ecc/sdk/extension/ZatoshiExt.kt index 9b3ccffd4..e5e1c9a84 100644 --- a/sdk-ext-lib/src/main/java/cash/z/ecc/sdk/extension/ZatoshiExt.kt +++ b/sdk-ext-lib/src/main/java/cash/z/ecc/sdk/extension/ZatoshiExt.kt @@ -36,7 +36,7 @@ fun Zatoshi.toZecStringAbbreviated(suffix: String): ZecAmountPair { } @Suppress("MagicNumber") -fun Zatoshi.floor(): Zatoshi = Zatoshi(floorRoundBy(value.toDouble(), 2500.0).toLong()) +fun Zatoshi.floor(): Zatoshi = Zatoshi(floorRoundBy(value.toDouble(), 5000.0).toLong()) data class ZecAmountPair( val main: String,