Grimoire Aave

作者 franalgaba2cca3994a288無授權條款6 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫5 個月前更新

Fetches Aave V3 public market data using the Grimoire venue CLI. Use when you need Aave health checks, chain listings, market metadata, or reserve info.

僅含說明Business & Finance
AI 產生的概覽

透過 Grimoire venue CLI 查詢 Aave V3 公開市場資料,用於健康檢查、鏈清單、市場與儲備資訊。

功能
此技能說明如何使用 Grimoire venue CLI 取得唯讀的 Aave V3 中介資料:協定健康狀態、支援的鏈、市場清單、單一市場詳情,以及儲備詳情或快照。輸出為 JSON 或表格,儲備相關指令還可產生 spell 的 params 區塊。它僅包含說明,不附帶指令碼。
適用情境
當你需要 Aave V3 健康檢查、鏈清單、市場中介資料或儲備資訊,作為策略或 spell 的輸入時使用。在重新配置資金前比較 Aave 與其他場所的 APY 指標時也適用。
執行需求
需要 Grimoire CLI,可透過全域安裝、npx @grimoirelabs/cli、儲存庫內 Bun 執行,或來自 @grimoirelabs/venues 的 grimoire-aave 二進位檔使用。需要存取 Aave V3 資料的網路連線,預檢時還需目標鏈的 RPC URL。不包含指令碼。

Grimoire Aave Skill

Use this skill to query Aave V3 metadata and reserve snapshots for strategy inputs.

Preferred invocations:

  • grimoire venue aave ...
  • npx -y @grimoirelabs/cli venue aave ... (no-install)
  • bun run packages/cli/src/index.ts venue aave ... (repo-local)
  • grimoire-aave ... (direct binary from @grimoirelabs/venues)

Recommended preflight:

  • grimoire venue doctor --adapter aave --chain 1 --rpc-url <rpc> --json

Commands

  • grimoire venue aave health — check Aave protocol health
  • grimoire venue aave chains — list supported chains
  • grimoire venue aave markets --chain <id> [--user <address>] — list markets on a chain (optionally with user positions)
  • grimoire venue aave market --chain <id> --address <market> [--user <address>] — single market details
  • grimoire venue aave reserve --chain <id> --market <address> --token <address> — single reserve details
  • grimoire venue aave reserves --chain <id> [--market <address>] [--asset <symbol|address>] — list reserves with optional filters
  • grimoire venue aave reserves-snapshot --chain <id> [--market <address>] [--asset <symbol|address>] — generate spell params: block for reserves (agent-only)

Examples

bash
grimoire venue aave healthgrimoire venue aave health --format tablegrimoire venue aave chainsgrimoire venue aave markets --chain 1 --format tablegrimoire venue aave market --chain 1 --address 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2grimoire venue aave reserve --chain 1 --market 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 --token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48grimoire venue aave reserves --chain 1 --asset USDC --format tablegrimoire venue aave reserves --chain 1 --asset USDC --format spellgrimoire venue aave reserves-snapshot --chain 1 --asset USDC

Use reserves-snapshot to emit a params: block for spell inputs. This is an agent-only command (output suppressed in interactive mode).

Supported Chains

ChainMarket Address
Ethereum (1)0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
Base (8453)0xA238Dd80C259a72e81d7e4664a9801593F98d1c5

Spell Constraints

Aave V3 actions do not currently support runtime constraints (max_slippage, min_output, etc.). The adapter handles approvals and amount conversion automatically.

spell
aave_v3.lend(USDC, params.amount)aave_v3.withdraw(USDC, params.amount)aave_v3.borrow(USDC, params.amount)aave_v3.repay(USDC, params.amount)

Metric Surface (Spell Comparisons)

Aave exposes the apy metric surface for comparisons:

spell
aave_apy = apy(aave, USDC)aave_apy_generic = metric("apy", aave, USDC)

Use this in conditional logic (for example, compare against Morpho APY before reallocating).

Amount Format

The @aave/client SDK uses different amount formats per action:

ActionFormatExample (0.1 USDC)
supplyvalue: "0.1"Human-readable BigDecimal
borrowvalue: "0.1"Human-readable BigDecimal
withdrawvalue: { exact: "100000" }Raw amount in exact wrapper
repayvalue: { exact: "100000" }Raw amount in exact wrapper

The adapter handles this conversion automatically.

Notes

  • Read-only metadata endpoints only.
  • Outputs JSON/table; reserves also supports --format spell.
  • Prefer --format json in automation; use table for quick interactive checks.

來源與署名

來源:franalgaba/grimoire位於skills/grimoire-aave提交2cca399

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架