How EdenVest Works
EdenVest revolutionizes DeFi investing by providing fixed-term investment pools with guaranteed returns. Unlike traditional yield farming, EdenVest offers predictable outcomes through a sophisticated smart contract ecosystem.Investment Lifecycle
Core Components
1. Investment Pools
Each investment pool is an isolated smart contract with specific parameters:Pool Configuration
- Lock Duration: 7 days to 2 years
- APY Rate: Fixed percentage returns
- Min/Max Investment: Deposit limits
- Utilization Cap: Total pool capacity
Pool Management
- Multisig Control: Multi-signature governance
- Admin Functions: Pool configuration updates
- Emergency Controls: Pause/unpause capabilities
- Tax Collection: Protocol fee handling
2. LP Token Economics
When you invest, you receive LP (Liquidity Provider) tokens representing your share:- You invest 1,000 cNGN in an empty pool → Get 1,000 LP tokens
- Pool now has 1,000 cNGN total, 1,000 LP tokens total
- Next investor deposits 500 cNGN → Gets 500 LP tokens
- Pool now has 1,500 cNGN total, 1,500 LP tokens total
3. NFT Position Tracking
Every investment is represented by a unique non-transferable NFT that displays:Visual Information
Visual Information
- Investment amount and expected returns
- Time remaining until maturity
- Pool name and APY rate
- Dynamic progress bars
- Status indicators (Active/Mature/Withdrawn)
Technical Metadata
Technical Metadata
- Token ID and investment ID mapping
- Deposit and maturity timestamps
- LP token amounts
- Pool contract address
Animated Features
Animated Features
- Floating animations with CSS transforms
- Color-changing progress bars
- Pulsing effects for active investments
- Nigerian-inspired design elements
Return Calculation
EdenVest uses a simple interest formula for predictable returns:Examples
Token Swap Integration
EdenVest integrates Assetchain Swap for seamless token swapping:Swap Process
- Quote Generation: Get expected cNGN output amount
- Slippage Protection: Automatic slippage calculation (max 3%)
- Token Transfer: Move input tokens to SwapRouter
- Swap Execution: Execute trade via Assetchain Swap
- Investment Processing: Use output cNGN for investment
Supported Features
Security Features
- Rate limiting for quote requests
- Maximum slippage protection
- Failed swap tracking and limits
- Emergency pause capabilities
Pool Fee Management
- Custom fees per token pair
- Default 0.3% fee tier
- Support for 0.05%, 0.3%, and 1% tiers
- Admin-configurable fee structures
Tax Collection System
The protocol collects a configurable tax (default 2.5%) on all investments:Tax Mechanism
Tax Configuration
- Global Tax Rate: Protocol-wide default (2.5%)
- Pool-Specific Tax: Pools can override global rate
- LP Token Tax: Tax collected as LP tokens, not cNGN
- Treasury Distribution: Periodic withdrawal to protocol treasury
Governance & Security
Multisig Governance
Critical operations require multiple signatures (minimum 2 of N):- Protocol Operations
- Pool Operations
- Pause/unpause protocol
- Update global tax rates
- Change protocol treasury
- Emergency fund recovery
- Add/remove multisig signers
Proposal System
- Creation: Multisig signer creates proposal
- Signing: Other signers review and sign
- Auto-execution: Executes when threshold reached (2+ signatures)
- Expiry: Proposals expire after 2 days

