AgentSkillsCN

euler-irm-oracles

Euler Finance V2协议交互的核心指南。当您需要构建DeFi集成、管理借贷仓位,或深入理解Euler架构时,可使用此技能。该技能会在涉及借贷、借入、抵押品、清算、EVC、EVK,或Euler核心操作等任务时被触发。如需了解更多专业领域的知识,请参阅配套技能。

SKILL.md
--- frontmatter
name: euler-irm-oracles
description: Oracle and Interest Rate Model guide for Euler Finance V2. This skill should be used when deploying oracle adapters, configuring price resolution, querying prices, or understanding IRM types. Triggers on tasks involving Chainlink, Pyth, Chronicle, price feeds, Linear Kink IRM, Adaptive Curve IRM, or interest rate configuration.
license: MIT
metadata:
  author: Euler Labs
  version: "1.0.0"

Euler IRM & Oracles Agent Skill

Oracle integration and Interest Rate Model guide for Euler Finance V2 protocol. Covers oracle adapters, price routing, and IRM configuration.

When to Apply

Reference these guidelines when:

  • Deploying oracle adapters (Chainlink, Pyth, Chronicle, RedStone)
  • Configuring EulerRouter for price resolution
  • Setting up cross-currency pricing with CrossAdapter
  • Querying asset prices from oracles
  • Understanding Interest Rate Model types and selection
  • Configuring IRM parameters for vaults

Rule Categories

RuleImpactDescription
oracle-deployHIGHDeploy oracle adapters for various price sources
oracle-configure-routerHIGHConfigure EulerRouter for price resolution
oracle-get-priceHIGHQuery asset prices from oracles
irm-modelsHIGHUnderstand and configure Interest Rate Models

Quick Reference

Oracle Adapters

  • ChainlinkOracle - For major pairs (ETH/USD, BTC/USD)
  • PythOracle - Pull-based, requires price updates before use
  • ChronicleOracle - MakerDAO ecosystem (requires whitelisting)
  • FixedRateOracle - For stablecoins (1:1 rates)
  • CrossAdapter - Chain through intermediate assets
  • LidoOracle - For wstETH/stETH exchange rate
  • RateProviderOracle - For Balancer Rate Providers

Interest Rate Models

  • Linear Kink IRM - Standard two-slope model with utilization-based rates
  • Linear Kinky IRM - Non-linear acceleration after kink using shape parameter
  • Adaptive Curve IRM - Self-adjusting based on market conditions
  • Fixed Cyclical Binary - For binary rate transitions

Companion Skills

  • euler-vaults - Core vault operations, EVC, risk management
  • euler-earn - Yield aggregation vaults
  • euler-advanced - Hooks, flash loans, fee flow
  • euler-data - Lens contracts and data querying

How to Use

Read individual rule files for detailed explanations and code examples:

code
rules/oracle-deploy.md
rules/oracle-configure-router.md
rules/oracle-get-price.md
rules/irm-models.md

Full Compiled Document

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