commit 0240096cf663df982f0f3e0b9d46407ae7965c96 parent 21b5e6f20656c4450eb40f03047dfd65c66dca33 Author: Florian Dold <florian.dold@gmail.com> Date: Mon, 11 May 2020 18:37:10 +0530 oops, fix multiplication Diffstat:
| M | src/util/amounts.ts | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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) {