← All projects
FIELD STUDY 02 / Fintech

TreasuryFlow/02

Every payment needs a paper trail.

Local-chain project + browser simulationGitHub Open demo
HOW THIS WAS BUILT

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.

TRY IT WITH CONTEXT

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 ↗
PROJECT PREVIEW / LANDING PAGE

Trust is a
process.

TreasuryFlow landing page preview
01 / THE QUESTION

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.

02 / EXPLORE THE LOGIC

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.

INTERACTIVE FIELD STUDY / AUTHORIZATION
0/2required approvals
6,000 mUSD
01Request02Approve03Settle04Reconcile

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.
03 / INSIDE THE SYSTEM

From interface
to infrastructure.

ReactTypeScriptJavaSpring BootPostgreSQLSolidityethers.jsGanacheCloudflare D1 / R2
  1. 01
    Reactrequest and approval interface
  2. 02
    Spring Bootworkflow and idempotency
  3. 03
    PostgreSQLapplication ledger
  4. 04
    Solidity + 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.

04 / IMPLEMENTED IN THE REPOSITORY
01

Idempotent requests and threshold-based approval policies.

02

Local Solidity settlement with due-date checks and daily limits.

03

Reconciliation against chain events for interrupted settlements.

04

A separate hosted company workspace with roles, invoices, manual payment records and audit history.

05 / THE HARD PART

Where correctness matters.

A transaction may settle before the application records its result. Event-based reconciliation restores the ledger without blindly paying again.

06 / DESIGN TAKEAWAY

What the implementation teaches.

Financial software needs explicit state transitions and recovery paths. Correctness includes what happens after a partial failure.

CONTINUE EXPLORING

Next field study: Argus AI

↗
CYBER RONIN / MISSION INDEX
⌘ / Ctrl K to open · Esc to close