From 4eb6e09bd49f8d78b9c628c9855cd8ef2eb88020 Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:04:13 -0500 Subject: [PATCH] fix(trading): condense deal ticket & market info price range snags (#3012) --- .../app/components/markets/market-details.tsx | 5 +- libs/assets/src/lib/asset-details-dialog.tsx | 2 +- .../deal-ticket/deal-ticket-button.tsx | 2 +- .../deal-ticket/deal-ticket-fee-details.tsx | 2 +- .../deal-ticket/deal-ticket-limit-amount.tsx | 2 +- .../deal-ticket/deal-ticket-market-amount.tsx | 4 +- .../components/deal-ticket/deal-ticket.tsx | 12 +- .../components/market-info/info-market.tsx | 110 ++++++++++-------- .../src/lib/format/number.spec.tsx | 18 +++ .../src/components/form-group/form-group.tsx | 2 +- .../key-value-table/key-value-table.tsx | 6 +- 11 files changed, 96 insertions(+), 69 deletions(-) diff --git a/apps/explorer/src/app/components/markets/market-details.tsx b/apps/explorer/src/app/components/markets/market-details.tsx index 405f354a9..2b642a6d3 100644 --- a/apps/explorer/src/app/components/markets/market-details.tsx +++ b/apps/explorer/src/app/components/markets/market-details.tsx @@ -184,9 +184,8 @@ export const MarketDetails = ({ content: ( <>

- {`For liquidity orders count towards a commitment they have to be - within either the liquidity or price monitoring bounds (whichever is - tighter).`} + {`For liquidity orders to count towards a commitment, they must be + within the liquidity monitoring bounds.`}

{`The liquidity price range is a ${liquidityPriceRange} difference from the mid diff --git a/libs/assets/src/lib/asset-details-dialog.tsx b/libs/assets/src/lib/asset-details-dialog.tsx index 4c581df8f..a45789b3a 100644 --- a/libs/assets/src/lib/asset-details-dialog.tsx +++ b/libs/assets/src/lib/asset-details-dialog.tsx @@ -98,7 +98,7 @@ export const AssetDetailsDialog = ({ }} > {content} -

+

{t( 'There is 1 unit of the settlement asset (%s) to every 1 quote unit.', [assetSymbol] diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx index 5960612bd..1eae3d5a6 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx @@ -12,7 +12,7 @@ export const DealTicketButton = ({ disabled, variant }: Props) => { const { pubKey, isReadOnly } = useVegaWallet(); const isDisabled = !pubKey || isReadOnly || disabled; return ( -

+