Feature Modules
Features are self-contained business logic modules in src/features/. Each feature handles a specific domain of the application.
The home page showing connected wallets, DeFi positions (Morpho Blue), and asset breakdown.
Core Features
Delegations (11 sub-modules)
The heart of the platform. Handles the delegation of permissions from a user's wallet to a Safe.
| Sub-module | Purpose |
|---|---|
| Permission creation | Create new delegation grants |
| Delegate management | Add, remove, modify delegates |
| Module approval | Approve DeFi modules on a Safe |
| Safe linking | Link existing Safes to the platform |
| Role assignment | Assign roles (DEPOSITOR, WITHDRAWER, etc.) |
Transact (17 sub-modules)
Generic transaction handling for all DeFi operations.
| Sub-module | Purpose |
|---|---|
| Deposit | Supply assets to protocols |
| Withdraw | Remove assets from positions |
| Swap | Token-to-token swaps |
| Bundle | Multi-step atomic transactions |
| Approval | Token spending approvals |
Safes (4 sub-modules)
Gnosis Safe account management.
| Sub-module | Purpose |
|---|---|
| Create | Deploy new Safe contracts |
| Import | Link existing Safes |
| Settings | Safe configuration |
| Ownership | Owner management |
Token Swap (7 sub-modules)
Dedicated token swapping interface with price aggregation.
Analysis (7 sub-modules)
Portfolio analytics and performance dashboards.
P&L (3 sub-modules)
Profit and loss calculations and visualizations.
Goals (3 sub-modules)
Investment goal setting and progress tracking.
Communication Features
CometChat (4 sub-modules)
Real-time chat and video calls between users and advisors/consultants.
| Sub-module | Purpose |
|---|---|
| Chat UI | Message interface |
| Video calls | WebRTC-based calling |
| Presence | Online/offline status |
| Notifications | Message alerts |
Consult (6 sub-modules)
Consultant/advisor interface for managing client relationships.
Platform Pages
Explore
Browse DeFi categories (bluechip pools, top APY, stablecoin pools), trending assets, and market data.
Calendar
Monthly calendar for scheduling events, team meetings, and tracking deadlines.
Reports
Market reports from the NMT team covering trends, insights, and analysis.
Supporting Features
Skills (7 sub-modules)
Tutorial and educational video hub. Embeds Vimeo-hosted video tutorials managed by super admins via the admin panel. Stored in the tutorial database table with title, description, embed URL, and thumbnail.
Admin (in app/platform/admin/)
Two-tier admin panel for platform management.
| Role | Access |
|---|---|
| Admin | Manage own clients, associates, whitelist, Safe modules, discounts |
| Super Admin | Full platform control: all admin features + manage other admins, tutorials (Skills), global settings |
Roles are assigned via Dynamic Labs allowlists and delivered to the platform through webhooks. The admin dashboard includes MRR statistics and client overview.
Settings (4 sub-modules)
User preferences, notification settings, and account management.
Media (5 sub-modules)
Image and file management via ImageKit.
Feature File Convention
Each feature typically contains:
features/{feature-name}/
├── components/ # Feature-specific UI components
├── hooks/ # React hooks for state and logic
├── actions/ # Server actions or API calls
├── types.ts # TypeScript types
└── utils.ts # Helper functions