Phase 1 is intentionally simple: fewer features, fewer failure modes.
User funds live in Morpho on Ethereum and are never touched by Vetorica contracts or servers. The credit token lives on Robinhood Chain and represents no claim on the underlying assets.
VetoricaCredit is a non-transferable ERC-20 with two privileged functions: mintFromYield (REPORTER_ROLE, idempotent per yieldId) and spendFrom (OPERATOR_ROLE, idempotent per spendId). There is no admin mint, no redeem, and no transfer path, approvals and transfers revert.
Minting is deduplicated both on-chain (processedYields) and in the backend (yield_reports + deterministic yieldIds). Spends are reserved transactionally, then confirmed on-chain, a lost receipt can't double-charge or permanently block an agent.
Mutations require a bearer token obtained by signing a one-time nonce with the owner's wallet. Agents authenticate with a per-agent API key (only its hash is stored) via the X-Agent-Key header.
DEFAULT_ADMIN_ROLE can grant reporter/operator roles, it indirectly controls minting. Multisig/timelock admin is a Phase-2 hardening item.Source and tests: github.com/tobiazlincoln/Verotica/contracts →