From aaba2eda479aba5683d57f7f79960223f6893368 Mon Sep 17 00:00:00 2001 From: chambaz Date: Thu, 8 Aug 2024 14:33:17 -0400 Subject: [PATCH] fix: token price formatting in tradebox --- .../src/components/common/TradingBox/tradingBox.utils.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/marginfi-v2-trading/src/components/common/TradingBox/tradingBox.utils.tsx b/apps/marginfi-v2-trading/src/components/common/TradingBox/tradingBox.utils.tsx index 7855398e58..443a0a31c4 100644 --- a/apps/marginfi-v2-trading/src/components/common/TradingBox/tradingBox.utils.tsx +++ b/apps/marginfi-v2-trading/src/components/common/TradingBox/tradingBox.utils.tsx @@ -7,7 +7,7 @@ import { SimulationResult, } from "@mrgnlabs/marginfi-client-v2"; import { AccountSummary, ExtendedBankInfo } from "@mrgnlabs/marginfi-v2-ui-state"; -import { Wallet, percentFormatter, usdFormatter } from "@mrgnlabs/mrgn-common"; +import { Wallet, percentFormatter, tokenPriceFormatter, usdFormatter } from "@mrgnlabs/mrgn-common"; import { DYNAMIC_SIMULATION_ERRORS, loopingBuilder, @@ -174,7 +174,7 @@ export function generateStats( <>
Entry Price
-
{usdFormatter.format(tokenBank.info.state.price)}
+
{tokenPriceFormatter.format(tokenBank.info.state.price)}
{(currentLiqPrice || simulatedLiqPrice) && ( <>
Liquidation Price