Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
fix: minor corrections for the submit order
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyboxer committed Jul 28, 2020
1 parent 6e60bcc commit ad87736
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ const CreateOrderCard: FC<CreateOrderCardProps> = ({

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(`${baseAmountNum}`),
executionFee,
{
value: weiDeposit,
Expand All @@ -423,9 +423,9 @@ const CreateOrderCard: FC<CreateOrderCardProps> = ({

tx = await limitOrdersContractWithSigner.newOrder(
bytesFormatter(quote.name),
utils.parseEther(quoteAmount.toString()),
utils.parseEther(`${quoteAmount}`),
bytesFormatter(base.name),
utils.parseEther(`${limitPriceNum * baseAmountNum}`),
utils.parseEther(`${baseAmountNum}`),
executionFee,
{
value: weiDeposit,
Expand Down

0 comments on commit ad87736

Please sign in to comment.