summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/amounts.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/amounts.ts b/src/util/amounts.ts
index d962b6cbd..cdb98b0f2 100644
--- a/src/util/amounts.ts
+++ b/src/util/amounts.ts
@@ -349,6 +349,7 @@ function mult(a: AmountJson, n: number): Result {
n = n / 2;
r = add(acc, acc);
} else {
+ n = n - 1;
r = add(acc, a);
}
if (r.saturated) {