Skip to content
ClearClear
Docs
Protocol/Introduction

Protocol

The Clear Protocol: the contracts under contracts/. Deployed addresses are in the root README.md (Deployed addresses) and recorded in deployments/.

2 min readUpdated View source

The contract design explains the model behind them: StableCredit as a ledger of obligations rather than a pot of money, the ESA (Equity Savings Account) vault, the lending pool, BurnerBonds, offers, and where the contracts meet the app and the card issuer.

How each part works:

CLRUSD and its redemption lock, the ESADepositVault, gasless savings intents, link-based send (ClaimEscrow), the cross-chain pool
The ledger, the issuers — revolving tiers, term plans, offers — carry, collateral and the ceiling, default and liquidation, access
Merchant terms, how a positive balance becomes USDC, who fronts the cash when it is due, how it and its carry come back, the LendingPool
The AssurancePool — primary, buffer and excess, RTD, lost debt, lending as a last resort — and pricing
BurnerBonds, the discount curve, BondVault and its backstops, seniority, bonds as collateral

And the reasoning and reference behind them:

The design and the reasons for it. For exact behaviour, the pages above are the reference
How refunds and repayments route through the PayoutPool
TokenRegistry in detail — the presence-based whitelist, and what it means for onboarding a token
The contract reference: one page per deployed contract — address on each network, every function and who can call it, events, errors. Generated from deployments/ and checked in CI

Deploying and running them is in Operators; who holds the roles is in Governance.

The Deed track

T-Deeds, validators, subdivision and fractionalization — a named subsystem of the protocol, ten of its forty-four production contracts. It keeps its own names — DeedNFT, Validator, the T-Deed token — because those are on-chain identifiers. For a plain-language introduction, see Clear Deeds and real-world assets.

High-level system design
Contract architecture and relationships
How validation works, and the validator lifecycle
The asset lifecycle, minting through fractionalization
ERC-1155 subdivision
ERC-20 fractional shares
Trait-aware metadata, documents and features

What a validator checks, per asset type — land, vehicles, estates, commercial equipment.

Each page lists the trait keys the contracts read, and the example metadata for that type in test/templates. Known limitation: the templates use display labels (such as "Parcel Number") where the contracts read camelCase keys (parcelNumber), so a trait set under a template's label is not read.

Who decides this
GovernanceHow the co-op decides