From bb32a1e7b1ec0c68720130f292ef2e824a57cf4a Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 21 Nov 2023 17:59:13 +0200 Subject: [PATCH] add comment to transactions csv on the approximate nature of the fiat values --- .../com/sparrowwallet/sparrow/io/WalletTransactions.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java b/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java index 4ab1fb3a..9869afb1 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java @@ -96,6 +96,12 @@ public class WalletTransactions implements WalletExport { writer.write(txEntry.getBlockTransaction().getHash().toString()); writer.endRecord(); } + + if(fiatCurrency != null) { + writer.endRecord(); + writer.writeComment(" Historical " + fiatCurrency.getCurrencyCode() + " values are taken from daily rates and should only be considered as approximate."); + } + writer.close(); } catch(IOException e) { throw new ExportException("Error writing transactions CSV", e);