Skip to content

Commit

Permalink
fix: token price formatting in tradebox
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Aug 8, 2024
1 parent 9040c97 commit aaba2ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -174,7 +174,7 @@ export function generateStats(
<>
<dl className="w-full grid grid-cols-2 gap-1.5 text-xs text-muted-foreground">
<dt>Entry Price</dt>
<dd className="text-primary text-right">{usdFormatter.format(tokenBank.info.state.price)}</dd>
<dd className="text-primary text-right">{tokenPriceFormatter.format(tokenBank.info.state.price)}</dd>
{(currentLiqPrice || simulatedLiqPrice) && (
<>
<dt>Liquidation Price</dt>
Expand Down

0 comments on commit aaba2ed

Please sign in to comment.