aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-02 20:44:12 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-02 20:44:12 +0530
commit95e638f513c6e8e5b4ab32981a1f8900b43700c7 (patch)
tree6a9a358259815a7de8ded76bad78b934d5f83040 /src/util
parent05e43bb259810c305cf69f9323017d6a682c8213 (diff)
downloadwallet-core-95e638f513c6e8e5b4ab32981a1f8900b43700c7.tar.xz
cosmetics and comments
Diffstat (limited to 'src/util')
-rw-r--r--src/util/amounts.ts2
-rw-r--r--src/util/reserveHistoryUtil.ts8
2 files changed, 8 insertions, 2 deletions
diff --git a/src/util/amounts.ts b/src/util/amounts.ts
index aee7b12b5..f9946393f 100644
--- a/src/util/amounts.ts
+++ b/src/util/amounts.ts
@@ -348,4 +348,4 @@ export const Amounts = {
isZero: isZero,
maxAmountValue: maxAmountValue,
fromFloat: fromFloat,
-}; \ No newline at end of file
+};
diff --git a/src/util/reserveHistoryUtil.ts b/src/util/reserveHistoryUtil.ts
index 033221874..855b71a3d 100644
--- a/src/util/reserveHistoryUtil.ts
+++ b/src/util/reserveHistoryUtil.ts
@@ -28,7 +28,6 @@ import {
import * as Amounts from "../util/amounts";
import { timestampCmp } from "./time";
import { deepCopy } from "./helpers";
-import { AmountString } from "../types/talerTypes";
import { AmountJson } from "../util/amounts";
/**
@@ -143,6 +142,9 @@ export function isLocalRemoteHistoryMatch(
return false;
}
+/**
+ * Compute totals for the wallet's view of the reserve history.
+ */
export function summarizeReserveHistory(
localHistory: WalletReserveHistoryItem[],
currency: string,
@@ -231,6 +233,10 @@ export function summarizeReserveHistory(
};
}
+/**
+ * Reconcile the wallet's local model of the reserve history
+ * with the reserve history of the exchange.
+ */
export function reconcileReserveHistory(
localHistory: WalletReserveHistoryItem[],
remoteHistory: ReserveTransaction[],