Euler Documentation

website·Indexed 36 days ago

https://docs.euler.finance

Documentation for Euler, a modular onchain lending infrastructure and platform for decentralized lending. It covers Euler V2, including EVK vaults, EulerEarn, and the Euler Vault Kit, as well as guides on supplying, borrowing, managing Multiply positions, and protocol security reviews.

Tokens
62.8K
Snippets
102
Records
437
Agent score
70%

What's inside Euler

  1. Overview of Euler v2 Modular Lending Architecture

    Euler v2 is a decentralized lending and borrowing platform built as a system of ERC-4626 vaults. It utilizes the Euler Vault Kit (EVK) for vault development and the Ethereum Vault Connector (EVC) to chain vaults together. The architecture is designed to be agnostic regarding governance, upgradability, and oracles, allowing builders to create custom lending markets permissionlessly.
  2. Overview of the Euler V2 SDK

    The Euler V2 SDK is the recommended TypeScript entry point for building applications, bots, scripts, and operational tooling on Euler V2. It provides a high-level interface to read protocol data, compose Ethereum Vault Connector (EVC) batches, simulate transactions, resolve approvals, and execute plans. Key capabilities include fetching account/vault/market data, managing swaps, rewards, FeeFlow, and oracle adapter metadata.
  3. Overview of Euler v2 Modular Architecture

    Euler v2 is a modular lending platform designed to solve liquidity fragmentation and capital inefficiency. Unlike monolithic protocols (which have restrictive LTVs and governance-heavy collateral additions) or isolated pools (which fragment liquidity), Euler allows the permissionless creation of vaults. These vaults can use any other vault in the ecosystem as collateral via the Ethereum Vault Connector (EVC), enabling 'vault-chaining' and flexible risk management for a wide range of assets including RWAs, NFTs, and IOUs.
  4. Overview of EVCUtil for Ethereum Vault Connector

    EVCUtil.sol is a utility abstract contract used to build contracts that interact with the Ethereum Vault Connector (EVC). It provides authentication helpers, context-aware modifiers, and patterns to ensure contracts are called through the EVC, reducing unauthorized-access risks and providing helpers to retrieve the true sender (onBehalfOfAccount).
  5. Overview of Euler V2 Factory Contracts

    Factory contracts in Euler V2 are used to make components repeatable to deploy and easier to inspect. They allow developers, curators, and auditors to verify if a deployed contract originated from a recognized implementation and factory, which aids in review, upgrades, and governance. While the factory confirms the source, each deployment maintains its own unique parameters, roles, and dependencies.
  6. Overview of Euler V2 Simple Subgraphs

    Euler's production subgraphs use a lightweight schema (euler-simple) specifically designed to identify which accounts have deposits or borrows in which vaults. This is the primary discovery mechanism used by Euler apps and the Euler SDK.

    Important Limitations:

    • The subgraph does not provide vault configuration, interest rates, APYs, prices, or health scores.
    • It does not provide real-time balance or debt sizes (as debt accrues interest continuously).
    • For detailed vault data or current balances, use the vault and account addresses returned by the subgraph to query lens contracts or the Euler V3 API.
  7. Overview of Euler Vault Clusters

    A cluster is a collection of vaults that accept each other as collateral and share a common governor. Clusters are defined and managed via Solidity scripts, allowing for programmable, reproducible, and reviewable market deployments. Key features include automated deployment, delta management, and support for Safe multisigs, timelocks, and risk stewards.
  8. Overview of Euler Curation Products

    Euler provides several products for curators to create and operate liquidity markets and vaults. Depending on the goal, curators can choose from the following:

    • EVK Markets, Vaults, or Clusters: Used for creating lending/borrowing markets. Management includes configuring assets, collateral graphs, oracle routes, Interest Rate Models (IRM), caps, Loan-to-Value (LTV) ratios, liquidation settings, hooks, fees, and governance.
    • EulerEarn Vaults: Used for yield-earning strategies. Management includes strategies, roles, caps, queues, allocation, liquidity, fees, loss accounting, and metadata.
    • EulerSwap Pools: Used for swapping assets. Management includes pool versions, LP accounts, vault pairs, manager/hook authority, parameters, fees, liquidity, quotes, and decommissioning states.
    • Metadata and Discovery: Used to make vaults and products discoverable via labels and metadata (vault, product, entity, asset, notice, and known-vault sources).
  9. Overview of EulerEarn for curators

    EulerEarn allows curators, DAOs, and teams to deploy ERC-4626 vaults that allocate a single deposited asset across multiple ERC-4626 strategies. This provides a transparent way to package allocation strategies without needing to build new deposit and accounting infrastructure for every product. Users hold a single share token while the vault's roles manage strategy selection, allocation, caps, and withdrawal order.
  10. Overview of EulerEarn Vaults

    EulerEarn allows users to deposit a single underlying asset into a vault that automatically allocates funds across a curated set of strategies, such as Euler lending vaults and external ERC-4626 strategies. Users hold ERC-4626 shares representing their claim on the vault, while management roles (Curator, Allocator, etc.) handle strategy selection and rebalancing within on-chain limits.
  11. Overview of Institutional Vaults on Euler

    Institutional vaults on Euler are specialized EVK lending vaults or EulerEarn vaults designed to meet the specific asset, participant, risk, and operating requirements of an institution. Euler provides the onchain enforcement of rules, while external processes such as identity verification, legal eligibility, custody, and regulatory reporting are managed by the institution and its providers.