TreasuryFlow/02
Every payment needs a paper trail.
AI-assisted, and still learning.
I used AI coding tools extensively to build this project. I’m working through the implementation so I can explain the decisions, debug problems and make changes with more independence.
Educational local EVM system. The linked browser demo simulates payments. The separate company workspace records payments made elsewhere. No real funds are moved.
Inspect the implementation ↗Trust is a
process.

Exploring programmable payments, approval policies and recoverable settlement.
A payment request, its approval and its ledger entry can drift apart. Retrying an interrupted workflow should never create a second payment.
Model the complete lifecycle: request, authorize, settle and reconcile. Make policy and recovery explicit rather than treating settlement as a single button.
Who can authorize a payment?
Adjust the model. See the relationship. This original explanatory study simplifies a concept in the project; it is not the production application.
6,000 mUSD
2 more approval(s) required.
Educational state walkthrough. One manager up to 5,000 mUSD; two above. Assumes no earlier payments today; no wallet, funds or network requests.From interface
to infrastructure.
- 01Reactrequest and approval interface
- 02Spring Bootworkflow and idempotency
- 03PostgreSQLapplication ledger
- 04Solidity + Ganachelocal settlement
The separate hosted company workspace uses Cloudflare D1/R2 for manual payment records and protected invoice attachments. It is distinct from this local-chain architecture.
Idempotent requests and threshold-based approval policies.
Local Solidity settlement with due-date checks and daily limits.
Reconciliation against chain events for interrupted settlements.
A separate hosted company workspace with roles, invoices, manual payment records and audit history.
Where correctness matters.
A transaction may settle before the application records its result. Event-based reconciliation restores the ledger without blindly paying again.
What the implementation teaches.
Financial software needs explicit state transitions and recovery paths. Correctness includes what happens after a partial failure.