oops, fix multiplication
This commit is contained in:
parent
21b5e6f206
commit
0240096cf6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user