Context
Lenders need clear risk assessment per pool to make informed capital allocation decisions.
Current Limitation/Problem
No risk scoring exists. Users must manually research pool parameters and asset risk profiles.
Expected Outcome
A risk scoring framework that evaluates pool health, asset volatility, oracle quality, and historical performance to produce real-time risk ratings.
Acceptance Criteria
- Define risk factors: asset volatility, oracle deviation, pool utilization, liquidation history
- Implement scoring algorithm with configurable weightings
- Produce letter-grade ratings (A+ through D-)
- Real-time score updates on each pool state change
- Historical risk score tracking for trend analysis
- Risk score breakdown: contribution of each factor
- Dashboard: pool risk comparison, rating distribution, historic trends
Technical Scope
contracts/lending-pool/src/risk.rs - on-chain risk scoring
backend/src/services/risk/ - scoring service
- Prisma:
PoolRiskScore, RiskFactorHistory models
- Frontend: risk score display and comparison UI
- Edge cases: new pools with no history, flash loan impact on scores
Context
Lenders need clear risk assessment per pool to make informed capital allocation decisions.
Current Limitation/Problem
No risk scoring exists. Users must manually research pool parameters and asset risk profiles.
Expected Outcome
A risk scoring framework that evaluates pool health, asset volatility, oracle quality, and historical performance to produce real-time risk ratings.
Acceptance Criteria
Technical Scope
contracts/lending-pool/src/risk.rs- on-chain risk scoringbackend/src/services/risk/- scoring servicePoolRiskScore,RiskFactorHistorymodels