← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

euler-data

Euler Finance V2的开发者工具和数据访问指南。当通过Lens合约查询金库数据、从子图获取历史数据、访问合约接口或通过Euler Creator部署金库时,应使用此技能。在涉及VaultLens、OracleLens、子图查询、ABIs或无代码部署的任务中触发。

person作者: jakexiaohubgithub

Euler Lens & Data Agent Skill

Developer tools and data access guide for Euler Finance V2. Covers SDK/Data V3 routing, Lens contracts, subgraphs, interfaces, and deployment tools. Prefer the euler-sdk companion skill for TypeScript application integrations.

When to Apply

Reference these guidelines when:

  • Querying account positions and health using AccountLens
  • Querying vault data using Lens contracts (VaultLens, OracleLens, IRMLens, UtilsLens)
  • Tracking active accounts via Euler subgraph
  • Looking up contract addresses and ABIs
  • Building dashboards or analytics for Euler
  • Integrating with Euler from frontends or bots

Rule Categories

| Rule | Impact | Description | |------|--------|-------------| | tools-lens | MEDIUM | Query vault, account, and oracle data via Lens contracts | | tools-subgraphs | MEDIUM | Track active accounts and vault factories via subgraph | | tools-interfaces | MEDIUM | Contract addresses and ABI references |

Quick Reference

Lens Contracts

  • AccountLens - Query account positions, liquidity, health factor, time to liquidation (TTL)
  • VaultLens - Query vault state, configuration, LTVs, IRM info
  • OracleLens - Check oracle configuration and prices
  • IRMLens - Interest rate model details and calculations
  • UtilsLens - Utility functions: APY calculations, token balances, allowances
  • EulerEarnVaultLens - Query EulerEarn vault data and strategies

Subgraphs

The subgraph is intentionally minimal - use Lens contracts for detailed data:

  • Vault - Track which factory created each vault
  • TrackingActiveAccount - Active accounts indexed by address prefix (first 19 bytes)
  • TrackingVaultBalance - Per-account vault balances and debt (at the time of the last update)

Companion Skills

  • euler-vaults - Core vault operations, EVC, risk management
  • euler-irm-oracles - Oracle adapters and interest rate models
  • euler-earn - Yield aggregation vaults
  • euler-advanced - Hooks, flash loans, fee flow

How to Use

Read individual rule files for detailed explanations and code examples:

rules/tools-lens.md
rules/tools-subgraphs.md
rules/tools-interfaces.md

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md