diff --git a/components/trade/PerpPositions.tsx b/components/trade/PerpPositions.tsx index 0959c4f2..149af0f6 100644 --- a/components/trade/PerpPositions.tsx +++ b/components/trade/PerpPositions.tsx @@ -6,7 +6,7 @@ import Decimal from 'decimal.js' import useMangoGroup from 'hooks/useMangoGroup' import useSelectedMarket from 'hooks/useSelectedMarket' import { useTranslation } from 'next-i18next' -import { numberFormat } from 'utils/numbers' +import { getDecimalCount, numberFormat } from 'utils/numbers' import { calculateMarketPrice } from 'utils/tradeForm' import MarketLogos from './MarketLogos' import PerpSideBadge from './PerpSideBadge' @@ -86,10 +86,14 @@ const PerpPositions = () => { handlePositionClick(basePosition)} > - {Math.abs(basePosition)} + {Math.abs(basePosition).toFixed( + getDecimalCount(market.minOrderSize) + )} ) : ( - Math.abs(basePosition) + Math.abs(basePosition).toFixed( + getDecimalCount(market.minOrderSize) + ) )}

diff --git a/public/locales/en/trade.json b/public/locales/en/trade.json index 8636766e..effa357a 100644 --- a/public/locales/en/trade.json +++ b/public/locales/en/trade.json @@ -5,6 +5,7 @@ "cancel-order-error": "Failed to cancel order", "connect-orders": "Connect to view your open orders", "connect-unsettled": "Connect to view your unsettled trades", + "entry-price": "Entry Price", "grouping": "Grouping", "hide-asks": "Hide Asks", "hide-bids": "Hide Bids", diff --git a/public/locales/es/trade.json b/public/locales/es/trade.json index 1be12422..9ab58546 100644 --- a/public/locales/es/trade.json +++ b/public/locales/es/trade.json @@ -5,6 +5,7 @@ "cancel-order-error": "Failed to cancel order", "connect-orders": "Connect to view your open orders", "connect-unsettled": "Connect to view your unsettled trades", + "entry-price": "Entry Price", "grouping": "Grouping", "hide-asks": "Hide Asks", "hide-bids": "Hide Bids", diff --git a/public/locales/ru/trade.json b/public/locales/ru/trade.json index 1be12422..9ab58546 100644 --- a/public/locales/ru/trade.json +++ b/public/locales/ru/trade.json @@ -5,6 +5,7 @@ "cancel-order-error": "Failed to cancel order", "connect-orders": "Connect to view your open orders", "connect-unsettled": "Connect to view your unsettled trades", + "entry-price": "Entry Price", "grouping": "Grouping", "hide-asks": "Hide Asks", "hide-bids": "Hide Bids", diff --git a/public/locales/zh/trade.json b/public/locales/zh/trade.json index 1be12422..9ab58546 100644 --- a/public/locales/zh/trade.json +++ b/public/locales/zh/trade.json @@ -5,6 +5,7 @@ "cancel-order-error": "Failed to cancel order", "connect-orders": "Connect to view your open orders", "connect-unsettled": "Connect to view your unsettled trades", + "entry-price": "Entry Price", "grouping": "Grouping", "hide-asks": "Hide Asks", "hide-bids": "Hide Bids", diff --git a/public/locales/zh_tw/trade.json b/public/locales/zh_tw/trade.json index 1be12422..9ab58546 100644 --- a/public/locales/zh_tw/trade.json +++ b/public/locales/zh_tw/trade.json @@ -5,6 +5,7 @@ "cancel-order-error": "Failed to cancel order", "connect-orders": "Connect to view your open orders", "connect-unsettled": "Connect to view your unsettled trades", + "entry-price": "Entry Price", "grouping": "Grouping", "hide-asks": "Hide Asks", "hide-bids": "Hide Bids",