# NMT Platform
Decentralized DeFi execution 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. The platform provides a permissioned execution environment where operators act strictly within the bounds of user-granted permissions, enforced by smart contract code. NMT does not provide financial, investment, or tax advice. All DeFi interactions carry inherent risk, including the potential loss of deposited assets.
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; fees may be generated from trades |
| Aave V3 | Lending | Supply assets to lending pools; variable interest rates apply |
| Morpho | Optimized Lending | Access MetaMorpho vaults with algorithmically allocated lending |
| Yearn Finance | Yield Vaults | Automated DeFi strategies via ERC-4626 vaults; returns are variable and not guaranteed |
| 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 |