fix(wallet): stop double-deducting balance on outgoing payments
padreug
created branch fix/wallet-double-deduct-balance in aiolabs/webapp
2026-06-16 22:04:09 +00:00
add-account makes two serialized Fava round-trips (add_account, then get_all_accounts)
Cleanup: single source of truth for account roots; drop no-op per-test rate-limit reset
Centralize account-name validation into a shared module; apply to all creation paths
Escape Beancount strings at the add_account writer boundary, not just the metadata-value branch
Re-adding an existing-but-unsynced account returns 409 before the DB sync, leaving it un-mirrored
Per-user accounts still currency-constrained to EUR/SATS/USD — CAD/GBP/JPY bean-check errors persist
add_account duplicate-detection regex isn't anchored → false 409s and silent double-writes