How Torq works
The operating loop for governed facilities, vault commitments, NAV and Live-Feed visibility, rate policy, and workspace actions.
Torq works because it separates the jobs that pool-first markets and isolated-market systems often blend together.
Capital commitment, borrower draw, valuation truth, policy change, wallet execution, indexing, and workspace visibility are distinct loops.
The operating sequence
Operating loop
Every action travels through policy, execution, and projected truth
Vault authority and policy
Borrower draw relationship
NAV, Live-Feed, IRM, roles
Nonce, epoch, oracle checks
Indexer and Postgres state
Every workspace agrees
Define facility
-> attach market relationship
-> govern oracle, NAV, Live-Feed, rate, and permissions
-> borrower draws under checks
-> chain event is indexed
-> projector updates canonical state
-> every workspace reads the same truthTorq coordinates tokenized credit operations instead of only matching supply and borrow demand.
What is different about the operating loop
Aave-style pool action paths commonly begin with supplying to or borrowing from a liquidity pool. Morpho-style vault action paths commonly emphasize curated allocation and caps. Torq's operating sequence starts earlier and ends later: define the facility, attach the market execution component, check valuation and permissions, execute the action, then verify the projected product state.
The user is not only asking "can I transact?" The user is also asking "is this the right governed facility, is the data fresh, am I allowed to act, and did every workspace update after the write?"
Facility setup loop: define the facility before capital moves
- A vault represents a bounded facility commitment.
- Authority, asset scope, market relationship, and operating policy are made explicit.
- NAV or Live-Feed visibility requirements are attached to the facility.
- The operator workspace presents the facility as an accountable operating surface.
A vault is not a vague destination for capital. It is a governed boundary with responsibilities.
Policy control loop: rates and oracles are governed decisions
- Interest-rate and oracle policy are treated as operating fields.
- Changes are prepared through explicit action paths.
- Authority is checked before execution.
- The system records and refreshes the visible result through the persisted read model.
This is why rate policy is part of the product model. It changes borrower incentives, manager expectations, and operating review.
Data projection loop: visible truth is produced, not guessed
Truth path
Shared protocol state has one route into the product
V2 events and state
Ingestion and snapshots
Domain-owned derivation
Canonical app truth
Served read model
Role-specific view
- Indexers ingest chain events and snapshots.
- Projectors derive deterministic current-state rows.
- Postgres stores canonical application truth.
- GraphQL/API serves the persisted read model.
- Frontend pages render persisted state with freshness metadata.
This loop is what lets Torq tell the difference between transaction success and visible protocol state.
Operator execution loop: wallet success is not the finish line
- The operator workspace reads namespace-aware persisted state.
- The operator selects a mutation flow.
- The app builds a wallet execution plan.
- After write success, indexing is triggered immediately.
- The workspace refreshes from persisted state.
- The UI only shows completion when indexed truth is visible.
Product safety loop: actions have preconditions
Torq actions are not available just because a button exists. The product checks the relevant preconditions before execution and refreshes the displayed state after execution.
Examples:
- deposits depend on wallet, balance, allowance, vault capacity, and vault state
- tranche deposits depend on the active tranche configuration and tranche capacity
- borrows depend on collateral, oracle state, available partition liquidity, route preparation, and market state
- collateral withdrawals depend on borrower health after withdrawal
- operator actions depend on the connected role, permission, wallet, and target entity
This keeps Torq understandable as a product: users can see why an action is available, blocked, pending, or complete.