Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(price-printer): do not panic during amount calculation math.
Currently if the users substract too much, it panics due to a BigUint error. This commit makes it catch errors during BigUint sub and default to 1 if the users tries to substract too much.
- Loading branch information