euler-vaults

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Euler Finance Agent Skill

Euler Finance Agent Skill

Core guide for interacting with Euler Finance V2 protocol. Contains rules across 5 categories covering vault operations, EVC orchestration, risk management, architecture concepts, and security.
这是与Euler Finance V2协议交互的核心指南,包含5大类规则,涵盖金库操作、EVC编排、风险管理、架构概念和安全相关内容。

Companion Skills

配套Skill

For specialized topics, use these companion skills:
  • euler-irm-oracles - Oracle adapters, EulerRouter, price resolution, Interest Rate Models
  • euler-earn - EulerEarn yield aggregation, strategies
  • euler-advanced - Hooks, flash loans, fee flow, rewards
  • euler-data - Lens contracts, subgraphs, contract interfaces, developer tools
如需了解特定主题,请使用以下配套Skill:
  • euler-irm-oracles - 预言机适配器、EulerRouter、价格解析、利率模型
  • euler-earn - EulerEarn收益聚合、策略
  • euler-advanced - 钩子、闪电贷、费用流、奖励
  • euler-data - Lens合约、子图、合约接口、开发者工具

When to Apply

适用场景

Reference these guidelines when:
  • Depositing, borrowing, or managing positions on Euler vaults (EVK)
  • Batching operations via the Ethereum Vault Connector (EVC)
  • Monitoring health factors and liquidation risk
  • Understanding Euler architecture (vault types, market design)
  • Security practices and audit information
在以下场景中可参考本指南:
  • 在Euler金库(EVK)中存入、借入或管理头寸
  • 通过Ethereum Vault Connector(EVC)批量执行操作
  • 监控健康因子和清算风险
  • 理解Euler架构(金库类型、市场设计)
  • 安全实践与审计信息

Rule Categories by Priority

按优先级划分的规则类别

#CategoryImpactPrefixKey Questions
1Vault OperationsCRITICAL
vault-
Get APY, deposit, borrow, create market
2EVC OperationsCRITICAL
evc-
Batch calls, sub-accounts, operators
3Risk ManagementHIGH
risk-
Check health, liquidation, risk managers, curators
4ArchitectureHIGH
arch-
Market design, vault types
5SecurityCRITICAL
sec-
Audits, best practices
#类别影响程度前缀关键问题
1金库操作关键
vault-
获取APY、存入、借入、创建市场
2EVC操作关键
evc-
批量调用、子账户、操作方
3风险管理
risk-
检查健康状况、清算、风险管理者、管理者
4架构
arch-
市场设计、金库类型
5安全关键
sec-
审计、最佳实践

Quick Reference

快速参考

1. Vault Operations (CRITICAL)

1. 金库操作(关键)

  • vault-get-apy
    - How to get vault APY and interest rates
  • vault-deposit
    - How to deposit assets into a vault
  • vault-borrow
    - How to borrow assets from a vault
  • vault-repay
    - How to repay borrowed debt
  • vault-create-market
    - How to create a new vault/market
  • vault-get-apy
    - 如何获取金库APY和利率
  • vault-deposit
    - 如何将资产存入金库
  • vault-borrow
    - 如何从金库借入资产
  • vault-repay
    - 如何偿还借入的债务
  • vault-create-market
    - 如何创建新的金库/市场

2. EVC Operations (CRITICAL)

2. EVC操作(关键)

  • evc-batch
    - How to batch multiple operations atomically
  • evc-sub-accounts
    - How to use sub-accounts for isolated positions
  • evc-operators
    - How to delegate control via operators
  • evc-enable-collateral
    - How to enable vault as collateral
  • evc-batch
    - 如何原子化执行多个操作
  • evc-sub-accounts
    - 如何使用子账户实现隔离头寸
  • evc-operators
    - 如何通过操作方委托控制权
  • evc-enable-collateral
    - 如何将金库设为抵押品

3. Risk Management (HIGH)

3. 风险管理(高)

  • risk-check-health
    - How to check account health factor
  • risk-liquidation
    - How liquidations work on Euler
  • risk-managers
    - Understanding risk manager roles
  • risk-check-health
    - 如何检查账户健康因子
  • risk-liquidation
    - Euler的清算机制运作方式
  • risk-managers
    - 理解风险管理者的角色

4. Architecture (HIGH)

4. 架构(高)

  • arch-market-design
    - Understanding Euler market design
  • arch-vault-types
    - Core, Edge, and Escrow vault types
  • arch-market-design
    - 理解Euler的市场设计
  • arch-vault-types
    - 核心、边缘和托管金库类型

5. Security (CRITICAL)

5. 安全(关键)

  • sec-audits
    - Security practices and audit information
  • sec-audits
    - 安全实践与审计信息

Core Protocol Components

核心协议组件

Ethereum Vault Connector (EVC)

Ethereum Vault Connector(EVC)

The EVC is the foundational layer mediating between vaults. It provides:
  • Batching: Execute multiple operations atomically
  • Sub-accounts: 256 isolated positions per address
  • Operators: Delegate control over your accounts to other addresses
  • Deferred checks: Temporarily violate constraints within a batch
EVC是连接金库的基础层,提供以下功能:
  • 批量处理:原子化执行多个操作
  • 子账户:每个地址可拥有256个隔离头寸
  • 操作方:将账户控制权委托给其他地址
  • 延迟检查:在批量操作中临时违反约束条件

Euler Vault Kit (EVK)

Euler Vault Kit(EVK)

Credit vaults extending ERC-4626 with borrowing:
  • Standard ERC-4626 deposit/withdraw/mint/redeem
  • Borrow and repay functionality
  • Collateral and controller management
  • LTV ratios (borrow LTV vs liquidation LTV)
扩展ERC-4626标准并支持借贷的信用金库:
  • 标准ERC-4626的存入/提取/铸造/赎回功能
  • 借入和偿还功能
  • 抵押品和控制器管理
  • LTV比率(借贷LTV vs 清算LTV)

How to Use

使用方法

Read individual rule files for detailed explanations and code examples:
rules/vault-get-apy.md
rules/evc-batch.md
rules/risk-check-health.md
Each rule file contains:
  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references
阅读单个规则文件以获取详细说明和代码示例:
rules/vault-get-apy.md
rules/evc-batch.md
rules/risk-check-health.md
每个规则文件包含:
  • 简要说明其重要性
  • 错误代码示例及解释
  • 正确代码示例及解释
  • 额外背景信息和参考资料

Full Compiled Document

完整编译文档

For the complete guide with all rules expanded:
AGENTS.md
如需查看包含所有扩展规则的完整指南,请查阅:
AGENTS.md