feat: Analytics module — portfolio earnings & advanced DeFi analytics (#229)#234
Open
GBOYEE wants to merge 2 commits into
Open
feat: Analytics module — portfolio earnings & advanced DeFi analytics (#229)#234GBOYEE wants to merge 2 commits into
GBOYEE wants to merge 2 commits into
Conversation
added 2 commits
June 21, 2026 11:17
## Smart Yield Router (features/automation) - YieldStrategy types with risk profiles, allocation targets, and router events - useYieldRouter hook: create strategies, add allocations, evaluate rebalancing - Simulate rebalancing with APY improvement and gas estimates - YieldRouter component: stats overview, strategy creation, recommendations ## Analytics Dashboard (features/analytics) - PositionSnapshot, PortfolioSummary, YieldBreakdown, RiskExposure types - usePortfolioAnalytics hook: filter positions, compute yield breakdown, risk scoring - AnalyticsDashboard component: filters, summary cards, best/worst performers - Yield by protocol breakdown, risk exposure analysis, performance trend chart Closes Neko-Protocol#230 Closes Neko-Protocol#229
|
Someone is attempting to deploy a commit to the Oppia Software Labs Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive Analytics module that provides users with a consolidated view of their portfolio performance, yield breakdown by protocol, risk exposure analysis, and performance trends.
Changes
features/analytics/types/index.ts— PositionSnapshot, PortfolioSummary, YieldBreakdown, RiskExposure, PerformanceDataPoint typesfeatures/analytics/hooks/usePortfolioAnalytics.ts— Analytics engine: filter positions, compute yield breakdown, risk scoring, performance historyfeatures/analytics/components/AnalyticsDashboard.tsx— Dashboard UI: filters, summary cards, best/worst performers, yield breakdown, risk exposure, performance trend chartfeatures/analytics/index.ts— Barrel exportsKey Features
Closes #229