This commit is contained in:
2026-06-06 16:55:48 +03:00
parent 8487ac5ca0
commit 0b2425f506

View File

@@ -4,12 +4,20 @@ import styles from './LegalConverterPage.module.css'
const MIN_ORDER = 500_000 const MIN_ORDER = 500_000
// Тестовые значения: чем дольше пользователь готов ждать, тем ниже комиссия сервиса. // Чем дольше пользователь готов ждать, тем ниже комиссия сервиса.
const TERM_OPTIONS = [ const TERM_OPTIONS = [
{ days: 1, rate: 0.05 }, { days: 3, rate: 0.05 },
{ days: 3, rate: 0.035 }, { days: 4, rate: 0.04636 },
{ days: 7, rate: 0.02 }, { days: 5, rate: 0.04273 },
{ days: 14, rate: 0.012 }, { days: 6, rate: 0.03909 },
{ days: 7, rate: 0.03545 },
{ days: 8, rate: 0.03182 },
{ days: 9, rate: 0.02818 },
{ days: 10, rate: 0.02455 },
{ days: 11, rate: 0.02091 },
{ days: 12, rate: 0.01727 },
{ days: 13, rate: 0.01364 },
{ days: 14, rate: 0.01 },
] as const ] as const
const ru = (n: number) => n.toLocaleString('ru-RU', { maximumFractionDigits: 0 }) const ru = (n: number) => n.toLocaleString('ru-RU', { maximumFractionDigits: 0 })
@@ -77,7 +85,7 @@ export function LegalConverterPage() {
onChange={setDays} onChange={setDays}
options={TERM_OPTIONS.map((o) => ({ options={TERM_OPTIONS.map((o) => ({
value: o.days, value: o.days,
label: `${dayLabel(o.days)} — комиссия ${(o.rate * 100).toFixed(1)} %`, label: `${dayLabel(o.days)} — комиссия ${(o.rate * 100).toFixed(3)} %`,
}))} }))}
/> />
@@ -113,7 +121,7 @@ export function LegalConverterPage() {
<div className={styles.infoRow}> <div className={styles.infoRow}>
<span className={styles.infoLabel}>Ставка комиссии</span> <span className={styles.infoLabel}>Ставка комиссии</span>
<span className={styles.infoValue}>{(rate * 100).toFixed(1)} %</span> <span className={styles.infoValue}>{(rate * 100).toFixed(3)} %</span>
</div> </div>
<div className={styles.infoRow}> <div className={styles.infoRow}>