There was an error while loading. Please reload this page.
1 parent 8f8c506 commit d5b32feCopy full SHA for d5b32fe
1 file changed
src/controllers/orders.controller.ts
@@ -65,7 +65,9 @@ class OrdersController {
65
}
66
67
const totalDecimal = priceDecimal.mul(amountDecimal);
68
- const total = totalDecimal.toFixed();
+ const total = totalDecimal
69
+ .toDecimalPlaces(secondCurrencyDP, Decimal.ROUND_DOWN)
70
+ .toFixed();
71
72
const isPriceValid = validateTokensInput(price, secondCurrencyDP).valid;
73
const isAmountValid = validateTokensInput(amount, firstCurrencyDP).valid;
0 commit comments