Commit 5e23501d authored by lynn's avatar lynn Committed by GitHub

fix: more precise numbers in swap exchange price (#5541)

fix rounding
parent 6bc98363
...@@ -63,7 +63,7 @@ export default function TradePrice({ price, showInverted, setShowInverted }: Tra ...@@ -63,7 +63,7 @@ export default function TradePrice({ price, showInverted, setShowInverted }: Tra
</Text>{' '} </Text>{' '}
{usdcPrice && ( {usdcPrice && (
<ThemedText.DeprecatedDarkGray> <ThemedText.DeprecatedDarkGray>
<Trans>({formatDollar({ num: priceToPreciseFloat(usdcPrice) })})</Trans> <Trans>({formatDollar({ num: priceToPreciseFloat(usdcPrice), isPrice: true })})</Trans>
</ThemedText.DeprecatedDarkGray> </ThemedText.DeprecatedDarkGray>
)} )}
</StyledPriceContainer> </StyledPriceContainer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment