diff --git a/src/controllers/orders.controller.ts b/src/controllers/orders.controller.ts index 518318d..6d75137 100644 --- a/src/controllers/orders.controller.ts +++ b/src/controllers/orders.controller.ts @@ -65,7 +65,9 @@ class OrdersController { } const totalDecimal = priceDecimal.mul(amountDecimal); - const total = totalDecimal.toFixed(); + const total = totalDecimal + .toDecimalPlaces(secondCurrencyDP, Decimal.ROUND_DOWN) + .toFixed(); const isPriceValid = validateTokensInput(price, secondCurrencyDP).valid; const isAmountValid = validateTokensInput(amount, firstCurrencyDP).valid;