fix to decimals

This commit is contained in:
Finn 2024-02-23 11:47:32 +00:00
parent 3c82a0b439
commit 578f9ab1f7
1 changed files with 3 additions and 3 deletions

View File

@ -173,16 +173,16 @@ const PositionItem = ({
<div>
<p className="mb-1 text-th-fgd-4">Position Size</p>
<span className="text-xl font-bold text-th-fgd-1">
<FormatNumericValue value={stakeBalance * bank?.uiPrice} decimals={3} />{' '}
<FormatNumericValue value={stakeBalance * bank?.uiPrice} decimals={2} />{' '}
{'USDC'}
{' '}
<span className='text-s' style={{ color: pnl >= 0 ? 'lightgreen' : 'red' }}>
(<FormatNumericValue value={pnl} decimals={3} />)
(<FormatNumericValue roundUp={true} value={pnl} decimals={2} />)
</span>
</span>
{bank.name != 'USDC' ?
<div className="text-m font-bold text-th-fgd-1">
<FormatNumericValue value={stakeBalance} decimals={3} />{' '}
<FormatNumericValue roundUp={true} value={stakeBalance} decimals={3} />{' '}
{formatTokenSymbol(bank.name)}
</div>
: