Accounting
Torq accounting explains where value is, who owns the state, which movements are allowed, and how the product reconciles after a write.
The active accounting model is V2 only. It follows the same truth path as the rest of the product:
Chain -> Indexer -> Projector -> Postgres -> API -> FrontendAccounting flow
Value movement is tracked by custody, capacity, debt, fees, redemption, and recovery state
Investor assets enter the vault boundary.
Vault capacity becomes available to approved markets.
Borrower draws from an attached credit facility.
Principal and fee components return through the market path.
Exit requests and claims move through queue-aware settlement.
Liquidation or loss recovery resolves stressed state.
Accounting context
Aave-style accounting often centers on pool supply, borrow balances, collateral, interest, and liquidations. Morpho-style vault accounting also includes vault assets, adapters, caps, allocation, and reporting. Torq accounting is organized around governed facilities: vault custody, market capacity, borrower partition debt, collateral, fee realization, redemption queues, tranches, recovery, and post-write reconciliation.
Accounting model
Torq accounting is not a spreadsheet attached to the app. It is a set of invariants and projected records that the app must reread before calling work complete.
State ownership
Reconciliation
Reconciliation means comparing the expected accounting result with the observed projected result.
The minimum product standard is:
- Transaction or persisted write completes.
- Affected entity is indexed.
- Projector updates current-state rows.
- API returns the updated persisted state.
- Workspace displays the updated state.
- Any mismatch remains visible as pending, stale, blocked, or failed.
Invariants
Value flows
Failure handling
For reviewers
Accounting evidence is in docs/accounting/accounting-inventory.md,
docs/accounting/accounting-invariants.md, docs/accounting/accounting-inventory.json,
docs/accounting/transition-mutation-matrix.json, docs/accounting/replay-and-reconciliation-rules.json,
and the current contract inventory.