17.05.2026 funny
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Token } from '../model/useSwapForm'
|
||||
import { truncateDecimals } from '@shared/lib/utils/truncateDecimals'
|
||||
import { TokenSelect } from './TokenSelect'
|
||||
import styles from './SwapCard.module.css'
|
||||
|
||||
@@ -105,7 +106,7 @@ export function SwapCard({
|
||||
<rect x="2" y="6" width="20" height="14" rx="3" />
|
||||
<path d="M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2" />
|
||||
</svg>
|
||||
{token.balance.toFixed(mode === 'from' ? 3 : 2)}
|
||||
{truncateDecimals(token.balance, 8)}
|
||||
{mode === 'from' && onSetPercent && (
|
||||
<button className={styles.max} onClick={() => onSetPercent(100)}>МАКС</button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user