How 0xganadhish/tare works
Tare combines a public Monad yield-risk feed with wallet-facing tools and a permissionless Guardian. The main workflow is vault monitoring, Jev judgment, onchain verdict publication, optional user-protective exits, and delayed public grading through the Ledger. The graph includes the documented product branches—Advisor, pool exploration, position scanning and watching, Pulse, token launches, and admin controls. Several backend and contract relationships come from the README; their implementation files are not in the supplied excerpts or tree, so those links are documented rather than source-verified.
Main entry points: watcher.ts Vault watcher · page.tsx Market explorer · route.ts Advice endpoint · AdvisorClient.tsx Yield Advisor
Components 25
App and user tools
- Market explorer
app/(app)/app/explore/page.tsx - Yield field chart
components/field/FieldChart.tsx - Yield Advisor
components/advisor/AdvisorClient.tsx - Advice endpoint
app/api/advise/route.ts - Position scan
app/(app)/app/scan/[address]/page.tsx - Position Watch
app/(app)/app/watch/page.tsx - Wallet and deposits
components/wallet/WalletPane.tsx - Token launches
components/launch/LaunchPage.tsx - Risk Pulse
app/(app)/app/pulse/page.tsx - Admin controls
components/admin/AdminPanel.tsx - Network selection
components/network/NetworkProvider.tsx
Risk and monitoring
- Jev judgment
lib/judge/index.ts - Intent parsing
lib/intent.ts - Vault watcher
backend/src/watcher.ts - Vault flow indexer
indexer/src/flows.ts - Exit operator
worker/index.ts
Onchain protection
- Tare risk oracle
- Guardian exits
Public data and scoring
- Pool market API
lib/api.ts - Verdict sampling and grading
backend/src/crons.ts - Public backend API
backend/src/api.ts - Public Ledger
app/(app)/app/ledger/page.tsx - Brier score
shared/score.ts - Verdict state archive
Other components
- Wallet user
Connections 28
- Wallet user → Market explorer: explores pools
README.md - Market explorer → Yield field chart: renders market
app/(app)/app/explore/page.tsx - Market explorer → Pool market API: loads pools
- Wallet user → Yield Advisor: requests advice
README.md - Yield Advisor → Advice endpoint: submits intent
- Advice endpoint → Pool market API: reads market
app/api/advise/route.ts - Advice endpoint → Yield Advisor: returns recommendations
- Wallet user → Position scan: scans position
README.md - Wallet user → Position Watch: views positions
README.md - Position Watch → Public backend API: loads events
app/(app)/app/watch/page.tsx - Wallet user → Wallet and deposits: deposits funds
README.md - Wallet and deposits → Guardian exits: sets exit rule
README.md - Wallet user → Token launches: creates token
- Wallet user → Risk Pulse: views risk trends
- Wallet user → Admin controls: manages system
- Network selection → Wallet and deposits: configures network
components/wallet/WalletPane.tsx - Vault watcher → Vault flow indexer: reads vault flows
README.md - Vault watcher → Jev judgment: judges positions
README.md - Vault watcher → Tare risk oracle: posts verdict
README.md - Jev judgment → Intent parsing: uses typed answers
lib/judge/index.ts - Tare risk oracle → Guardian exits: supplies risk verdict
README.md - Guardian exits → Wallet user: redeems to owner
README.md - Exit operator → Guardian exits: submits exit
README.md - Verdict sampling and grading → Tare risk oracle: samples and resolves
README.md - Verdict sampling and grading → Verdict state archive: archives shown state
README.md - Public backend API → Tare risk oracle: serves verdicts
- Public Ledger → Public backend API: loads ledger data
app/(app)/app/ledger/page.tsx - Public Ledger → Brier score: shows score
app/(app)/app/ledger/page.tsx