17.05.2026 funny

This commit is contained in:
2026-05-17 14:45:28 +03:00
parent 2d1c1654f9
commit 01d72f4885
6 changed files with 23 additions and 15 deletions

View File

@@ -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>
)}