Remove MPAT and MEMP fund references from pension module
All checks were successful
Deploy to VPS / deploy (push) Successful in 56s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-04-01 10:18:36 -06:00
parent 0923337fff
commit 22334c2129
3 changed files with 2 additions and 50 deletions

View File

@@ -40,7 +40,7 @@ import { ClipboardPaste } from 'lucide-react';
// ─── Types ────────────────────────────────────────────────────────────────────
type FundKey = 'FCL' | 'ROP' | 'MPAT' | 'MEMP' | 'VOL';
type FundKey = 'FCL' | 'ROP' | 'VOL';
interface FundDef {
key: FundKey;
@@ -75,7 +75,7 @@ interface TooltipEntry {
const CURRENT_AGE = 30;
const FUND_KEYS: FundKey[] = ['FCL', 'ROP', 'MPAT', 'MEMP', 'VOL'];
const FUND_KEYS: FundKey[] = ['FCL', 'ROP', 'VOL'];
const FUNDS_DEFAULT: Record<FundKey, FundDef> = {
FCL: {
@@ -102,30 +102,6 @@ const FUNDS_DEFAULT: Record<FundKey, FundDef> = {
withdrawalRule: 'Retirable a los 65 años',
defaultTargetAge: 65,
},
MPAT: {
key: 'MPAT',
name: 'MPAT',
fullName: 'Ministerio Patronal',
color: '#f59e0b',
startBalance: 300_000,
monthlyContribution: 200_000,
annualRate: 3.0,
isDividend: true,
withdrawalRule: 'Dividendos anuales en marzo',
defaultTargetAge: 65,
},
MEMP: {
key: 'MEMP',
name: 'MEMP',
fullName: 'Fondo del Empleado',
color: '#8b5cf6',
startBalance: 300_000,
monthlyContribution: 200_000,
annualRate: 3.0,
isDividend: true,
withdrawalRule: '₡100K deducción dos veces al mes · Dividendos en marzo',
defaultTargetAge: 65,
},
VOL: {
key: 'VOL',
name: 'VOL',
@@ -182,8 +158,6 @@ function buildChartFromSnapshots(snapshots: PensionSnapshot[]): ChartDataPoint[]
month: label,
FCL: values.FCL ?? 0,
ROP: values.ROP ?? 0,
MPAT: values.MPAT ?? 0,
MEMP: values.MEMP ?? 0,
VOL: values.VOL ?? 0,
} as ChartDataPoint;
});
@@ -271,8 +245,6 @@ export default function Pensions() {
const [projections, setProjections] = useState<Record<FundKey, ProjectionState>>({
FCL: { contribution: 150_000, rate: 7.5, targetAge: 35 },
ROP: { contribution: 120_000, rate: 6.0, targetAge: 65 },
MPAT: { contribution: 200_000, rate: 3.0, targetAge: 65 },
MEMP: { contribution: 200_000, rate: 3.0, targetAge: 65 },
VOL: { contribution: 400_000, rate: 8.0, targetAge: 57 },
});
const [uploadedFiles, setUploadedFiles] = useState<File[]>([]);