How jftochka/quid works
QU!D combines leveraged and prediction-market products across EVM and Solana with an oracle-based depeg/dispute process. The principal resolution flow assembles claims and evidence, dispatches them through the CRE oracle pipeline, and returns a verdict; a separate CRE workflow gathers price history for depeg analysis. The keeper monitors EVM positions and market lifecycles, while the Solana program handles prediction-market functionality and Pyth-backed pricing. README-described liquidity and court capabilities are represented at their enclosing product directories because their contract sources were not present in the supplied tree; frontend implementation was not sampled.
Main entry points: oracle-cre/main.go CRE handlers · my-workflow/main.go Depeg analysis · keeper.ts EVM keeper · pipeline.go Resolution pipeline
Components 17
Oracle resolution
- CRE handlers
keeper/oracle-cre/main.go - Resolution pipeline
keeper/oracle-cre/pipeline.go - Resolution verdict
keeper/oracle-cre/main.go - Depeg analysis
keeper/my-workflow/main.go - Evidence blob access
keeper/oracle-cre/storage.go
EVM products
- EVM markets and liquidity
evm/lib/aave-v3-origin - Court arbitration
evm/lib/aave-v3-origin - EVM keeper
keeper/keeper.ts
Solana markets
- Prediction markets
svm/programs/quid/src/etc.rs - Ticker and feed map
src/lib/tickers.ts - Pyth feed mapping
svm/programs/quid/src/etc.rs
Web and state
- Web application
src/app/page.tsx - Confidence API
src/app/api/confidences/route.ts - MongoDB
Other components
- Claim submitter
- Chainlink CRE
- Price vendors
Connections 12
- Claim submitter → CRE handlers: submits claim
- CRE handlers → Resolution pipeline: dispatches session
- Resolution pipeline → Resolution verdict: encodes result
- Chainlink CRE → Depeg analysis: triggers workflow
- Depeg analysis → Price vendors: fetches prices
- Depeg analysis → EVM markets and liquidity: writes verdict
- CRE handlers → Evidence blob access: downloads evidence
- EVM keeper → EVM markets and liquidity: monitors and calls
- EVM keeper → Court arbitration: tracks lifecycle
- Pyth feed mapping → Prediction markets: maps feed accounts
- Web application → Confidence API: requests confidences
- Confidence API → MongoDB: reads and writes