From ca137a316382b8c83ad5b1ca20ddd4c2a98108e0 Mon Sep 17 00:00:00 2001 From: Evgeny Boxer Date: Tue, 28 Jul 2020 22:00:33 +1000 Subject: [PATCH] fix: minor corrections for the submit order --- .../Trade/components/CreateOrderCard/CreateOrderCard.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Trade/components/CreateOrderCard/CreateOrderCard.tsx b/src/pages/Trade/components/CreateOrderCard/CreateOrderCard.tsx index 055e85f1..03b9917b 100644 --- a/src/pages/Trade/components/CreateOrderCard/CreateOrderCard.tsx +++ b/src/pages/Trade/components/CreateOrderCard/CreateOrderCard.tsx @@ -404,9 +404,9 @@ const CreateOrderCard: FC = ({ const gasEstimate = await limitOrdersContractWithSigner.estimate.newOrder( bytesFormatter(quote.name), - utils.parseEther(quoteAmount.toString()), + utils.parseEther(quoteAmount), bytesFormatter(base.name), - utils.parseEther(`${limitPriceNum * baseAmountNum}`), + utils.parseEther(baseAmount), executionFee, { value: weiDeposit, @@ -423,9 +423,9 @@ const CreateOrderCard: FC = ({ tx = await limitOrdersContractWithSigner.newOrder( bytesFormatter(quote.name), - utils.parseEther(quoteAmount.toString()), + utils.parseEther(quoteAmount), bytesFormatter(base.name), - utils.parseEther(`${limitPriceNum * baseAmountNum}`), + utils.parseEther(baseAmount), executionFee, { value: weiDeposit,