AgentSkillsCN

aave-v3-core

Aave 协议 V3 核心合约——包括池(存款、借款、清算、闪电贷)、数据类型、地址提供者、eMode 与隔离机制。

SKILL.md
--- frontmatter
name: aave-v3-core
description: Aave Protocol V3 core contracts—Pool (supply, borrow, liquidate, flash loans), data types, addresses provider, eMode and isolation.
metadata:
  author: hairy
  version: "2026.2.9"
  source: Generated from https://github.com/aave/aave-v3-core, scripts at https://github.com/antfu/skills

Skill based on Aave V3 Core (contracts as of 2026-02-09), generated from sources/aave-v3. Note: repo is deprecated; latest V3 lives at aave-dao/aave-v3-origin. This skill still applies to the core interfaces and patterns.

Aave V3 is a decentralized liquidity market: supply assets to earn yield, borrow over- or under-collateralized. Core entry is IPool (supply, withdraw, borrow, repay, liquidation, flash loans). Use IPoolAddressesProvider to get Pool and oracle/configurator addresses per market. DataTypes define reserve and user config bitmaps and structs. Flash loans use IFlashLoanReceiver / IFlashLoanSimpleReceiver. eMode and isolation mode affect LTV and which collateral can back debt.

Core References

TopicDescriptionReference
Pool (IPool)Supply, withdraw, borrow, repay, liquidation, viewscore-pool
DataTypesReserveData, ReserveConfigurationMap, UserConfigurationMap, EModeCategory, InterestRateModecore-data-types
Flash LoansIFlashLoanReceiver, IFlashLoanSimpleReceiver, flashLoan vs flashLoanSimplecore-flashloan
Addresses ProvidergetPool, getMarketId, getAddress, oracle/configurator/ACLcore-addresses-provider

Features

Risk & Modes

TopicDescriptionReference
EMode & IsolationeMode categories, setUserEMode; isolation mode and siloed borrowingfeatures-emode-isolation

Best Practices

TopicDescriptionReference
IntegrationNPM @aave/core-v3, imports, permit, reading reserve/user databest-practices-integration