fix 400 error on order creation
This commit is contained in:
parent
f8bcaacb63
commit
f241c79bc3
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue