aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-05-11 18:37:10 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-05-11 18:37:10 +0530
commit0240096cf663df982f0f3e0b9d46407ae7965c96 (patch)
treec1c69bf8586b638f17e40b69f85c536bc2714b30 /src/util
parent21b5e6f20656c4450eb40f03047dfd65c66dca33 (diff)
oops, fix multiplication
Diffstat (limited to 'src/util')
-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) {