Euler V2 Explained

The modular lending primitive with vault composability, ERC-4626 credit vaults, and the Ethereum Vault Connector

18 min read Intermediate Free
Key Insight

Euler V2 is a modular lending system built on two primitives: the Euler Vault Kit (EVK) for permissionless vault creation and the Ethereum Vault Connector (EVC) for inter-vault communication. Unlike Morpho's isolated markets, Euler V2 enables nested vaults, synthetic asset issuance, and native rehypothecation—making it a more flexible (but more complex) building block for DeFi.

Euler V1: The Flash Loan Attack

Euler V1 launched as a permissionless lending platform that could list any token with a Uniswap V3 TWAP oracle. It introduced innovations like MEV-resistant liquidations and granular risk tiers for different asset types.

In March 2023, Euler V1 suffered one of DeFi's largest exploits: a $197 million flash loan attack exploiting a vulnerability in the donation mechanism. The attacker later returned all funds, but the V1 contracts were permanently sunset.

Learning from V1

The V1 exploit demonstrated the risks of complex, interdependent lending logic. Euler V2 addresses this by separating concerns: the EVK handles vault logic, the EVC handles inter-vault communication, and each component can be audited independently.

Euler V2 Architecture

Euler V2 consists of two core primitives that work together:

Euler V2 Architecture
Credit Vaults — ERC-4626 vaults with borrowing capability, created via EVK
Ethereum Vault Connector (EVC) — Enables vaults to recognize each other's deposits as collateral
Euler Vault Kit (EVK) — Factory for deploying customized lending vaults

Euler Vault Kit (EVK)

The EVK enables permissionless deployment of credit vaults—modified ERC-4626 vaults with borrowing functionality. Unlike typical yield vaults that actively invest deposits, credit vaults are passive lending pools.

ERC-4626 (Tokenized Vault Standard)
A standard API for tokenized yield-bearing vaults. Each vault represents shares of an underlying ERC-20 token. ERC-4626 standardizes deposits, withdrawals, and share calculations, making vaults composable across protocols.

Vault Customization Options

When creating a vault via the EVK, developers can customize:

Parameter Options Implications
Oracle Chainlink, Redstone, Uniswap TWAP, custom Determines price feed for collateral valuation
Interest Rate Model Linear, kinked, adaptive, fixed-rate Controls borrowing costs based on utilization
Governance Immutable, DAO-governed, multisig, single owner Who can modify vault parameters
Upgradability Immutable, upgradeable proxy Whether vault logic can be changed
Collateral Types Whitelist specific vaults Which other vaults' shares count as collateral

Vault Classes

The Euler team has proposed three initial vault classes with different risk/flexibility tradeoffs:

  • Governed Vaults: Parameters can be adjusted by governance (DAO, multisig). More flexible but requires trust in governance
  • Ungoverned Vaults: Immutable parameters. Less flexible but fully trustless
  • Escrow Vaults: Specialized for specific use cases (synthetic assets, margin trading)

Ethereum Vault Connector (EVC)

The EVC is the "glue" that makes Euler V2 vaults composable. It's an open-source primitive that any vault (not just Euler vaults) can integrate with.

What the EVC Does

  1. Vault Mediation: When a user wants to borrow, they link their collateral vaults to the liability vault via the EVC. The liability vault consults the EVC to verify solvency before allowing actions
  2. Authentication: The EVC verifies that requests genuinely come from the user (not spoofed)
  3. Multi-Call: Batch multiple operations across vaults in a single transaction
  4. Flash Accounting: Defer solvency checks until the end of a transaction batch, enabling complex operations that would fail with per-operation checks
EVC vs. Morpho Blue

Morpho Blue uses a singleton contract where all markets live in one place. Euler V2 uses distributed vaults connected via the EVC. The EVC approach is more flexible (any vault can integrate) but adds complexity (vaults must explicitly connect and trust each other).

Sub-Accounts

The EVC provides each address with 256 virtual addresses (sub-accounts). This allows users to isolate risk for multiple positions without maintaining separate wallets. Each sub-account can have its own collateral/liability configuration.

Account Managers (Operators)

Users can delegate vault operations to smart contracts or EOAs called "operators." This enables:

  • Automated risk management (rebalancing, deleveraging)
  • Conditional orders (stop-loss, take-profit)
  • Custom liquidation flows
  • Intent-based systems for borrowing/repayments

Advanced Features

Nested Vaults

Vault shares are tokenized (ERC-20), so they can be used as collateral in other vaults. This enables rehypothecation—using deposited assets as collateral for additional borrowing.

Example: A user deposits USDC into an Euler core vault, receiving eUSDC shares. They can then deposit eUSDC into a higher-risk vault that accepts long-tail collateral, earning additional yield while maintaining exposure to the core vault's diversified lending.

Rehypothecation Trade-off

Morpho Blue explicitly prohibits rehypothecation—collateral stays locked and is never re-lent. Euler V2 enables it through nested vaults. Rehypothecation improves capital efficiency but creates systemic risk: a problem in one vault can cascade to others through shared collateral.

Synthetic Assets

The vault architecture supports permissionless creation of synthetic assets (CDPs). Vault creators can issue synthetic tokens against collateral deposits, recreating Synthetix-like products that benefit from Euler's deep collateral liquidity.

LTV Ramping

When a vault governor reduces LTV for a collateral type, existing borrowers could face instant liquidation. Euler V2's solution: gradual LTV ramping.

  • New borrows immediately use the new (lower) LTV
  • Existing borrows see their LTV gradually decrease over a specified duration
  • Positions become unhealthy slowly, allowing orderly liquidation at minimal loss

This prevents the sudden mass liquidations that affected protocols like Pac Finance ($26M liquidation from unannounced parameter change).

Collateral in User Wallets

With a simple ERC-20 extension, users can keep collateral in their wallet instead of depositing to vaults. The token contract calls into the EVC on transfers to verify loan rules aren't violated. Benefits:

  • Retain governance rights and token privileges
  • Potentially avoid taxable events from deposits/withdrawals
  • Better UX for users who want to maintain custody

Reward Streams

Projects can stream rewards to vault users without requiring staking. Users subscribe to receive rewards while their vault shares remain usable as collateral—no capital lockup required.

Fee Flow (Reverse Dutch Auctions)

Fees collected across vaults are denominated in various tokens. Fee Flow enables the DAO to auction these fees for a target asset (ETH, stablecoins) using reverse Dutch auctions that systematically reduce price as fees accumulate.

Euler V2 vs. Morpho Blue

Feature Morpho Blue Euler V2
Architecture Singleton contract (all markets in one) Distributed vaults connected via EVC
Market Type Isolated only (1 collateral, 1 borrow asset) Both isolated and multi-asset pools
Rehypothecation Prohibited (collateral never re-lent) Enabled via nested vaults
Liquidation Logic Fixed (LIF formula based on LLTV) Customizable per vault
Token Support ERC-20 only ERC-20 and NFTs (planned)
Code Size ~650 lines More complex (EVC + EVK + vaults)
Aggregation Layer MetaMorpho vaults Built-in via EVC connections
Immutability All markets immutable at creation Configurable per vault (governed or immutable)

Design Philosophy Differences

Morpho Blue is more opinionated: isolated markets only, no rehypothecation, immutable parameters. This reduces complexity and attack surface but limits flexibility.

Euler V2 is more general: supports both isolated and multi-asset pools, enables rehypothecation, allows governed or immutable vaults. This flexibility enables more use cases but requires more careful integration.

Use Cases Enabled by Euler V2

1. Margin Trading

Users can create leveraged positions by depositing collateral, borrowing, swapping, and re-depositing—all in a single transaction using flash accounting.

2. Yield Aggregation

Nested vaults enable automated yield strategies where vault shares compound through multiple layers of lending.

3. CDP Stablecoins

Issue synthetic USD against crypto collateral, competing with MakerDAO/Liquity but with modular risk management.

4. RWA Lending

Custom vault governance can implement KYC/AML requirements for real-world asset collateral.

5. NFT Collateral

Future support for non-fungible collateral enables NFT-backed lending without relying on specialized protocols.

Investment Considerations

Bull Case

  • Most flexible modular lending architecture—can build nearly any lending product
  • EVC is protocol-agnostic; could become standard for vault interoperability
  • Team learned from $197M V1 exploit; V2 architecture is more modular/auditable
  • Rehypothecation enables higher capital efficiency than Morpho

Bear Case

  • Complexity increases attack surface compared to Morpho's simplicity
  • V1 exploit damaged reputation; trust must be rebuilt
  • Later to market than Morpho Blue (which already has $3B+ TVL)
  • Rehypothecation creates systemic risk if not carefully managed
Risk Warning

Euler V2's flexibility means vault quality varies dramatically. A poorly configured vault with weak oracles or aggressive LTVs can fail catastrophically. Nested vaults add additional layers of risk. Always verify vault parameters, governance structure, and connected collateral types before depositing.

Key Takeaways

  • Euler V2 is a modular lending system with two core primitives: EVK (vault creation) and EVC (vault connectivity)
  • Credit vaults are ERC-4626 vaults with borrowing capability, enabling standardized integration across DeFi
  • The EVC enables vaults to recognize each other's deposits as collateral, creating a network of interconnected lending pools
  • Nested vaults enable rehypothecation—using vault shares as collateral in other vaults for additional yield
  • LTV ramping protects borrowers from sudden liquidation when parameters change
  • Compared to Morpho Blue, Euler V2 is more flexible but more complex, with different risk/reward tradeoffs