# NMT Platform
Decentralized yield-earning platform built on modular smart wallets.
This is your guide to the full architecture — from Solidity to the browser.
Solidity
Rust
Next.js 16
PostgreSQL
Gnosis Safe
Digital Ocean
</div>
4
EVM Chains
8
DeFi Protocols
3
System Layers
45+
DB Tables
The Idea
Users delegate specific DeFi actions to approved operators through a smart wallet. The operator can execute strategies on the user's behalf — deposit into Aave, provide liquidity on Uniswap, swap tokens — but can never move funds out. Think of it like giving a financial advisor limited power of attorney, enforced by code.
How it works in 30 seconds
1. User creates a Smart Wallet (Gnosis Safe) →
2. Grants permissions to an NMT operator →
3. Operator executes DeFi strategies via protocol modules →
4. Backend indexes on-chain data and computes valuations →
5. Web app shows real-time positions and P&L

Documentation
Architecture
System overview, interaction layers, data flow, and technology choices.
Smart Wallets
Solidity contracts, permissions, delegate bundler, and security model.
Backend Engine
Rust workspace, workers, REST API, database, and configuration.
Frontend App
Next.js structure, DeFi adapters, features, testing, and Sentry.
Infrastructure
Docker, Kubernetes (DOKS), CI/CD pipelines, and secrets management.
DeFi Protocols
Uniswap, Aave, Morpho, Yearn, Aerodrome, Cow Protocol, and Krystal.
External Services
RPC providers, data providers, and frontend third-party services.
Getting Started
Prerequisites, local setup, and development workflow.
Platform at a Glance
| Layer | Technology | Purpose |
|---|---|---|
| Smart Wallets | Solidity / Gnosis Safe | Secure, permissioned on-chain execution |
| Backend Engine | Rust (Tokio / Axum) | Data indexing, valuations, REST API |
| Frontend App | Next.js 16 / React 19 | User interface, transaction signing |
| Database | PostgreSQL 16 | Positions, pools, prices, users |
| Deployment | Digital Ocean DOKS / Helm | Container orchestration, CI/CD |
Supported Chains
| Chain | Role | Chain ID |
|---|---|---|
| Base | Primary chain | 8453 |
| Ethereum | Secondary | 1 |
| Arbitrum | Secondary | 42161 |
| Optimism | Secondary | 10 |
Supported DeFi Protocols
| Protocol | Category | What It Does |
|---|---|---|
| Uniswap V2/V3/V4 | DEX / Liquidity | Provide liquidity to trading pools and earn fees |
| Aave V3 | Lending | Lend assets and earn interest |
| Morpho | Optimized Lending | Earn optimized yields through MetaMorpho vaults |
| Yearn Finance | Yield Vaults | Automated yield strategies via ERC-4626 vaults |
| Aerodrome | DEX (Base) | Base chain's primary decentralized exchange |
| Cow Protocol | MEV-Protected Swaps | Swap tokens with protection against front-running |
| Krystal | Automated LP Vaults | Automated concentrated liquidity management on Uniswap V3 |