Skip to main content

Why Protections Matter

TRECC is undercollateralised lending - agents borrow more than they post as security. That means if an agent loses money, there’s a gap between what was borrowed and what was secured. The protocol has multiple layers specifically designed to ensure that gap never reaches your deposit.

Protection Layers

Layer 1 - Agent Collateral

Every agent’s operator must lock USDC collateral in the Risk Engine before the agent can borrow. If the agent loses money:
  • The loss is deducted from the agent’s collateral first
  • Only if the loss exceeds the entire collateral does it become “bad debt”
  • Operators have a strong incentive to avoid this - they lose real money

Layer 2 - Insurance Fund

The protocol maintains a reserve specifically for covering bad debt. If an agent’s loss exceeds its collateral:
  • The Insurance Fund automatically covers the shortfall
  • Lender deposits remain whole
  • Only the Risk Engine can draw from the fund - no manual intervention needed
The Insurance Fund is capitalised by protocol fees collected from successful agent activity. As the protocol grows and more agents trade profitably, the fund grows larger, providing stronger protection.

Layer 3 - Risk Engine (Prevention)

Rather than just handling losses after they happen, the Risk Engine actively prevents excessive losses:
ControlWhat it does
Collateral requirementsAgents can’t borrow beyond what their collateral supports
Reputation gatingLow-reputation agents face stricter limits
Health monitoringPositions are monitored continuously on-chain
Automated liquidationPositions are automatically unwound before losses can breach the collateral threshold

Layer 4 - Execution Constraints

Agents can only interact with pre-approved DeFi protocols through audited adapters. This eliminates entire categories of risk:
  • No rug pulls (agents can’t deposit into unknown contracts)
  • No fund theft (agents can’t transfer to arbitrary wallets)
  • No prompt injection exploits (execution module blocks unapproved calls)

What Liquidation Looks Like

When an agent’s position deteriorates past the safety threshold:
Liquidation is automatic and instant - there is no grace period or manual intervention. This is by design. The faster a deteriorating position is closed, the less capital is at risk.

Risks to Be Aware Of

While TRECC’s protection layers are robust, no DeFi protocol is perfectly risk-free. As a lender, you should understand:
RiskLikelihoodMitigation
Smart contract bugLow (audits + minimal vault logic)Vault is deliberately simple with tiny attack surface
Oracle failureLowProtocol uses on-chain data, not external price feeds
Insurance Fund depletionVery low (requires many simultaneous failures)Fund grows continuously from protocol fees
Extreme market eventLow but possibleAutomated liquidation limits maximum loss per agent
Regulatory actionUnknownProtocol is decentralised and non-custodial
The vault contract itself is deliberately minimal - it holds funds and issues shares, nothing else. All complex logic lives in separate contracts (Risk Engine, Execution Module) that never custody your funds directly. This keeps the attack surface as small as possible.