Skip to content

Feature request: Euler V2 lending provider #16

@pestopoppa

Description

@pestopoppa

Summary

Request to add Euler V2 (EVK) as a LendingProvider + YieldProvider, alongside the existing Aave V3 and Morpho providers.

Why Euler V2

Euler V2 is a modular lending protocol with significant TVL across Ethereum mainnet, Base, and Sonic. Its vault-based architecture (EVaults) is increasingly used as infrastructure by other protocols — for example, Twyne builds credit delegation on top of Euler V2 and Aave V3 vaults.

For anyone building DeFi agents that compare lending rates or yield across protocols, the current aave + morpho pair misses a major market. Adding Euler V2 would make defi lend rates and defi yield opportunities substantially more complete.

The existing Aave V3 and Morpho providers are already very useful — we're actively evaluating defi-cli for integration into an AI agent stack that has deep Euler V2, Aave V3, and Morpho support on the smart contract side. Euler V2 is the missing piece for unified market data querying.

Data Sources

Euler V2 has a public API and subgraph:

  • Euler V2 API: https://app.euler.finance/api/v1/ — markets, rates, and vault metadata
  • Euler Earn vaults: These are yield aggregator vaults on top of EVaults — relevant for yield.opportunities
  • On-chain: EVault contracts expose interestRate(), totalSupply(), totalBorrows(), LTVConfig() directly

The provider would implement LendingProvider (LendMarkets + LendRates) and YieldProvider (YieldOpportunities).

Suggested Capabilities

func (c *Client) Info() model.ProviderInfo {
    return model.ProviderInfo{
        Name:        "euler",
        Type:        "lending+yield",
        RequiresKey: false,
        Capabilities: []string{
            "lend.markets",
            "lend.rates",
            "yield.opportunities",
        },
    }
}

Key data points per EVault:

  • Supply APY / Borrow APY (from the IRM)
  • Total supply and borrow (USD)
  • Utilization rate
  • Collateral LTV configs (useful for agent reasoning about leverage)
  • Underlying asset + chain

Existing Provider Pattern

The Aave and Morpho providers are clean references — both use GraphQL clients, map to the shared model.LendMarket / model.LendRate / model.YieldOpportunity types, and follow the same Client + New() + interface pattern. Euler V2 would fit the same mold.

Context

We're evaluating defi-cli for integration into an AI agent stack that currently has deep Euler V2, Aave V3, and Morpho protocol support on the smart contract side, but lacks a unified CLI for querying live market data across these protocols. Happy to help test if a draft PR goes up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions