From 0240096cf663df982f0f3e0b9d46407ae7965c96 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 11 May 2020 18:37:10 +0530 Subject: oops, fix multiplication --- src/util/amounts.ts | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3