Case study
ProjectsLedgerSavings goals add and withdraw without going negative

Savings goals add and withdraw without going negative
Ledger
Production
Stack
- Next.js
- React
- TypeScript
- Tailwind
- Zod
- TanStack Form
- TanStack Query
- TanStack Pacer
- TanStack Table
- TanStack Charts
- Postgres
- Motion
Summary
Pots are named savings goals with a target, current amount, and add or withdraw actions.
Result
Withdrawals cannot take a pot below zero. Each pot belongs only to that account.
Lesson
A pot is a constraint on that person’s store, not a label on a demo card.