Stablecoin Savings Layer

The Savings Layer is the core of Nester's MVP. Users deposit stablecoins (USDC, USDT, DAI) into protocol-managed vaults that auto-allocate across multiple yield sources.

How It Works

User deposits 1,000 USDC
        │
        ▼
┌───────────────────────────────────────────────┐
│            Balanced Vault Contract             │
│                                               │
│  User receives 1,000 nVault share tokens      │
│                                               │
│  Allocation strategy:                         │
│  ┌─────────┐  ┌─────────┐  ┌─────────┐      │
│  │ Blend   │  │ Kamino  │  │ Aave    │      │
│  │ 40%     │  │ 35%     │  │ 25%     │      │
│  │ 400 USDC│  │ 350 USDC│  │ 250 USDC│      │
│  │ 8.5% APY│  │ 10% APY │  │ 9% APY  │      │
│  └─────────┘  └─────────┘  └─────────┘      │
│                                               │
│  Blended APY: 9.08%                          │
│  After 1 year: 1,000 → 1,090.80 USDC        │
└───────────────────────────────────────────────┘

Vault Types

VaultTarget APYRisk ProfileStrategy
Conservative6–8%MinimalBattle-tested lending protocols only
Balanced8–11%ModerateLending + selected liquidity pools
Growth11–15%HigherNewer strategies with strict risk controls
DeFi500VariableDiversifiedIndex fund of top DeFi protocols, monthly rebalanced

Share Token Model

When you deposit into a vault, you receive nVault tokens proportional to your share:

shares_minted = deposit_amount × total_shares / total_assets

Example:
  Vault has 10,000 USDC (total_assets) and 10,000 shares (total_shares)
  User deposits 1,000 USDC
  shares = 1,000 × 10,000 / 10,000 = 1,000 nVault tokens

After yield accrual (vault now has 11,000 USDC, still 11,000 shares):
  User's 1,000 shares = 1,000 / 11,000 × 11,000 = 1,000 USDC + yield

Automated Rebalancing

The rebalancer runs continuously, monitoring:

  • APY drift — if a protocol's APY drops below threshold, funds migrate
  • Risk metrics — TVL changes, exploit history, smart contract health
  • Liquidity depth — ensures withdrawals can be processed instantly
Rebalance trigger conditions:
  1. APY delta > 2% between current and optimal allocation
  2. Protocol TVL drops > 20% in 24 hours
  3. Security alert from monitoring systems
  4. Scheduled rebalance (weekly for DeFi500)

Maturity & Penalties

Vaults can optionally enforce time-locks:

Lock PeriodEarly Withdrawal Penalty
No lock0%
30 days1% of withdrawn amount
90 days2.5%
180 days5%

Penalties are redistributed to remaining vault depositors, increasing their share value.